From 1c7b6fde81a23c27ce0e3f85d9eab5e13362be24 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 1 Jun 2015 23:11:50 -0400 Subject: [PATCH] Tweak to collision-detection. --- pewpew.asm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pewpew.asm b/pewpew.asm index ed6d2b7..99efa8d 100644 --- a/pewpew.asm +++ b/pewpew.asm @@ -618,7 +618,10 @@ CheckCollisionsWithPlayer: adc #16 ; Can't overflow. sta $00 ; Store the center. lda playerY - adc #16 ; Store the center. + ; Store the center. Our ship is actually 31 pixels tall, so offsetting by + ; 15 feels more "fair": a shot that hits the invisible bottom edge of the + ; ship won't count as a hit. + adc #15 sta $01 ldx #0