Prev: 43036 Up: Map Next: 43084
43046: Initialise New Level
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.
new-level
terrain-strip
Award an extra life, then rebuild the level.
LevelNew 43046 LD HL,24225 Increase the lives counter ActivePlayer_Lives by one.
43049 INC (HL)
This entry point is used by the routine at LoseLife.
Reset aliens, Jetman, the window and the sprite caches.
LevelInitialisation 43050 CALL ResetAlienStates Call ResetAlienStates.
43053 CALL InitialiseJetman Call InitialiseJetman.
43056 CALL CreateWindow Call CreateWindow.
Clear the sprite caches and the laser beam slots.
43059 CALL ClearSpriteCaches Call ClearSpriteCaches.
43062 CALL Handler_ResetLaserBeamSlots Call Handler_ResetLaserBeamSlots.
Redraw the lives, terrain and HUD panel, then drop the world objects.
43065 CALL DisplayPlayerLives Call DisplayPlayerLives.
43068 CALL DrawTerrain Call DrawTerrain.
43071 CALL DrawHUDPanel Call DrawHUDPanel.
43074 CALL HideDistantObjects Call HideDistantObjects.
Store the current frame counter as the last frame.
43077 LD A,(23672) A=FRAMES.
43080 LD (24147),A Write A to LastFrame.
43083 RET Return.
View the equivalent code in;
Prev: 43036 Up: Map Next: 43084