junglejourney
changeset 128:d27c644bec24
Added sounds for when scenery is destroyed.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Sat Sep 10 13:27:54 2011 +0200 |
| parents | 7b4e7334da87 |
| children | 2b2356e96c0f |
| files | loader.oph mapcode.oph |
| diffstat | 2 files changed, 18 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/loader.oph Sat Sep 10 13:18:03 2011 +0200 1.2 +++ b/loader.oph Sat Sep 10 13:27:54 2011 +0200 1.3 @@ -94,8 +94,8 @@ 1.4 code_block: .byte <code_file_name, >code_file_name 1.5 .byte $00, $1f, 0, 0 1.6 .byte $00, $1f, 0, 0 1.7 - .byte $b3, $1e, 0, 0 1.8 - .byte $b3, $3d, 0, 0 1.9 + .byte $ea, $1e, 0, 0 1.10 + .byte $ea, $3d, 0, 0 1.11 1.12 init_load_window_vdu_bytes: .byte 28,0,29,19,24 1.13
2.1 --- a/mapcode.oph Sat Sep 10 13:18:03 2011 +0200 2.2 +++ b/mapcode.oph Sat Sep 10 13:27:54 2011 +0200 2.3 @@ -2903,6 +2903,9 @@ 2.4 sta $75 2.5 jsr plot_character 2.6 2.7 + ldx #0 2.8 + jsr play_sound 2.9 + 2.10 lda #15 ; prevent the player from firing a new 2.11 sta $3dfd ; projectile until the explosion has finished 2.12 2.13 @@ -3023,6 +3026,9 @@ 2.14 sta $75 2.15 jsr plot_character 2.16 2.17 + ldx #0 2.18 + jsr play_sound 2.19 + 2.20 lda #15 ; prevent the player from firing a new 2.21 sta $3dfd ; projectile until the explosion has finished 2.22 2.23 @@ -3044,8 +3050,10 @@ 2.24 2.25 lda $5188 2.26 cmp #0 2.27 - beq move_projectile_up_exit 2.28 - 2.29 + bne move_projectile_up_not_edge 2.30 + jmp move_projectile_up_exit 2.31 + 2.32 + move_projectile_up_not_edge: 2.33 tax ; use the y offset as an index 2.34 dex ; y - 1 2.35 ldy $518a ; load the x offset 2.36 @@ -3127,6 +3135,9 @@ 2.37 sta $75 2.38 jsr plot_character 2.39 2.40 + ldx #0 2.41 + jsr play_sound 2.42 + 2.43 lda #15 ; prevent the player from firing a new 2.44 sta $3dfd ; projectile until the explosion has finished 2.45 2.46 @@ -3243,6 +3254,9 @@ 2.47 sta $75 2.48 jsr plot_character 2.49 2.50 + ldx #0 2.51 + jsr play_sound 2.52 + 2.53 lda #15 ; prevent the player from firing a new 2.54 sta $3dfd ; projectile until the explosion has finished 2.55
