From d7e95d7cc7c97e8402f3bdb8210627637bdcfe11 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Wed, 16 Dec 2020 14:56:16 -0500 Subject: [PATCH] duke: start at top of screen, dropping in --- duke/duke.s | 6 +++--- duke/status_bar.s | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/duke/duke.s b/duke/duke.s index 331a9ad6..9c87353a 100644 --- a/duke/duke.s +++ b/duke/duke.s @@ -76,7 +76,7 @@ duke_start: lda #18 sta DUKE_X - lda #20 + lda #0 sta DUKE_Y lda #1 sta DUKE_DIRECTION @@ -109,9 +109,9 @@ duke_start: ;==================================== ; copy in tilemap subset ;==================================== - lda #13 + lda #28 sta TILEMAP_X - lda #20 + lda #0 sta TILEMAP_Y jsr copy_tilemap_subset diff --git a/duke/status_bar.s b/duke/status_bar.s index e544ca5f..2326205e 100644 --- a/duke/status_bar.s +++ b/duke/status_bar.s @@ -107,6 +107,15 @@ update_items: done_red_key: + lda INVENTORY + + and #INV_BLUE_KEY + beq done_blue_key + + lda #'B'&$3f + sta status_string+35 + +done_blue_key: rts