From bb67789894f1cf9067dfdfb3c439e056e0345b8b Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Mon, 29 Jan 2018 11:02:50 -0500 Subject: [PATCH] mode7_demo: fix sound/bounce location --- mode7_demo/mode7.s | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mode7_demo/mode7.s b/mode7_demo/mode7.s index 7496b16c..bc4bcbdd 100644 --- a/mode7_demo/mode7.s +++ b/mode7_demo/mode7.s @@ -326,6 +326,8 @@ draw_background: ;======================================== draw_sphere: + ; FIXME: optimize this mess + ; draw shadow first lda FRAME_COUNT and #$0f @@ -347,10 +349,10 @@ high_shadow: sta INL done_shadow: - lda #17 ; 2 + lda #18 ; 2 sta XPOS ; 3 - lda #28 ; 2 + lda #36 ; 2 sta YPOS ; 3 jsr put_sprite @@ -375,18 +377,19 @@ done_shadow: adc INH sta INH - lda #17 ; 2 + lda #18 ; 2 sta XPOS ; 3 lda FRAME_COUNT and #$0f tax lda gravity,X + cmp #10 bne no_click bit SPEAKER no_click: clc - adc #10 ; 3 + adc #18 ; 3 sta YPOS ; 3 jsr put_sprite ; 6