junglejourney
changeset 157:82aab9e84ae3
Changed the behaviour of the boomerang to use the weapon counter
to alternate between different directions when it turns.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Sat Sep 17 23:31:31 2011 +0200 |
| parents | 4068ea0fad17 |
| children | df46f7a81aa7 |
| files | mapcode.oph |
| diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line diff
1.1 --- a/mapcode.oph Sat Sep 17 22:57:57 2011 +0200 1.2 +++ b/mapcode.oph Sat Sep 17 23:31:31 2011 +0200 1.3 @@ -2875,7 +2875,7 @@ 1.4 cmp #8 1.5 bpl move_projectile_left_exit 1.6 1.7 - ldx $5285 ; player's dx 1.8 + ldx $577f ; weapon counter 1.9 ora boomerang_horizontal,x 1.10 sta $5287 1.11 clc 1.12 @@ -2918,7 +2918,7 @@ 1.13 sec 1.14 rts 1.15 1.16 -boomerang_horizontal: .byte $28, $28, $38, $38 1.17 +boomerang_horizontal: .byte $28, $38 1.18 1.19 move_projectile_right: 1.20 1.21 @@ -2998,7 +2998,7 @@ 1.22 cmp #8 1.23 bpl move_projectile_right_exit 1.24 1.25 - ldx $5285 ; player's dx 1.26 + ldx $577f ; weapon counter 1.27 ora boomerang_horizontal,x 1.28 sta $5287 1.29 clc 1.30 @@ -3107,7 +3107,7 @@ 1.31 cmp #8 1.32 bpl move_projectile_up_exit 1.33 1.34 - ldx $5283 ; player's dy 1.35 + ldx $577f ; weapon counter 1.36 ora boomerang_vertical,x 1.37 sta $5287 1.38 clc 1.39 @@ -3150,7 +3150,7 @@ 1.40 sec 1.41 rts 1.42 1.43 -boomerang_vertical: .byte $08, $08, $08, $18, $18, $18 1.44 +boomerang_vertical: .byte $08, $18 1.45 1.46 move_projectile_down: 1.47 1.48 @@ -3226,7 +3226,7 @@ 1.49 cmp #8 1.50 bpl move_projectile_down_exit 1.51 1.52 - ldx $5283 ; player's dy 1.53 + ldx $577f ; weapon counter 1.54 ora boomerang_vertical,x 1.55 sta $5287 1.56 clc
