Skip to content

Commit

Permalink
more gameover comments
Browse files Browse the repository at this point in the history
  • Loading branch information
danielah05 committed Jun 3, 2022
1 parent 24ee26f commit 94034ec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions engine/battle/core.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1186,21 +1186,21 @@ HandlePlayerBlackOut:
GameOverScript:
farcall ClearSAV ; delete the save file :(
ld a, $FF
ld [wJoyIgnore], a
call ClearScreen
ld [wUpdateSpritesEnabled], a ; lmao!
call ClearSprites
ld [wJoyIgnore], a ; ignore any inputs from player
call ClearScreen ; turn the screen shite
ld [wUpdateSpritesEnabled], a
call ClearSprites ; clear all the currents sprites
ld a, SFX_STOP_ALL_MUSIC
call PlaySound
call PlaySound ; kill music
; pretty much get rid of the game, its time to draw the game over screen!
ld de, BuriedGameOverPic
lb bc, BANK(BuriedGameOverPic), $00
call DisplayPicCentered
call DisplayPicCentered ; render game over image
ld c, BANK(Music_Lavender)
ld a, MUSIC_LAVENDER
call PlayMusic
call PlayMusic ; start lavender town music
call FadeInPic
ld hl, GraveGameOverText ; make gameover
ld hl, GraveGameOverText ; render gameover text
call PrintText
.loop ; yes i use a loop here, without it the game would continue the blacking out code. very shitty method of fixing it but it works
jp .loop
Expand Down

0 comments on commit 94034ec

Please sign in to comment.