'Use your mouse to guide the snake around the screen to eat the yellow food pellets.
'Watch out for the red bombs or your health will go down.
'Also watch out for the enemies that move toward you. They will also make your health decrease.
'The game speeds up a little more when the screen changes.
'Your health increases by 50 points every 100 food pellets.
'Made by Sierraken (Ken G.) on May 9, 2020.
_TITLE "Snake Game by SierraKen" lives = 100
et = .1
'Setup screen.
'Bombs
'Food
'Enemies
'Main Game Loop
mouseWheel = 0
t = t + 1
x(t) = mouseX
y(t) = mouseY
'At a certain time, replace bombs, food, enemies, reset variable T, and speed up enemies.
t = 1
et = et + .005
'Draw the snake.
'Check to see if you hit a bomb,
lives = lives - 1
_TITLE "Score: " + score$
+ " Health: " + lives$
'Check to see if you eat food.
sc = sc + 10
IF sc
/ 1000 = INT(sc
/ 1000) THEN lives
= lives
+ 50 _TITLE "Score: " + score$
+ " Health: " + lives$
'Enemies
again:
IF x2
(rrr
) > x
(t
) THEN x2
(rrr
) = x2
(rrr
) - et
IF x2
(rrr
) < x
(t
) THEN x2
(rrr
) = x2
(rrr
) + et
IF y2
(rrr
) > y
(t
) THEN y2
(rrr
) = y2
(rrr
) - et
IF y2
(rrr
) < y
(t
) THEN y2
(rrr
) = y2
(rrr
) + et
'Check to see if you hit an enemy,
lives = lives - .01
_TITLE "Score: " + score$
+ " Health: " + lives$