diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-07 00:29:07 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-07 00:29:07 +0100 |
| commit | 7ce50c89c93326bcd4029a2a4fbf488a41db3369 (patch) | |
| tree | b0c65cfb4f8c663b45bbe6f948c15a3adf71bfa0 /src/bullets.s | |
| parent | 8e374ff6746dc44fd70691aae737236734164ef2 (diff) | |
| download | jetpac.nes-7ce50c89c93326bcd4029a2a4fbf488a41db3369.tar.gz jetpac.nes-7ce50c89c93326bcd4029a2a4fbf488a41db3369.zip | |
Make bullet transitions in relation to HZ
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/bullets.s')
| -rw-r--r-- | src/bullets.s | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bullets.s b/src/bullets.s index 8bbbeaa..58b6a4a 100644 --- a/src/bullets.s +++ b/src/bullets.s @@ -48,12 +48,6 @@ zp_timer = $35 BULLET_TIMER_VALUE = HZ / 15 - ;; Maximum moves that a bullet can do. The tile also transitions depending - ;; on the moves done so far. - BULLET_MAX_MOVES = 26 - BULLET_FIRST_TRANSITION = 20 - BULLET_LAST_TRANSITION = 25 - ;; Velocity at which bullets move. .ifdef PAL BULLET_VELOCITY = 7 @@ -61,6 +55,12 @@ BULLET_VELOCITY = 6 .endif + ;; Maximum moves that a bullet can do. The tile also transitions depending + ;; on the moves done so far. + BULLET_MAX_MOVES = BULLET_VELOCITY * 5 + BULLET_FIRST_TRANSITION = BULLET_VELOCITY * 2 + BULLET_LAST_TRANSITION = BULLET_VELOCITY * 4 + ;; Initialize the pool of bullets. .proc init lda #0 |
