Routines |
Prev: 9DCF | Up: Map | Next: 9E07 |
Check for a BREAK keypress.
Used by the routine at main_loop.
If pressed then clear the screen and confirm with the player that they want to reset the game. Reset if requested.
|
||||
keyscan_break | 9DE5 | LD BC,$FEFE | If shift or space are not pressed then return | |
9DE8 | IN A,(C) | |||
9DEA | AND $01 | |||
9DEC | RET NZ | |||
9DED | LD B,$7F | |||
9DEF | IN A,(C) | |||
9DF1 | AND $01 | |||
9DF3 | RET NZ | |||
9DF4 | CALL screen_reset | Reset the screen | ||
9DF7 | CALL user_confirm | Wait for the player to press 'Y' or 'N' | ||
9DFA | JP Z,reset_game | If 'Y' was pressed (Z set) then reset the game | ||
9DFD | LD A,($68A0) | If the global current room index is room_0_OUTDOORS then !(Reset the hero's position, redraw the scene, then zoombox it onto the screen) and return | ||
9E00 | AND A | |||
9E01 | JP Z,reset_outdoors | |||
9E04 | JP enter_room | The hero enters a room - returns via squash_stack_goto_main |
Prev: 9DCF | Up: Map | Next: 9E07 |