![]() |
Routines |
| Prev: 81DB | Up: Map | Next: 8209 |
|
|
||||
| HandlerFireball | 81F0 | CALL StoreEntity | Call StoreEntity to prepare for the mask. | |
| 81F3 | LD A,(IX+$00) | Grab the current frame and increment it by one. | ||
| 81F6 | INC A | |||
| 81F7 | AND %00000011 | Keep only bits 0-2 (there are 8 animation frames). | ||
| 81F9 | ADD A,$34 | Add 34 to point to the correct frame/ sprite ID (the fireball base sprite ID is: 34). | ||
| 81FB | LD (IX+$00),A | Write the new frame/ sprite ID back to the entity. | ||
| 81FE | LD A,($5C78) | A=FRAMES. | ||
| 8201 | RLA | |||
| 8202 | AND %00000010 | Keep only bit 1. | ||
| 8204 | ADD A,$45 | |||
| 8206 | LD (IX+$05),A | |||
|
Continue on to HandlerWeapon.
|
||||
| Prev: 81DB | Up: Map | Next: 8209 |