diff --git a/snake/snake.a b/snake/snake.a index 5310f10..54fc0d8 100644 --- a/snake/snake.a +++ b/snake/snake.a @@ -32,6 +32,7 @@ 3030 GOSUB 1000 3040 IF X(L) = FX AND Y(L) = FY THEN GOSUB 4000 3050 FOR I = 1 TO L +3059 REM 3060 - Adds collision detection for walls (errors when snake hits walls) 3060 HTAB X(I) : VTAB Y(I) 3070 PRINT "S" 3080 NEXT I @@ -49,4 +50,4 @@ 5010 X(I) = X(I + 1) 5020 Y(I) = Y(I + 1) 5030 NEXT I -5040 RETURN \ No newline at end of file +5040 RETURN