From 1d1d2e25547c7240a2d13ad7a55ba522539fec95 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Mon, 14 Jan 2019 00:34:45 -0500 Subject: [PATCH] ootw: can change direction --- ootw/ootw.s | 35 ++++++++++++++++++++++++++++++++--- ootw/ootw_sprites.inc | 4 ++-- ootw/zp.inc | 8 +++----- 3 files changed, 37 insertions(+), 10 deletions(-) diff --git a/ootw/ootw.s b/ootw/ootw.s index a58d0b19..fbd30243 100644 --- a/ootw/ootw.s +++ b/ootw/ootw.s @@ -61,6 +61,9 @@ title_screen: lda #20 sta ADV_X + lda #1 + sta DIRECTION + game_loop: ; check keyboard @@ -73,14 +76,24 @@ game_loop: ; draw adventurer - lda #>stand_right + lda DIRECTION + beq stand_left + +stand_right: + lda #>adv_stand_right sta INH - lda #adv_stand_left + sta INH + lda #