From 2f140cfb7ea73e631fce086327bcb3a674758b0e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 1 Apr 2025 16:23:34 +0200 Subject: player: First PAL implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The steps by which a player increases its current velocity to reach the target one has been adapted on PAL, so every five frames it takes an extra step compared to NTSC. This at least brings PAL to grow its values at the same rate as NTSC. Signed-off-by: Miquel Sabaté Solà --- src/jetpac.s | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/jetpac.s') diff --git a/src/jetpac.s b/src/jetpac.s index 184374e..65b5d11 100644 --- a/src/jetpac.s +++ b/src/jetpac.s @@ -52,6 +52,12 @@ ;; Initialize the assets for the game. jsr Assets::init + ;; Initialize some PAL-specific constants. + .ifdef PAL + lda #0 + sta Driver::zp_pal_counter + .endif + ;; We shadow the PPU control register in memory. Depending on the `make` ;; target we might need to switch directly to the main game. Otherwise we go ;; into the title as expected. -- cgit v1.2.3