![]() |
Routines |
| Prev: 36982 | Up: Map | Next: 37099 |
|
Used by the routines at Action_Direction, Action_Examine, Turn_ThePlayerHasDied, Event_TheBarrel, Event_TheDeepBog, Event_ARandomHalf, Event_TheWebSmothersYou, Event_StungFromAbove and EventForestriver.
Kills the player and ends the game. Reached through the action list of 0 - "You" for action 0, dispatched by TriggerAction.
|
||||
| YouAreDead | 37074 | SUB A | Clear the character whose turn it is. | |
| 37075 | LD (46826),A | Update *CurrentCharacter. | ||
| 37078 | LD HL,45041 | Point at the message "You are dead" (45041). | ||
| 37081 | CALL PrintMessage | Call PrintMessage to print message. | ||
| 37084 | CALL GameOver_Start | Call GameOver_Start to print the score. | ||
|
This entry point is used by the routine at Event_LocationTwentyFive.
This is the same key wait as Normal_AnyKey, but it ends with a jump to Restart to restart the game.
|
||||
| YouAreDead_WaitForKey | 37087 | XOR A | Read from the keyboard port. | |
| 37088 | IN A,(254) | |||
| 37090 | AND %00011111 | Keep bits 0-4, one for each key in the half-row. XOR A then IN A,(254) reads every half-row at once, and a pressed key reads as a reset bit. | ||
| 37092 | CP 31 | Loop back to YouAreDead_WaitForKey until any key has been pressed. | ||
| 37094 | JR Z,YouAreDead_WaitForKey | |||
| 37096 | JP Restart | Jump back to Restart to restart the game. | ||
| Prev: 36982 | Up: Map | Next: 37099 |