diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-20 15:38:50 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-20 15:40:40 +0100 |
| commit | 997f7527aa2d73bb944ba49c58bd6c2a5909dd47 (patch) | |
| tree | 21cf97e0e912e02e53399bd015facffbc5b0b5e2 /src/over.s | |
| parent | 35ca35294a08dff39c3f4cca9eb0e8c31436b6a3 (diff) | |
| download | jetpac.nes-997f7527aa2d73bb944ba49c58bd6c2a5909dd47.tar.gz jetpac.nes-997f7527aa2d73bb944ba49c58bd6c2a5909dd47.zip | |
Center "game over (coin)" text
Moreover, add a "!" character at the end.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/over.s')
| -rw-r--r-- | src/over.s | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -243,15 +243,16 @@ .byte $29, $30, $1F, $2C, $FF .endproc - ;; Render the "Game over" in the case the player has collected SUSE's coin. - ;; TODO: see how much it can be merged - ;; TODO: not centered nor fully realized. + ;; Render the "Game over" in the case the player has collected SUSE's + ;; coin. There's clearly a way to merge this function with + ;; Over::render_regular_game_over(), but we have so much ROM space left that + ;; I don't even care. .proc render_coin_game_over ;; Set the position. bit PPU::m_status ldx #$29 stx PPU::m_address - ldx #$6C + ldx #$64 stx PPU::m_address ;; And just iterate over the "message" until we reach the end of string @@ -288,7 +289,7 @@ .byte $1B, $00 ;; "SUPER " .byte $2D, $2F, $2A, $1F, $2C, $00 - ;; "PLAYER!" TODO - .byte $2A, $26, $1B, $33, $1F, $2C, $FF + ;; "PLAYER!" + .byte $2A, $26, $1B, $33, $1F, $2C, $80, $FF .endproc .endscope |
