![]() |
Routines |
| Prev: 9076 | Up: Map | Next: 90EB |
|
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 $00 - "You" for action 00, dispatched by TriggerAction.
|
||||
| YouAreDead | 90D2 | SUB A | Clear the character whose turn it is. | |
| 90D3 | LD ($B6EA),A | Update *CurrentCharacter. | ||
| 90D6 | LD HL,$AFF1 | Point at the message "You are dead" (AFF1). | ||
| 90D9 | CALL PrintMessage | Call PrintMessage to print message. | ||
| 90DC | 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 | 90DF | XOR A | Read from the keyboard port. | |
| 90E0 | IN A,($FE) | |||
| 90E2 | AND %00011111 | Keep bits 0-4, one for each key in the half-row. XOR A then IN A,(FE) reads every half-row at once, and a pressed key reads as a reset bit. | ||
| 90E4 | CP $1F | Loop back to YouAreDead_WaitForKey until any key has been pressed. | ||
| 90E6 | JR Z,YouAreDead_WaitForKey | |||
| 90E8 | JP Restart | Jump back to Restart to restart the game. | ||
| Prev: 9076 | Up: Map | Next: 90EB |