diff --git a/ootw/another.png b/ootw/another.png index 15006de7..eb30c6e3 100644 Binary files a/ootw/another.png and b/ootw/another.png differ diff --git a/ootw/ootw.s b/ootw/ootw.s index 22b56fb0..1704bb59 100644 --- a/ootw/ootw.s +++ b/ootw/ootw.s @@ -69,6 +69,8 @@ game_loop: ; copy background to current page + jsr gr_copy_to_current + ; draw adventurer lda #>stand_right @@ -114,7 +116,28 @@ handle_keypress: ; -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 diff --git a/ootw/ootw_backgrounds.inc b/ootw/ootw_backgrounds.inc index 7bec4119..15108cc5 100644 --- a/ootw/ootw_backgrounds.inc +++ b/ootw/ootw_backgrounds.inc @@ -28,23 +28,21 @@ planet_rle: .byte $28 ; ysize=48 .byte $55,$55, $66,$66, $67, $66,$66, $22, $A3,$88, $22 .byte $88, $22,$22, $28, $82, $A3,$22, $88, $82 .byte $28, $86, $A3,$55, $56, $52, $28, $88 - .byte $22, $56, $88, $96,$96, $56,$56, $A3,$55, $85 - .byte $55,$55, $56, $26, $A3,$82, $88, $22, $88,$88 - .byte $A3,$22, $88, $A3,$22, $28, $22,$22, $28,$28, $55,$55 - .byte $22, $25, $22, $88, $82, $85, $88 - .byte $99, $BB, $A4,$55, $85, $88, $55,$55, $25 - .byte $82, $A4,$88, $82,$82, $88, $A3,$22, $28, $A8,$22 - .byte $25, $A4,$82, $A4,$88, $0B, $A5,$85, $88,$88, $85,$85 - .byte $82, $A8,$88, $A4,$22, $52, $82, $55, $85 - .byte $AA,$25, $28, $25,$25, $BB, $25,$25, $28, $A8,$25 - .byte $85, $55,$55, $A4,$85, $22, $55, $88, $55,$55 - .byte $00, $28, $AE,$22, $BB, $AC,$22, $28, $85 - .byte $55, $A3,$88, $A3,$55, $25, $58, $50, $02 - .byte $A5,$52, $72, $A3,$52, $22, $52,$52, $72, $52 - .byte $44, $A6,$52, $22, $A6,$52, $72, $55, $52 - .byte $55, $58, $A3,$82, $88, $82,$82, $00, $88,$88 - .byte $A7,$82, $88, $A3,$82, $88, $44, $A6,$82, $88 - .byte $A4,$82, $88, $A6,$82, $A5,$88, $08, $00, $88 - .byte $08, $AC,$88, $F4, $F8, $A0,$11,$88, $A6,$28, $00 + .byte $22, $56, $88, $A4,$56, $A3,$55, $85, $55,$55 + .byte $56, $26, $A3,$82, $88, $22, $88,$88, $A3,$22 + .byte $88, $A3,$22, $28, $22,$22, $28,$28, $55,$55, $22 + .byte $25, $22, $88, $82, $85, $88, $A6,$55 + .byte $85, $88, $55,$55, $25, $82, $A4,$88, $82,$82 + .byte $88, $A3,$22, $28, $A8,$22, $25, $A4,$82, $A5,$88 + .byte $A5,$85, $88,$88, $85,$85, $82, $A8,$88, $A4,$22, $52 + .byte $82, $55, $85, $AA,$25, $28, $A5,$25, $28 + .byte $A8,$25, $85, $55,$55, $A4,$85, $22, $55, $88 + .byte $55,$55, $00, $28, $A0,$1B,$22, $28, $85, $55 + .byte $A3,$88, $A3,$55, $25, $58, $50, $02, $A5,$52 + .byte $72, $A3,$52, $22, $52,$52, $72, $A8,$52, $22 + .byte $A6,$52, $72, $55, $52, $55, $58, $A3,$82 + .byte $88, $82,$82, $00, $88,$88, $A7,$82, $88, $A3,$82 + .byte $88, $A7,$82, $88, $A4,$82, $88, $A6,$82, $A5,$88 + .byte $08, $00, $88, $08, $A0,$1F,$88, $A6,$28, $00 .byte $28, $00, $28, $A4,$22, $A0,$1A,$28, $A0,$A0,$00 .byte $A1