![]() |
Routines |
| Prev: 909A | Up: Map | Next: 90CD |
|
Used by the routines at update_small_object and update_rammer.
Used by the small objects (update_small_object) and type $1D (update_rammer). Tests the landscape in mode $80 (piece_step_x); on a touch (scratch_count) the object starts exploding (bit 3 of +$17), stops, and makes a sound (sound_tick). Then it is moved by its velocity (move_object).
|
||||||||
| move_or_explode | 90A7 | LD A,$80 | Test the landscape in mode $80 | |||||
| 90A9 | LD (piece_step_x),A | |||||||
| 90AC | CALL test_landscape_at | |||||||
| 90AF | LD A,(scratch_count) | No touch: just move it | ||||||
| 90B2 | AND A | |||||||
| 90B3 | JP Z,move_object | |||||||
| 90B6 | SET 3,(IX+$17) | Touched: it explodes, and stops | ||||||
| 90BA | XOR A | |||||||
| 90BB | LD (IX+$07),A | |||||||
| 90BE | LD (IX+$08),A | |||||||
| 90C1 | LD (IX+$09),A | |||||||
| 90C4 | LD (IX+$0A),A | |||||||
| 90C7 | CALL sound_tick | A sound, and move it | ||||||
| 90CA | JP move_object | |||||||
| Prev: 909A | Up: Map | Next: 90CD |