ootw: can walk against background

This commit is contained in:
Vince Weaver 2019-01-13 23:58:48 -05:00
parent 943fc5fac7
commit 63353f3050
3 changed files with 39 additions and 18 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 654 B

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -69,6 +69,8 @@ game_loop:
; copy background to current page ; copy background to current page
jsr gr_copy_to_current
; draw adventurer ; draw adventurer
lda #>stand_right lda #>stand_right
@ -114,7 +116,28 @@ handle_keypress:
; -1 ; -1
and #$7f ; clear high bit
check_left:
cmp #'A'
beq left
cmp #$8 ; left arrow
bne check_right
left:
dec ADV_X
jmp done_keypress
check_right:
cmp #'D'
beq right
cmp #$15
bne unknown
right:
inc ADV_X
jmp done_keypress
unknown:
done_keypress:
bit KEYRESET ; clear the keyboard strobe ; 4 bit KEYRESET ; clear the keyboard strobe ; 4

View File

@ -28,23 +28,21 @@ planet_rle: .byte $28 ; ysize=48
.byte $55,$55, $66,$66, $67, $66,$66, $22, $A3,$88, $22 .byte $55,$55, $66,$66, $67, $66,$66, $22, $A3,$88, $22
.byte $88, $22,$22, $28, $82, $A3,$22, $88, $82 .byte $88, $22,$22, $28, $82, $A3,$22, $88, $82
.byte $28, $86, $A3,$55, $56, $52, $28, $88 .byte $28, $86, $A3,$55, $56, $52, $28, $88
.byte $22, $56, $88, $96,$96, $56,$56, $A3,$55, $85 .byte $22, $56, $88, $A4,$56, $A3,$55, $85, $55,$55
.byte $55,$55, $56, $26, $A3,$82, $88, $22, $88,$88 .byte $56, $26, $A3,$82, $88, $22, $88,$88, $A3,$22
.byte $A3,$22, $88, $A3,$22, $28, $22,$22, $28,$28, $55,$55 .byte $88, $A3,$22, $28, $22,$22, $28,$28, $55,$55, $22
.byte $22, $25, $22, $88, $82, $85, $88 .byte $25, $22, $88, $82, $85, $88, $A6,$55
.byte $99, $BB, $A4,$55, $85, $88, $55,$55, $25 .byte $85, $88, $55,$55, $25, $82, $A4,$88, $82,$82
.byte $82, $A4,$88, $82,$82, $88, $A3,$22, $28, $A8,$22 .byte $88, $A3,$22, $28, $A8,$22, $25, $A4,$82, $A5,$88
.byte $25, $A4,$82, $A4,$88, $0B, $A5,$85, $88,$88, $85,$85 .byte $A5,$85, $88,$88, $85,$85, $82, $A8,$88, $A4,$22, $52
.byte $82, $A8,$88, $A4,$22, $52, $82, $55, $85 .byte $82, $55, $85, $AA,$25, $28, $A5,$25, $28
.byte $AA,$25, $28, $25,$25, $BB, $25,$25, $28, $A8,$25 .byte $A8,$25, $85, $55,$55, $A4,$85, $22, $55, $88
.byte $85, $55,$55, $A4,$85, $22, $55, $88, $55,$55 .byte $55,$55, $00, $28, $A0,$1B,$22, $28, $85, $55
.byte $00, $28, $AE,$22, $BB, $AC,$22, $28, $85 .byte $A3,$88, $A3,$55, $25, $58, $50, $02, $A5,$52
.byte $55, $A3,$88, $A3,$55, $25, $58, $50, $02 .byte $72, $A3,$52, $22, $52,$52, $72, $A8,$52, $22
.byte $A5,$52, $72, $A3,$52, $22, $52,$52, $72, $52 .byte $A6,$52, $72, $55, $52, $55, $58, $A3,$82
.byte $44, $A6,$52, $22, $A6,$52, $72, $55, $52 .byte $88, $82,$82, $00, $88,$88, $A7,$82, $88, $A3,$82
.byte $55, $58, $A3,$82, $88, $82,$82, $00, $88,$88 .byte $88, $A7,$82, $88, $A4,$82, $88, $A6,$82, $A5,$88
.byte $A7,$82, $88, $A3,$82, $88, $44, $A6,$82, $88 .byte $08, $00, $88, $08, $A0,$1F,$88, $A6,$28, $00
.byte $A4,$82, $88, $A6,$82, $A5,$88, $08, $00, $88
.byte $08, $AC,$88, $F4, $F8, $A0,$11,$88, $A6,$28, $00
.byte $28, $00, $28, $A4,$22, $A0,$1A,$28, $A0,$A0,$00 .byte $28, $00, $28, $A4,$22, $A0,$1A,$28, $A0,$A0,$00
.byte $A1 .byte $A1