From dbcbd43287a28bf087e20e660edd5ba40b5c27ec Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 4 Mar 2026 23:44:47 +0100 Subject: Update lifes left for player 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The whole handling of player 2 will come whenever I set to implement multi-player for this game. Signed-off-by: Miquel Sabaté Solà --- src/driver.s | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/driver.s') diff --git a/src/driver.s b/src/driver.s index 8a0d452..b90cabe 100644 --- a/src/driver.s +++ b/src/driver.s @@ -80,6 +80,14 @@ lda #PLAYER_TIMER_VALUE sta zp_player_timer + ;; Initialize lifes for both players. + lda #4 + sta Player::zp_lifes + sta Player::zp_lifes + 1 + lda Player::zp_state + ora #%00001000 + sta Player::zp_state + ;; Mark the state of the game as "game". That is, the player has ;; started. Also set the `ppu` flag and unset the `title over` one. lda #%01000001 -- cgit v1.2.3