; Ootw .include "zp.inc" .include "hardware.inc" title_screen: ;=========================== ; Enable graphics bit LORES bit SET_GR bit FULLGR ;=========================== ; Clear both bottoms lda #$4 sta DRAW_PAGE jsr clear_bottom lda #$0 sta DRAW_PAGE jsr clear_bottom lda #0 sta DRAW_PAGE lda #1 sta DISP_PAGE ;============================= ; Load background to $c00 lda #$0c sta BASH lda #$00 sta BASL ; load image off-screen $c00 lda #>(planet_rle) sta GBASH lda #<(planet_rle) sta GBASL jsr load_rle_gr ;================================= ; copy to both pages $400/$800 jsr gr_copy_to_current jsr page_flip jsr gr_copy_to_current ;================================= ; setup vars lda #22 sta ADV_Y lda #20 sta ADV_X game_loop: ; check keyboard jsr handle_keypress ; copy background to current page ; draw adventurer lda #>stand_right sta INH lda #