Routines |
Prev: 633C | Up: Map | Next: 6386 |
Used by the routine at 6318.
|
||||
GameOver | 6353 | CALL ActorEraseDestroyed | Call ActorEraseDestroyed. | |
6356 | CALL SetNightAttributes | Call SetNightAttributes. | ||
Give a 50/50 chance of "Night Driver" mode.
|
||||
6359 | LD A,R | A=random number. | ||
635B | AND %00000001 | Keep only bit 0. | ||
635D | JR Z,GameOver_Skip | If A is zero jump to GameOver_Skip. | ||
Else set "day" time.
|
||||
635F | CALL SetDayAttributes | Call SetDayAttributes. | ||
See Infinite Lives.
|
||||
GameOver_Skip | 6362 | LD HL,$5E3D | HL=Player_Lives. | |
6365 | DEC (HL) | Decrease Player_Lives by one. | ||
6366 | JP P,PlayerInit | If lives are still a positive number jump to PlayerInit. | ||
Else, trigger the game over events.
|
||||
6369 | LD (HL),$00 | Write 00 to Player_Lives. | ||
636B | POP HL | Restore HL from the stack. | ||
636C | CALL CheckHighScore | Call CheckHighScore. | ||
636F | CALL SetDayAttributes | Call SetDayAttributes. | ||
6372 | CALL CreateWindow | Call CreateWindow. | ||
Print the "Game Over" messaging.
|
||||
6375 | LD HL,$5878 | HL=5878 (screen location). | ||
6378 | LD DE,$63DA | DE=Message_GameOver. | ||
637B | CALL MenuWriteText | Call MenuWriteText. | ||
Display the text for a short time.
|
||||
637E | LD B,$04 | B=04. | ||
6380 | CALL Delay | Call Delay. | ||
6383 | JP Game_Restart | Jump to Game_Restart. |
Prev: 633C | Up: Map | Next: 6386 |