From 997f7527aa2d73bb944ba49c58bd6c2a5909dd47 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 20 Mar 2026 15:38:50 +0100 Subject: Center "game over (coin)" text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moreover, add a "!" character at the end. Signed-off-by: Miquel Sabaté Solà --- src/over.s | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/over.s b/src/over.s index 6fb1db1..e5855e3 100644 --- a/src/over.s +++ b/src/over.s @@ -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 -- cgit v1.2.3