From c892af763c8794ab0b3b8bccc2b5d409566b3c26 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 9 Oct 2014 13:19:33 -0400 Subject: start making the snake use a ring buffer --- main.s | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3-54-g00ecf