![]() |
Routines |
| Prev: 32138 | Up: Map | Next: 32195 |
|
Used by the routine at GameInitialisation.
Prepares a new game: the player data, the screen and side panel, the key pieces, the entity table and the doors. Then enters the starting room.
|
|||||
|
|||||
| StartGame | 32154 | CALL ResetPlayerData | Call ResetPlayerData to reset the game data. | ||
|
See Set Starting Lives.
|
|||||
| 32157 | LD A,3 | Write 3 (the number of lives at the start of the game) to PlayerLives. | |||
| 32159 | LD (24097),A | ||||
| 32162 | LD HL,60248 | Set the food pointer in FoodPointer to FoodItems. | |||
| 32165 | LD (24149),HL | ||||
| 32168 | CALL ClearScreen | Call ClearScreen to clear the screen. | |||
| 32171 | CALL DrawSidePanel | Call DrawSidePanel to draw the side panel. | |||
| 32174 | CALL DisplayPlayerLives | Call DisplayPlayerLives to display the lives. | |||
| 32177 | CALL PlaceKeyPieces | Call PlaceKeyPieces to place the key pieces. | |||
| 32180 | CALL SetKeyPositions | Call SetKeyPositions to set the positions of the keys. | |||
| 32183 | CALL ResetGameState | Call ResetGameState to reset the game state. | |||
| 32186 | CALL RandomiseDoors | Call RandomiseDoors to randomise the doors. | |||
| 32189 | CALL PreparePlayer | Call PreparePlayer to prepare the player. | |||
| 32192 | JP EnterRoom | Jump to EnterRoom to enter the room. | |||
|
View the equivalent code in;
|
|||||
| Prev: 32138 | Up: Map | Next: 32195 |