![]() |
Routines |
| Prev: AA01 | Up: Map | Next: AA27 |
|
Used by the routine at ship_hits_ground_objects.
Reverses and halves the ship's step down (+9 of the ship record, ship_dy, reverse_speed), and passes the new value to the entry near the end of move_ship that moves the ship by it.
|
||||
| bounce_up_down | AA15 | PUSH HL | ||
| AA16 | LD HL,(ship_dy) | |||
| AA19 | CALL reverse_speed | |||
| AA1C | LD (ship_dy),HL | |||
| AA1F | LD A,H | |||
| AA20 | LD H,L | |||
| AA21 | LD L,A | |||
| AA22 | CALL move_ship_7 | |||
| AA25 | POP HL | |||
| AA26 | RET | |||
| Prev: AA01 | Up: Map | Next: AA27 |