Skip to content
Sign upLog in
← Back to Community
[GAME] Snake game, but the food refuses to be eaten
Profile icon
ernestoyaquello

Another twist on this classic. In this one, the food runs away from the snake's head to make it harder to score points.

It is written in HTML + JS, and it adapts to different screen sizes, although it is designed to be played on a computer. It can be played with the buttons, with the arrow keys or with the WASD keys - if the keys don't work when you start playing, click on the canvas to make them work.

This is just a small experiment developed quickly, so please let me know if you encounter any errors!

Voters
Profile icon
dragonmaster73
Profile icon
countchrisdo
Profile icon
Pomzi
Profile icon
TalinSharma
Profile icon
BraggerSphere11
Profile icon
JeremyHeere
Profile icon
datboicatguy
Profile icon
SlavAkaan
Profile icon
SeamusDonahue
Profile icon
Whippingdot
Comments
hotnewtop
Profile icon
WilliamCantrell

Swiggity swears, I'm coming for that square

Profile icon
JWZ6
Profile icon
Muffinlavania

@WilliamCantrell
Hippity hoppity, your square is my property

Profile icon
DynamicSquid

Wow, nice game!

Profile icon
ernestoyaquello
Profile icon
OldWizard209

Wow, the styling is great and the food is annoying,
but overall the game is amazing.

Profile icon
ernestoyaquello

@OldWizard209
I am glad to hear you found the food annoying, that was the point haha. Thanks!

Profile icon
OldWizard209

It is just like an annoying younger brother, who takes advanatage of age, steals your stuff and never gives it back. This game is trying to put it in snake perspective.

@ernestoyaquello

BTW, this is so underrated. sigh

Profile icon
Whippingdot

wut! I am a younger brother and my brother never gets in trouble. I always get in trouble.

@OldWizard209

Profile icon
Whippingdot

image
heaven music

Profile icon
svensk007

hippety hoppity this apple's life is now my property

image

Profile icon
glitchish

@ernestoyaquello

first try:
image

wow! that was hard tho! good game! breathes heavily

Profile icon
countchrisdo

Super awesome snake game

Profile icon
ANDREWVOSS

Great game, the best I could get is 12 lol

Profile icon
BraggerSphere11

cool

Profile icon
Writerfrighter

This game is triggering and addicting at the same time XD

Profile icon
Muffinlavania

Other than the square downloading hacks, very cool style and its very smooth wow

Profile icon
Bunnytoes

I got the fruit a bunch(get it)

Profile icon
NoahRoopull

This is so polished and well done, Nice!

Profile icon
ernestoyaquello

@NoahRoopull
thanks!

Profile icon
PyCoder01

Wow! This is actually fun compared to original snake.

Profile icon
FlaminHotValdez

make the food as fast as you

Profile icon
JWZ6
Profile icon
ernestoyaquello

@FlaminHotValdez
But then it would be impossible to catch it! If you want to try it, go to the line 84 of the JS file (js/huntersnake.js) and replace this:

} else if ((moveNumber % 2) == 0 && calculateDistanceToSnakeHead(food.x, food.y) < 5) {

With this:

} else if (calculateDistanceToSnakeHead(food.x, food.y) < 5) {
Profile icon
JWZ6

managed:

Screenshot 2021-05-16 at 7.39.55 PM

Profile icon
PenguinLunatic

@JWZ6
I got 7 in 5-6min of chasing the square

Profile icon
JWZ6

@PenguinLunatic
nice i got 3 in 1 min

Profile icon
PenguinLunatic

@JWZ6
nice :)

Profile icon
JWZ6