From 4c8ed456d990ee99884e9dcd245f665ccb894b50 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 19 Mar 2025 17:28:36 +0100 Subject: Disable the PPU between the title to main screens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit During other transitions like game over and such it might also be needed to have something similar, but for now this should cut it. Signed-off-by: Miquel Sabaté Solà --- src/jetpac.s | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/jetpac.s') diff --git a/src/jetpac.s b/src/jetpac.s index 66d5457..184374e 100644 --- a/src/jetpac.s +++ b/src/jetpac.s @@ -40,8 +40,8 @@ .include "assets.s" .include "background.s" .include "player.s" -.include "driver.s" .include "title.s" +.include "driver.s" .include "vectors.s" .proc main @@ -72,6 +72,7 @@ ;; Enable back the PPU lda #%00011110 + sta PPU::zp_mask sta PPU::MASK @main_game_loop: @@ -85,9 +86,15 @@ jmp @over @title_screen: + ;; If we are in a transitioning state, avoid the update from the title. + lda Globals::zp_flags + and #%00000100 + bne @do_switch + jsr Title::update beq @set_flags +@do_switch: ;; Start was pressed by the player, switch to the main game. jsr Driver::switch jmp @set_flags -- cgit v1.2.3