aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jetpac.s1
-rw-r--r--src/title.s11
2 files changed, 11 insertions, 1 deletions
diff --git a/src/jetpac.s b/src/jetpac.s
index 52ec1f7..e8d6543 100644
--- a/src/jetpac.s
+++ b/src/jetpac.s
@@ -124,6 +124,7 @@
;; have zero as their initial values. Note that it's important to have these
;; variables defined before
sta Globals::zp_flags
+ sta Globals::zp_multiplayer
sta Joypad::zp_buttons1
sta Joypad::zp_buttons2
sta Player::zp_state
diff --git a/src/title.s b/src/title.s
index e3a2086..06ca1cb 100644
--- a/src/title.s
+++ b/src/title.s
@@ -89,9 +89,18 @@
rts
.endproc
- ;; Save the selection from the menu (TODO), hide all elements from the title
+ ;; Save the selection from the menu, hide all elements from the title
;; screen, and return always 1.
.proc start
+ ;; Select whether player 2 is to be alive or not.
+ lda #%00000010
+ ldx OAM::m_sprites
+ cpx #SPRITE_Y_POSITION1
+ bne @set_multi
+ ora #%10000100
+ @set_multi:
+ sta Globals::zp_multiplayer
+
;; Hide the sprite from the menu.
lda #$EF
sta OAM::m_sprites