aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-08 15:55:11 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-08 15:55:11 -0400
commit829d394ded54bcc091b36ce3f8a6c2065a96d1e9 (patch)
treea577352faa31730cf71bd376c47b3aa8f0ccc785
parent010b3e9b73793b5eec2672e095062da29da907fd (diff)
downloadnes-snake-829d394ded54bcc091b36ce3f8a6c2065a96d1e9.tar.gz
nes-snake-829d394ded54bcc091b36ce3f8a6c2065a96d1e9.zip
reset the snake position on game start
-rw-r--r--main.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.s b/main.s
index 65902fe..f43c894 100644
--- a/main.s
+++ b/main.s
@@ -307,6 +307,10 @@ start_game: ; {{{
LDA #$02
STA game_state
+ LDA #$80
+ STA head_x
+ STA head_y
+
- BIT $2002
BPL -