Jump to content

Snake: Difference between revisions

Line 1,685:
dim sy[maxsize]
 
define fn (bounds) as sx[0] <= 10 or sx[0] >= gfxx or sy[0] <= 0 or sy[0] >= gfxy
define fn (collision) as sx[0] + 15 >= rx and sx[0] <= rx + 15 and sy[0] + 15 >= ry and sy[0] <= ry + 15
define fn (eatself) as sx[0] = sx[i] and sy[0] = sy[i]
305

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.