From 95b2a68db0f09b369180f8f78e8b8c0e1dd6d159 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Wed, 29 Jul 2020 17:15:12 -0400 Subject: [PATCH] mist: draw clock face both times you can see it doesn't look 100% great but didn't like the more distant view always showing noon --- mist/clock_bridge_puzzle.s | 25 +++++++++++++++++++++++++ mist/mist.s | 3 +++ 2 files changed, 28 insertions(+) diff --git a/mist/clock_bridge_puzzle.s b/mist/clock_bridge_puzzle.s index a800aaf3..9817a923 100644 --- a/mist/clock_bridge_puzzle.s +++ b/mist/clock_bridge_puzzle.s @@ -328,9 +328,21 @@ draw_clock_face: lda clock_hour_sprites+1,Y sta INH + lda LOCATION + cmp #MIST_CLOCK + bne old_clock_face + +new_clock_face: + lda #24 + sta XPOS + lda #8 + bne done_clock_face ; bra + +old_clock_face: lda #20 sta XPOS lda #6 +done_clock_face: sta YPOS jsr put_sprite_crop @@ -342,9 +354,22 @@ draw_clock_face: lda clock_minute_sprites+1,Y sta INH + lda LOCATION + cmp #MIST_CLOCK + bne old_clock_face2 + +new_clock_face2: + lda #24 + sta XPOS + lda #8 + bne done_clock_face2 ; bra + +old_clock_face2: lda #20 sta XPOS lda #6 +done_clock_face2: + sta YPOS jsr put_sprite_crop done_draw_clock_face: diff --git a/mist/mist.s b/mist/mist.s index 89792cee..e5afa32f 100644 --- a/mist/mist.s +++ b/mist/mist.s @@ -115,6 +115,9 @@ check_if_compartment_open: check_if_clock: cmp #MIST_CLOCK_PUZZLE ; clock puzzle beq location_clock + cmp #MIST_CLOCK + beq location_clock + cmp #MIST_CLOCK_INSIDE beq location_inside_clock bne nothing_special