![]() |
Routines |
| Prev: A81C | Up: Map | Next: A84C |
|
Used by the routine at StartGame.
Awards an extra life, then rebuilds the level by resetting the aliens, Jetman, the window and the sprite caches.
|
||||||
Award an extra life, then rebuild the level.
|
||||||
| LevelNew | A826 | LD HL,$5EA1 | Increase the lives counter ActivePlayer_Lives by one. | |||
| A829 | INC (HL) | |||||
|
This entry point is used by the routine at LoseLife.
Reset aliens, Jetman, the window and the sprite caches.
|
||||||
| LevelInitialisation | A82A | CALL ResetAlienStates | Call ResetAlienStates. | |||
| A82D | CALL InitialiseJetman | Call InitialiseJetman. | ||||
| A830 | CALL CreateWindow | Call CreateWindow. | ||||
|
Clear the sprite caches and the laser beam slots.
|
||||||
| A833 | CALL ClearSpriteCaches | Call ClearSpriteCaches. | ||||
| A836 | CALL Handler_ResetLaserBeamSlots | Call Handler_ResetLaserBeamSlots. | ||||
|
Redraw the lives, terrain and HUD panel, then drop the world objects.
|
||||||
| A839 | CALL DisplayPlayerLives | Call DisplayPlayerLives. | ||||
| A83C | CALL DrawTerrain | Call DrawTerrain. | ||||
| A83F | CALL DrawHUDPanel | Call DrawHUDPanel. | ||||
| A842 | CALL HideDistantObjects | Call HideDistantObjects. | ||||
|
Store the current frame counter as the last frame.
|
||||||
| A845 | LD A,($5C78) | A=FRAMES. | ||||
| A848 | LD ($5E53),A | Write A to LastFrame. | ||||
| A84B | RET | Return. | ||||
| Prev: A81C | Up: Map | Next: A84C |