Prev: F8A7 Up: Map Next: F8EA
F8AF: Game Start
Used by the routine at GameEntryPoint.
Initialise the game state and enter the game loop at room 02.
GameStart F8AF LD HL,$5C6A The keyboard flags are FLAGS2.
F8B2 SET 3,(HL) Turn CAPS LOCK on.
These exit bytes start closed and are opened by the plot.
F8B4 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..
F8B5 LD ($8BD1),A
F8B8 LD ($8BE5),A
F8BB LD ($8BF2),A
F8BE LD ($8C0A),A Seal the east and up exits of The Botanical Grotto..
F8C1 LD ($8C0C),A
F8C4 LD ($8C61),A Seal the down exit of The Lower Store Room., west from The Sloping Corridor. and east from The Crystal Bridge..
F8C7 LD ($8C7D),A
F8CA LD ($8C8E),A
F8CD LD A,$34 Restore the north exit of The Alien Commander's Chamber. to The Creature's Lair..
F8CF LD ($8C98),A
F8D2 LD A,$06 Restore the south exit of The Landing Pad. to room 06.
F8D4 LD ($8B79),A
F8D7 LD HL,$F8EA The default game state is stored at DefaultGameState.
F8DA LD DE,$61AB The workspace begins with the object locations.
F8DD LD BC,$0135 The initial game state is 0135 bytes.
F8E0 LDIR Copy the default state into the workspace.
F8E2 LD A,$02 Move the player to In Deep Space,on patrol. (02).
F8E4 CALL MovePlayerToRoom
F8E7 JP GameLoop Jump to GameLoop to read the next command.
Prev: F8A7 Up: Map Next: F8EA