![]() |
Routines |
| Prev: 40906 | Up: Map | Next: 40974 |
|
Used by the routines at HandlerAxe, HandlerFireball, HandlerSword, HandlerBatlet, HandlerPumpkin, HandlerSparkle, HandlerGhostlet, HandlerSpikey, HandlerBlob, HandlerPop, HandlerGhoul, HandlerMummy, HandlerDracula, HandlerFrankenstein, HandlerDevil, HandlerWitch, HandlerMonk, HandlerHunchback, HandlerFoodItem, ControlPlayer, HandlerPickupItem and HandlerMushroom.
Saves the position and sprite ID of an entity so that RemoveEntity and SetEntityAttributes_Moved can use them after the entity has moved.
|
||||||||
| StoreEntity | 40955 | LD A,(IX+3) | Write the entity X position to Previous_X_Position. | |||||
| 40958 | LD (24086),A | |||||||
| 40961 | LD A,(IX+4) | Write the entity Y position to Previous_Y_Position. | ||||||
| 40964 | LD (24087),A | |||||||
| 40967 | LD A,(IX+0) | Write the entity sprite ID to Previous_Sprite_Id. | ||||||
| 40970 | LD (24085),A | |||||||
| 40973 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 40906 | Up: Map | Next: 40974 |