junglejourney
changeset 99:68552fbfded8
Limit the rate at which projectiles are created when a tile is
destroyed.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Sat Sep 03 01:29:27 2011 +0200 |
| parents | 16f63ddcbbe2 |
| children | 0a3cdf90a812 |
| files | mapcode.oph |
| diffstat | 1 files changed, 20 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/mapcode.oph Sat Sep 03 00:29:43 2011 +0200 1.2 +++ b/mapcode.oph Sat Sep 03 01:29:27 2011 +0200 1.3 @@ -2844,8 +2844,10 @@ 1.4 1.5 lda $3d0a 1.6 cmp #0 1.7 - beq move_projectile_left_exit 1.8 - 1.9 + bne move_projectile_left_in_room 1.10 + jmp move_projectile_left_exit 1.11 + 1.12 + move_projectile_left_in_room: 1.13 tay 1.14 dey ; x - 1 1.15 ldx $3d08 ; y 1.16 @@ -2929,6 +2931,9 @@ 1.17 sta $75 1.18 jsr plot_character 1.19 1.20 + lda #15 ; prevent the player from firing a new 1.21 + sta $3dfd ; projectile until the explosion has finished 1.22 + 1.23 move_projectile_left_exit: 1.24 sec 1.25 rts 1.26 @@ -3046,6 +3051,9 @@ 1.27 sta $75 1.28 jsr plot_character 1.29 1.30 + lda #15 ; prevent the player from firing a new 1.31 + sta $3dfd ; projectile until the explosion has finished 1.32 + 1.33 move_projectile_right_exit: 1.34 sec 1.35 rts 1.36 @@ -3148,6 +3156,9 @@ 1.37 sta $75 1.38 jsr plot_character 1.39 1.40 + lda #15 ; prevent the player from firing a new 1.41 + sta $3dfd ; projectile until the explosion has finished 1.42 + 1.43 move_projectile_up_exit: 1.44 sec 1.45 rts 1.46 @@ -3170,8 +3181,10 @@ 1.47 1.48 lda $3d08 1.49 cmp #9 1.50 - beq move_projectile_down_exit 1.51 - 1.52 + bne move_projectile_down_in_room 1.53 + jmp move_projectile_down_exit 1.54 + 1.55 + move_projectile_down_in_room: 1.56 clc 1.57 tax 1.58 inx ; y + 1 1.59 @@ -3260,6 +3273,9 @@ 1.60 sta $75 1.61 jsr plot_character 1.62 1.63 + lda #15 ; prevent the player from firing a new 1.64 + sta $3dfd ; projectile until the explosion has finished 1.65 + 1.66 move_projectile_down_exit: 1.67 sec 1.68 rts
