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 /include | |
| 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 'include')
| -rw-r--r-- | include/globals.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/globals.s b/include/globals.s index ca85d33..f6021b4 100644 --- a/include/globals.s +++ b/include/globals.s @@ -45,4 +45,13 @@ ;; "kind" repeats every 8 waves. Hence, this is just a cached version of ;; masking `zp_level`. zp_level_kind = $25 + + ;; | Bit | Short name | Meaning | + ;; |-----+------------------+--------------------------| + ;; | 7 | enabled | Multiplayer enabled. | + ;; | 6-3 | - | Unused. | + ;; | 2 | player's 2 state | 0: over; 1: alive | + ;; | 1 | player's 1 state | 0: over; 1: alive | + ;; | 0 | active | 0: player 1; 1: player 2 | + zp_multiplayer = $26 .endscope |
