From 60f21153e18ccf45cb120d50f6d5f5c860de78f2 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 7 Mar 2026 00:44:28 +0100 Subject: Move some variables into another memory region MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The zp_player_tile_* variables fit perfectly with the space that is left in the $0x memory region. This allows for a more contiguous space (e.g. on $Cx) for other elements to come (e.g. items). Signed-off-by: Miquel Sabaté Solà --- src/enemies.s | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/enemies.s') diff --git a/src/enemies.s b/src/enemies.s index 96c63f3..9aaddbe 100644 --- a/src/enemies.s +++ b/src/enemies.s @@ -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 = $C0 - zp_player_tile_right = $C1 - zp_player_tile_top = $C2 - zp_player_tile_waist = $C3 - zp_player_tile_bottom = $C4 + zp_player_tile_left = $0B + zp_player_tile_right = $0C + zp_player_tile_top = $0D + zp_player_tile_waist = $0E + zp_player_tile_bottom = $0F ;; Values for the counter of enemies that fall. ;; -- cgit v1.2.3