castleraider
changeset 292:256c97f5d8fe
Moved the first monster.
Added sound enable (S) and disable (Q) key support.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Sun Mar 30 23:06:08 2014 +0200 |
| parents | 789d97ee40d7 |
| children | 0511bde814c4 |
| files | code.oph levels/default.txt sound.oph |
| diffstat | 3 files changed, 26 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/code.oph Sun Mar 30 22:41:22 2014 +0200 1.2 +++ b/code.oph Sun Mar 30 23:06:08 2014 +0200 1.3 @@ -203,7 +203,7 @@ 1.4 1.5 ldx #200 ; (P) 1.6 jsr check_key 1.7 - bne main_loop_check_escape 1.8 + bne main_loop_no_pause 1.9 1.10 main_loop_pause_loop: 1.11 1.12 @@ -211,6 +211,24 @@ 1.13 jsr check_key 1.14 bne main_loop_pause_loop 1.15 1.16 + main_loop_no_pause: 1.17 + 1.18 + ldx #174 ; (S) 1.19 + jsr check_key 1.20 + bne main_loop_check_quiet 1.21 + 1.22 + ldx #0 ; Enable sound (X=0). 1.23 + jsr disable_sound 1.24 + 1.25 + main_loop_check_quiet: 1.26 + 1.27 + ldx #239 ; (Q) 1.28 + jsr check_key 1.29 + bne main_loop_check_escape 1.30 + 1.31 + ldx #1 ; Disable sound (X=1). 1.32 + jsr disable_sound 1.33 + 1.34 main_loop_check_escape: 1.35 ldx #143 ; (Escape) 1.36 jsr check_key
2.1 --- a/levels/default.txt Sun Mar 30 22:41:22 2014 +0200 2.2 +++ b/levels/default.txt Sun Mar 30 23:06:08 2014 +0200 2.3 @@ -47,7 +47,7 @@ 2.4 ..................I.............................................++++++++++++................................................................................................................................@@@@--------------------------@@@@.................@@@@@@@@@@@@@@@@@@.......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..@@@@@@@@@@@@@@@@@@@@@@@@/.\@@@@@@@@@@..............2............@@@@@@@@@@@@@@...... 2.5 ..................I..........................................+++############++++..........................................................................................................................@@@@@@..........................@@@@@@........................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..@@@@@@@@@@@@@@@@@@@@@@@@...........................2..........n.@@@@@@@@@@@@@@@@.... 2.6 ..................I.......................................+++###################++........................+++++.....................+++++++.............................................................@@@@@@@@..........................@@@@@@@@..................................ZZZZ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...........................2............@@@@@@@@@@@@@@@@@@.. 2.7 -.................@@@@@@@@@@@@..................>.....+++++########################++++............>.....++#####++.>............+++++#######+++++@@........>.........@@++++++++++++++++++++++++++++++++@@@@@@@@@@..........................@@@@@@@@@@..................>.............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@SSS.......................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2.8 +.................@@@@@@@@@@@@.......>................+++++########################++++............>.....++#####++.>............+++++#######+++++@@........>.........@@++++++++++++++++++++++++++++++++@@@@@@@@@@..........................@@@@@@@@@@..................>.............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@SSS.......................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2.9 +++@@------------@@@@@@@@@@@@++++++++++++++++++++++++#################################++++++++++++++++++#########++++++++++++++#################@@@@@@@@@@@@@@@@@@@@@@################################@@@@@@@@@@..........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2.10 2.11 Basement
