aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-08 16:15:21 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-08 16:15:21 -0400
commit542c0fd325a289c1bca43feaeadf2b2d8ceea145 (patch)
treed98f874e6eb308d6d9d03d97f02ace367fae3a96
parent829d394ded54bcc091b36ce3f8a6c2065a96d1e9 (diff)
downloadnes-snake-542c0fd325a289c1bca43feaeadf2b2d8ceea145.tar.gz
nes-snake-542c0fd325a289c1bca43feaeadf2b2d8ceea145.zip
adjust the y offset for the snake sprite
apparently the background sprites don't align on 8 pixel boundaries in the y axis? not sure why
-rw-r--r--main.s5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.s b/main.s
index f43c894..2ef56bc 100644
--- a/main.s
+++ b/main.s
@@ -268,9 +268,9 @@ check_collisions
BCS collision
LDA head_y
- CMP #$20
+ CMP #$1D
BCC collision
- CMP #$E0
+ CMP #$DD
BCS collision
JMP end_game_loop
@@ -309,6 +309,7 @@ start_game: ; {{{
LDA #$80
STA head_x
+ LDA #$7D
STA head_y
- BIT $2002