![]() |
Routines |
| Prev: 9E2C | Up: Map | Next: 9EDC |
|
Use the low bits of Jetman_Position minus the actor world X as the animation frame.
|
||||||||
| AnimateFromScroll | 9ECA | LD A,($607A) | Fetch Jetman_Position. | |||||
| 9ECD | SUB (IX+$02) | Subtract the actor world X. | ||||||
| 9ED0 | AND %00000111 | Keep only bits 0-2. | ||||||
|
Sprite IDs begin at 1A ("Lunar Rover: Left Frame 1").
|
||||||||
| 9ED2 | ADD A,$1A | Add 1A for the sprite IDs. | ||||||
| 9ED4 | LD (IX+$00),A | Write it to the actor type. | ||||||
| 9ED7 | CALL DrawActorSprite | Call DrawActorSprite. | ||||||
| 9EDA | JR Handler_RoverFrames_TestInactive | Jump to Handler_RoverFrames_TestInactive. | ||||||
| Prev: 9E2C | Up: Map | Next: 9EDC |