From f21e394e597e198d1e10bca7fd8a5e1103e95a6c Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 6 Mar 2026 23:51:57 +0100 Subject: Bump up to 4 enemies per screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- src/enemies.s | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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. ;; -- cgit v1.2.3