aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-03-06 23:51:57 +0100
committerMiquel Sabaté Solà <mssola@mssola.com>2026-03-06 23:51:57 +0100
commitf21e394e597e198d1e10bca7fd8a5e1103e95a6c (patch)
treeddc79934eeb21418bdac2f89a2414f04bdf14034 /src
parent37b22275726d8a702c2168751f8af5e833fcc46d (diff)
downloadjetpac.nes-f21e394e597e198d1e10bca7fd8a5e1103e95a6c.tar.gz
jetpac.nes-f21e394e597e198d1e10bca7fd8a5e1103e95a6c.zip
Bump up to 4 enemies per screen
This is more similar to the original game, and it's a bit more fun. In order to do so some variables had to move into another memory page, but that's fine as we have plenty. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src')
-rw-r--r--src/enemies.s12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/enemies.s b/src/enemies.s
index 99e8b91..4d46108 100644
--- a/src/enemies.s
+++ b/src/enemies.s
@@ -15,7 +15,7 @@
;;
;; NOTE: EXPLOSIONS_POOL_CAPACITY depends on this value. If you update this,
;; change it there.
- ENEMIES_POOL_CAPACITY = 3
+ ENEMIES_POOL_CAPACITY = 4
;; The amount of bytes each pool item takes.
SIZEOF_POOL_ITEM = 4
@@ -97,11 +97,11 @@
;; Cached values for the tile coordinates from the player. This is set
;; before enemy update, and it's then used during collision check for each
;; enemy.
- zp_player_tile_left = $FC
- zp_player_tile_right = $FD
- zp_player_tile_top = $FE
- zp_player_tile_waist = $FF
- zp_player_tile_bottom = $CF
+ zp_player_tile_left = $C0
+ zp_player_tile_right = $C1
+ zp_player_tile_top = $C2
+ zp_player_tile_waist = $C3
+ zp_player_tile_bottom = $C4
;; Values for the counter of enemies that fall.
;;