![]() |
Routines |
| Prev: BC13 | Up: Map | Next: BCBF |
|
Used by the routines at bounce_45_negate and bounce_shallow_negate.
Where every slope bounce ends. An object (not the ship) is moved across out of the slope by the depth test_landscape_piece found, through move_across with that as its speed for a moment; a push of 16 or more sets its +10 bit 3. Its screen fields are cleared. If its new speeds are both too small to matter, it is set sliding a pixel a pass downhill (downhill). Then ship_on_slope_response for the ship.
|
||||||||
| leave_slope | BC5B | LD IX,(collision_object) | the ship: no pushing | |||||
| BC5F | LD A,(piece_step_x) | |||||||
| BC62 | INC A | |||||||
| BC63 | JR Z,leave_slope_2 | |||||||
| BC65 | LD L,(IX+$07) | the depth as the speed across for a moment; a deep one sets +10 bit 3 | ||||||
| BC68 | LD H,(IX+$08) | |||||||
| BC6B | LD (saved_speed),HL | |||||||
| BC6E | LD A,(touch_depth) | |||||||
| BC71 | NEG | |||||||
| BC73 | LD (IX+$07),A | |||||||
| BC76 | BIT 7,A | |||||||
| BC78 | JR Z,leave_slope_0 | |||||||
| BC7A | NEG | |||||||
| leave_slope_0 | BC7C | CP $10 | ||||||
| BC7E | JR C,leave_slope_1 | |||||||
| BC80 | SET 3,(IX+$10) | |||||||
| leave_slope_1 | BC84 | LD (IX+$08),$00 | move across by it; the speed back | |||||
| BC88 | CALL move_across | |||||||
| BC8B | LD (IX+$01),H | |||||||
| BC8E | LD (IX+$02),L | |||||||
| BC91 | LD HL,(saved_speed) | |||||||
| BC94 | LD (IX+$07),L | |||||||
| BC97 | LD (IX+$08),H | |||||||
| leave_slope_2 | BC9A | CALL clear_screen_fields | clear the screen fields | |||||
| BC9D | LD H,(IX+$09) | both speeds too small: slide downhill | ||||||
| BCA0 | LD L,(IX+$0A) | |||||||
| BCA3 | CALL dead_band | |||||||
| BCA6 | LD A,L | |||||||
| BCA7 | OR H | |||||||
| BCA8 | JR NZ,ship_on_slope_response | |||||||
| BCAA | LD H,(IX+$07) | |||||||
| BCAD | LD L,(IX+$08) | |||||||
| BCB0 | CALL dead_band | |||||||
| BCB3 | LD (IX+$08),L | |||||||
| BCB6 | LD A,H | |||||||
| BCB7 | OR L | |||||||
| BCB8 | JR NZ,ship_on_slope_response | |||||||
| BCBA | CALL downhill | |||||||
| BCBD | JR ship_on_slope_response | |||||||
| Prev: BC13 | Up: Map | Next: BCBF |