This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:comporg:spring2024:projects:cta0 [2024/03/04 16:09] – [Collision With Food] wgates1 | notes:comporg:spring2024:projects:cta0 [2024/03/04 16:12] (current) – [Collision With Food] wgates1 | ||
---|---|---|---|
Line 84: | Line 84: | ||
ile R11, 48 | ile R11, 48 | ||
jf R11, _no_collision ; If false then go to _no_collision | jf R11, _no_collision ; If false then go to _no_collision | ||
- | |||
- | ; If we get here then new spawn for apple and R increases by 1 | ||
</ | </ | ||
- | + | Here, we are simply just checking the difference we got for the X and Y values and then either jumping out of this check because they are not in contact or falling through to what will happen if we are in contact with the food. | |
- | + | ||
====Text Area==== | ====Text Area==== | ||