![]() |
Routines |
| Prev: 51144 | Up: Map | Next: 51176 |
|
Used by the routine at InitialiseGame.
Clears PlayfieldBuffer and the object slots. It sets TownOffset to 4, clears StageKind and sets ScreenAttribute to INK:WHITE, PAPER:BLACK (BRIGHT), then jumps to StartStage.
|
||||
|
Clear the buffer and the objects.
|
||||
| ReturnToTown | 51153 | CALL ClearBuffer | Call ClearBuffer. | |
| 51156 | CALL RemoveAllObjects | Call RemoveAllObjects. | ||
|
Put the game back in the town.
|
||||
| 51159 | LD A,4 | Set TownOffset to 4. | ||
| 51161 | LD (41575),A | |||
| 51164 | XOR A | Clear StageKind. | ||
| 51165 | LD (41573),A | |||
| 51168 | LD A,71 | Set ScreenAttribute to INK:WHITE, PAPER:BLACK (BRIGHT). | ||
| 51170 | LD (41574),A | |||
| 51173 | JP StartStage | Jump to StartStage. | ||
| Prev: 51144 | Up: Map | Next: 51176 |