![]() |
Routines |
| Prev: 28160 | Up: Map | Next: 28210 |
|
Used by the routines at HandlerAccelerate and SubtractX.
Reverses the direction in X, sounds the bounce and carries on.
|
||||
| BounceX | 28185 | LD A,(24081) | Fetch the quadrant of the direction (24081). | |
| 28188 | XOR %00000011 | Flip bits 0 and 1. | ||
| 28190 | LD (24081),A | Write the quadrant back to 24081. | ||
| 28193 | LD A,(24080) | Fetch the direction (Player_Direction). | ||
| 28196 | CPL | Flip all the bits. | ||
| 28197 | LD (24080),A | Write the direction back to Player_Direction. | ||
| 28200 | LD A,5 | Set the bounce counter to 5. | ||
| 28202 | LD (24133),A | Write the bounce counter to BounceCounter. | ||
| 28205 | CALL SoundsBounce | Make the bounce sound using SoundsBounce. | ||
| 28208 | JR HandlerAccelerate_UpdateObject | Jump to HandlerAccelerate_UpdateObject. | ||
| Prev: 28160 | Up: Map | Next: 28210 |