aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.s b/main.s
index cce0ae4..55948b4 100644
--- a/main.s
+++ b/main.s
@@ -275,6 +275,17 @@ apply_direction:
TXA
CLC
ADC (head), y ; head.x offset by 1 is head.y
+ INC head
+ INC head
+ STA (head), y
+ DEC head
+ DEC head
+ TYA
+ EOR #$01
+ TAY
+ LDA (head), y
+ INC head
+ INC head
STA (head), y
check_collisions