junglejourney
changeset 16:acc98c3592fd
Blank the screen while preparing each room and set an appropriate
palette after it has been drawn.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Sat Aug 13 03:05:46 2011 +0200 |
| parents | 551e7b2ddacd |
| children | ae5f572644bd |
| files | mapcode.oph |
| diffstat | 1 files changed, 38 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/mapcode.oph Sat Aug 13 02:41:00 2011 +0200 1.2 +++ b/mapcode.oph Sat Aug 13 03:05:46 2011 +0200 1.3 @@ -392,6 +392,8 @@ 1.4 rts 1.5 1.6 plot_room: ; $78,$79 = i,j (from $4ff0,$4ff1) 1.7 + jsr blank_screen 1.8 + 1.9 lda $4ff0 1.10 sta $78 1.11 lda $4ff1 1.12 @@ -445,6 +447,24 @@ 1.13 jmp row_loop 1.14 1.15 end_rows: 1.16 + lda #1 1.17 + sta $70 1.18 + lda $78 1.19 + eor $79 1.20 + and #3 1.21 + asl 1.22 + adc #1 1.23 + sta $71 1.24 + jsr set_palette 1.25 + 1.26 + lda #2 1.27 + sta $70 1.28 + sta $71 1.29 + jsr set_palette 1.30 + lda #3 1.31 + sta $70 1.32 + sta $71 1.33 + jsr set_palette 1.34 rts 1.35 1.36 1.37 @@ -640,6 +660,24 @@ 1.38 jsr $fff1 1.39 rts 1.40 1.41 +blank_screen: 1.42 + lda #1 1.43 + sta $70 1.44 + lda #0 1.45 + sta $71 1.46 + jsr set_palette 1.47 + lda #2 1.48 + sta $70 1.49 + lda #0 1.50 + sta $71 1.51 + jsr set_palette 1.52 + lda #3 1.53 + sta $70 1.54 + lda #0 1.55 + sta $71 1.56 + jsr set_palette 1.57 + rts 1.58 + 1.59 sprites_file_name: .byte "SPRITES", 13 1.60 chars_file_name: .byte "CHARS", 13 1.61
