User Tools

Site Tools


notes:comporg:spring2025:projects:mtb1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
notes:comporg:spring2025:projects:mtb1 [2025/02/20 03:29] – [How to check if our sprite has reached a bound] tkastne1notes:comporg:spring2025:projects:mtb1 [2025/02/20 03:33] (current) – [How to check if our sprite has reached a bound] tkastne1
Line 106: Line 106:
 <code> <code>
 mov R0, R1 mov R0, R1
-ilt R0, 0+ilt R0, YMIN 
 +jt  R0, _upper_bound
 </code> </code>
 and and
 <code> <code>
 mov R0, R1 mov R0, R1
-igt R0, 359+igt R0, YMAX 
 +jt  R0, _lower_bound
 </code> </code>
 +Where R1 is a the y position and YMIN/YMAX are the min and max bounds
 ====How to limit our sprite from leaving the playfield==== ====How to limit our sprite from leaving the playfield====
  
 ====How to cause our sprite to wrap-around on the playfield==== ====How to cause our sprite to wrap-around on the playfield====
  
notes/comporg/spring2025/projects/mtb1.1740022164.txt.gz · Last modified: 2025/02/20 03:29 by tkastne1