aboutsummaryrefslogtreecommitdiff
path: root/src/driver.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver.s')
-rw-r--r--src/driver.s8
1 files changed, 8 insertions, 0 deletions
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