![]()  | 
Routines | 
| Prev: 64892 | Up: Map | Next: 64949 | 
| 
 
Used by the routine at GameStart_Alias.
 
 | 
||||
| GameStart | 64898 | LD HL,64949 | Copy 324 bytes from DefaultGameState to Table_ItemLocations. | |
| 64901 | LD DE,48112 | |||
| 64904 | LD BC,324 | |||
| 64907 | LDIR | |||
| 
 
Remove a bunch of room exits (as actions in the game will open them back up).
 
 | 
||||
| 64909 | LD IX,60830 | IX=Table_ConfigurableExits. | ||
| 64913 | LD A,(48434) | B=*Count_ConfigurableExits. | ||
| 64916 | LD B,A | |||
| 64917 | XOR A | Set A to 0 which "removes" the exit. | ||
| GameStart_Loop | 64918 | LD L,(IX+0) | L=*IX+0. | |
| 64921 | LD H,(IX+1) | H=*IX+1. | ||
| 64924 | LD (HL),A | Write A to *HL. | ||
| 64925 | INC IX | Move to the next address in the table. | ||
| 64927 | INC IX | |||
| 64929 | DJNZ GameStart_Loop | Decrease the exits counter by one and loop back to GameStart_Loop until all the room exits have been cleared. | ||
| 
 
Ensure two exits are "open" (as they can become blocked in the game).
 
 | 
||||
| 64931 | LD A,47 | Enable the exit "west to room 47" for The Canyon. | ||
| 64933 | LD (60455),A | |||
| 64936 | LD A,48 | Enable the exit "north to room 48" for The Secluded Beach. | ||
| 64938 | LD (60458),A | |||
| 64941 | LD A,3 | Call ChangeRoom to room 3: Your Ship. | ||
| 64943 | CALL ChangeRoom | |||
| 64946 | JP GameLoop | Jump to GameLoop. | ||
| Prev: 64892 | Up: Map | Next: 64949 |