Snake: Difference between revisions

15 bytes removed ,  3 months ago
m
m (→‎{{header|Wren}}: Minor tidy)
 
Line 2,295:
[https://easylang.dev/apps/snake.html Run it]
{{Trans|Craft Basic}}
<syntaxhighlight lang="easylang">
subr fruit
rx = (randomrandint 20 - 1) * 5 + 2.5
ry = (randomrandint 20 - 1) * 5 + 2.5
.
subr start
Line 2,305:
sx[] = [ 52.5 0 0 0 0 ]
sy[] = [ 52.5 0 0 0 0 ]
dir = randomrandint 4
timer 0
.
Line 2,318:
move 6 30
text "Space or click to to start"
#
on key
if game = 0 and keybkey = " "
Line 2,365:
move rx ry
circle 1.5
#
sx = sx[1] ; sy = sy[1]
if dir = 1
1,969

edits