![]() |
Routines |
| Prev: 40492 | Up: Map | Next: 40668 |
|
Use the low bits of Jetman_Position minus the actor world X as the animation frame.
|
||||||||
| AnimateFromScroll | 40650 | LD A,(24698) | Fetch Jetman_Position. | |||||
| 40653 | SUB (IX+2) | Subtract the actor world X. | ||||||
| 40656 | AND %00000111 | Keep only bits 0-2. | ||||||
|
Sprite IDs begin at 26 ("Lunar Rover: Left Frame 1").
|
||||||||
| 40658 | ADD A,26 | Add 26 for the sprite IDs. | ||||||
| 40660 | LD (IX+0),A | Write it to the actor type. | ||||||
| 40663 | CALL DrawActorSprite | Call DrawActorSprite. | ||||||
| 40666 | JR Handler_RoverFrames_TestInactive | Jump to Handler_RoverFrames_TestInactive. | ||||||
| Prev: 40492 | Up: Map | Next: 40668 |