![]() |
Routines |
| Prev: 63655 | Up: Map | Next: 63722 |
|
Used by the routine at GameEntryPoint.
Initialise the game state and enter the game loop at room 2.
|
||||
| GameStart | 63663 | LD HL,23658 | The keyboard flags are FLAGS2. | |
| 63666 | SET 3,(HL) | Turn CAPS LOCK on. | ||
|
These exit bytes start closed and are opened by the plot.
|
||||
| 63668 | XOR A | Seal the down exit of The Blue Room., south from The Mirrored Room. and east from The eastern end of a Long Cavern.. | ||
| 63669 | LD (35793),A | |||
| 63672 | LD (35813),A | |||
| 63675 | LD (35826),A | |||
| 63678 | LD (35850),A | Seal the east and up exits of The Botanical Grotto.. | ||
| 63681 | LD (35852),A | |||
| 63684 | LD (35937),A | Seal the down exit of The Lower Store Room., west from The Sloping Corridor. and east from The Crystal Bridge.. | ||
| 63687 | LD (35965),A | |||
| 63690 | LD (35982),A | |||
| 63693 | LD A,52 | Restore the north exit of The Alien Commander's Chamber. to The Creature's Lair.. | ||
| 63695 | LD (35992),A | |||
| 63698 | LD A,6 | Restore the south exit of The Landing Pad. to room 6. | ||
| 63700 | LD (35705),A | |||
| 63703 | LD HL,63722 | The default game state is stored at DefaultGameState. | ||
| 63706 | LD DE,25003 | The workspace begins with the object locations. | ||
| 63709 | LD BC,309 | The initial game state is 309 bytes. | ||
| 63712 | LDIR | Copy the default state into the workspace. | ||
| 63714 | LD A,2 | Move the player to In Deep Space,on patrol. (2). | ||
| 63716 | CALL MovePlayerToRoom | |||
| 63719 | JP GameLoop | Jump to GameLoop to read the next command. | ||
| Prev: 63655 | Up: Map | Next: 63722 |