diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-07 23:27:28 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-08 16:50:06 +0100 |
| commit | 220c80b987ba54d709180e3d95e9e0d82af4249c (patch) | |
| tree | 2b84b016d70650ad57a2acb8ad6ca7c28ff8629d /src/title.s | |
| parent | e8f39dc4a7cc19fb97e24ec0819ccd964cbd325f (diff) | |
| download | jetpac.nes-220c80b987ba54d709180e3d95e9e0d82af4249c.tar.gz jetpac.nes-220c80b987ba54d709180e3d95e9e0d82af4249c.zip | |
Define the bitmap for multiplayer support
Also give it a dummy value on start and initialize it properly after the
player's selection on the title screen.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/title.s')
| -rw-r--r-- | src/title.s | 11 |
1 files changed, 10 insertions, 1 deletions
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 |
