aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-03-06 23:59:52 +0100
committerMiquel Sabaté Solà <mssola@mssola.com>2026-03-07 00:00:14 +0100
commit620812b5a9edc882ea5ab159914c4ff75a6cf51e (patch)
tree16b31aa3c5dbc2334da0184a500744bc2c7a3629
parentf21e394e597e198d1e10bca7fd8a5e1103e95a6c (diff)
downloadjetpac.nes-620812b5a9edc882ea5ab159914c4ff75a6cf51e.tar.gz
jetpac.nes-620812b5a9edc882ea5ab159914c4ff75a6cf51e.zip
Update the explosions' pool capacity
More enemies means more possible explosions. Hence, increase the pool's capacity by one to match the recent change in enemies per screen. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
-rw-r--r--.nasm/memory.txt6
-rw-r--r--src/explosions.s4
2 files changed, 5 insertions, 5 deletions
diff --git a/.nasm/memory.txt b/.nasm/memory.txt
index 3ff57d4..294d911 100644
--- a/.nasm/memory.txt
+++ b/.nasm/memory.txt
@@ -35,8 +35,8 @@ $50: zp_state
$51: zp_walk_counter
$53-$54: zp_lifes
$60-$6F: zp_pool_base
-$70-$7B: zp_pool_base
-$7C: zp_active
+$70-$7E: zp_pool_base
+$7F: zp_active
$80: zp_control
$81: zp_mask
$A0-$BD: zp_pool_base
@@ -69,4 +69,4 @@ $4016: m_joypad1
$4017: m_frame_counter
--- Summary (in bytes) ---
-- Internal RAM: 387/2048 (18.90%)
+- Internal RAM: 390/2048 (19.04%)
diff --git a/src/explosions.s b/src/explosions.s
index 58a700e..b5d404c 100644
--- a/src/explosions.s
+++ b/src/explosions.s
@@ -13,7 +13,7 @@
;; Maximum amount of explosions allowed on screen at the same time. At
;; maximum it can happen that all enemies explode at the same time (3), plus
;; some animation (e.g. player blasting off).
- EXPLOSIONS_POOL_CAPACITY = 3 + 1
+ EXPLOSIONS_POOL_CAPACITY = 4 + 1
;; The capacity of the explosions pool in bytes.
EXPLOSIONS_POOL_CAPACITY_BYTES = EXPLOSIONS_POOL_CAPACITY * 3
@@ -32,7 +32,7 @@
zp_pool_base = $70 ; asan:reserve EXPLOSIONS_POOL_CAPACITY_BYTES
;; Number of active explosions at the moment.
- zp_active = $7C
+ zp_active = $7F
;; The amount of time each explosion frame will take.
FRAME_TIME = HZ / 20