junglejourney
changeset 165:b8837b3d2e11
Removed the restriction on projectiles needing to be lined up in
order to destroy scenery.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Sun Sep 18 20:12:33 2011 +0200 |
| parents | e0bda78f458f |
| children | c33b1bdd2607 |
| files | loader.oph mapcode.oph |
| diffstat | 2 files changed, 4 insertions(+), 18 deletions(-) [+] |
line diff
1.1 --- a/loader.oph Sun Sep 18 17:00:06 2011 +0200 1.2 +++ b/loader.oph Sun Sep 18 20:12:33 2011 +0200 1.3 @@ -94,8 +94,8 @@ 1.4 code_block: .byte <code_file_name, >code_file_name 1.5 .byte $00, $1e, 0, 0 1.6 .byte $00, $1e, 0, 0 1.7 - .byte $30, $20, 0, 0 1.8 - .byte $30, $3e, 0, 0 1.9 + .byte $2b, $20, 0, 0 1.10 + .byte $2b, $3e, 0, 0 1.11 1.12 init_load_window_vdu_bytes: .byte 28,0,29,19,24 1.13
2.1 --- a/mapcode.oph Sun Sep 18 17:00:06 2011 +0200 2.2 +++ b/mapcode.oph Sun Sep 18 20:12:33 2011 +0200 2.3 @@ -2896,6 +2896,7 @@ 2.4 adc #10 2.5 sta $70 2.6 lda ($70),y ; load the tile below and to the left 2.7 + inx ; y += 1 2.8 2.9 cmp #0 2.10 bne move_projectile_left_wall 2.11 @@ -2936,10 +2937,6 @@ 2.12 cmp #6 ; type 3 can destroy certain walls 2.13 bne move_projectile_left_exit 2.14 2.15 - lda $5289 ; dy 2.16 - cmp #3 2.17 - beq move_projectile_left_exit ; shots must be lined up 2.18 - 2.19 lda ($70),y ; load the tile to the left 2.20 cmp #1 ; decoration can be destroyed 2.21 bne move_projectile_left_exit 2.22 @@ -3014,6 +3011,7 @@ 2.23 adc #10 2.24 sta $70 2.25 lda ($70),y ; load the tile below and to the right 2.26 + inx ; y += 1 2.27 2.28 cmp #0 2.29 bne move_projectile_right_wall 2.30 @@ -3059,10 +3057,6 @@ 2.31 cmp #6 ; type 3 can destroy certain walls 2.32 bne move_projectile_right_exit 2.33 2.34 - lda $5289 ; dy 2.35 - cmp #3 2.36 - beq move_projectile_right_exit ; shots must be lined up 2.37 - 2.38 lda ($70),y ; load the tile to the right 2.39 cmp #1 ; decoration can be destroyed 2.40 bne move_projectile_right_exit 2.41 @@ -3168,10 +3162,6 @@ 2.42 cmp #6 ; type 3 can destroy certain walls 2.43 bne move_projectile_up_exit 2.44 2.45 - lda $528b ; dx 2.46 - cmp #3 2.47 - bpl move_projectile_up_exit ; shots must be lined up 2.48 - 2.49 lda ($70),y ; load the tile above 2.50 cmp #1 ; decoration can be destroyed 2.51 bne move_projectile_up_exit 2.52 @@ -3287,10 +3277,6 @@ 2.53 cmp #6 ; type 3 can destroy certain walls 2.54 bne move_projectile_down_exit 2.55 2.56 - lda $528b ; dx 2.57 - cmp #3 2.58 - bpl move_projectile_down_exit ; shots must be lined up 2.59 - 2.60 lda ($70),y ; load the tile below 2.61 cmp #1 ; decoration can be destroyed 2.62 bne move_projectile_down_exit
