From f57a6b6f5ffb3178456bfbf570ca25bf8636faf6 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Wed, 11 Mar 2020 12:07:15 -0400 Subject: [PATCH] mist: finger pointing for buttons works --- mist/draw_pointer.s | 7 +++++++ mist/generator_puzzle.s | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/mist/draw_pointer.s b/mist/draw_pointer.s index 442a7a59..d6cea68f 100644 --- a/mist/draw_pointer.s +++ b/mist/draw_pointer.s @@ -48,11 +48,18 @@ finger_grab: lda #1 sta IN_SPECIAL + lda DIRECTION + and #DIRECTION_ONLY_POINT + bne special_but_point + lda #finger_grab_sprite jmp finger_draw +special_but_point: + jmp finger_point + finger_not_special: ; check for left/right diff --git a/mist/generator_puzzle.s b/mist/generator_puzzle.s index dbfb5e03..e425b479 100644 --- a/mist/generator_puzzle.s +++ b/mist/generator_puzzle.s @@ -50,7 +50,7 @@ button_top_row: lda XPOS sec - sbc #25 + sbc #24 lsr bmi done_press cmp #5 @@ -67,7 +67,7 @@ button_bottom_row: lda XPOS sec - sbc #26 + sbc #25 lsr bmi done_press cmp #5