diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-07 00:44:28 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-07 00:44:28 +0100 |
| commit | 60f21153e18ccf45cb120d50f6d5f5c860de78f2 (patch) | |
| tree | 856fe491cc916bb3a13fd04d1f944c2414ca0809 /src | |
| parent | c7f33db75d0d41e631abcf952be1b39ee0a6f6f1 (diff) | |
| download | jetpac.nes-60f21153e18ccf45cb120d50f6d5f5c860de78f2.tar.gz jetpac.nes-60f21153e18ccf45cb120d50f6d5f5c860de78f2.zip | |
Move some variables into another memory region
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à <mssola@mssola.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/enemies.s | 10 |
1 files changed, 5 insertions, 5 deletions
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. ;; |
