![]() |
Routines |
Prev: 64653 | Up: Map | Next: 64770 |
Used by the routine at GameStart_Alias.
|
||||
GameStart | 64718 | LD HL,64770 | Copy 390 bytes from DefaultGameState to Table_ItemLocations. | |
64721 | LD DE,42604 | |||
64724 | LD BC,390 | |||
64727 | LDIR | |||
Remove a bunch of room exits (as actions in the game will open them back up).
|
||||
64729 | LD IX,59768 | IX=Table_ConfigurableExits. | ||
64733 | LD A,(42992) | B=*Count_ConfigurableExits. | ||
64736 | LD B,A | |||
64737 | XOR A | Set A to 0 which "removes" the exit. | ||
GameStart_Loop | 64738 | LD L,(IX+0) | L=*IX+0. | |
64741 | LD H,(IX+1) | H=*IX+1. | ||
64744 | LD (HL),A | Write A to *HL. | ||
64745 | INC IX | Move to the next address in the table. | ||
64747 | INC IX | |||
64749 | DJNZ GameStart_Loop | Decrease the exits counter by one and loop back to GameStart_Loop until all the room exits have been cleared. | ||
Ensure three exits are "open" (as they can become blocked in the game).
|
||||
64751 | LD A,80 | Enable the exit "north to room 80 for The Enchanted Hills". | ||
64753 | LD (59636),A | |||
64756 | LD (59638),A | Enable the exit "east to room 80 for The Enchanted Hills". | ||
64759 | LD (59639),A | Enable the exit "west to room 80 for The Enchanted Hills". | ||
64762 | LD A,2 | Call 60176 to room 2: A Wooded Vale. | ||
64764 | CALL 60176 | |||
64767 | JP GameLoop | Jump to GameLoop. |
Prev: 64653 | Up: Map | Next: 64770 |