Share your repls and programming experiences

← Back to all posts
[GAME] Snake game, but the food refuses to be eaten
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
countchrisdo
Pomzi
TalinSharma
BraggerSphere11
JeremyHeere
datboicatguy
SlavAkaan
SeamusDonahue
Whippingdot
iamakmml1
Comments
hotnewtop
WilliamCantrell

Swiggity swears, I'm coming for that square

JWZ6
Muffinlavania

@WilliamCantrell Hippity hoppity, your square is my property

DynamicSquid

Wow, nice game!

ernestoyaquello
OldWizard209

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

ernestoyaquello

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

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

Whippingdot

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

Whippingdot


heaven music

svensk007

hippety hoppity this apple's life is now my property

iocoder

@ernestoyaquello
first try:

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

countchrisdo

Super awesome snake game

ANDREWVOSS

Great game, the best I could get is 12 lol

BraggerSphere11

cool

Writerfrighter

This game is triggering and addicting at the same time XD

Muffinlavania

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

Bunnytoes

I got the fruit a bunch(get it)

NoahRoopull

This is so polished and well done, Nice!

ernestoyaquello

@NoahRoopull thanks!

PyCoder01

Wow! This is actually fun compared to original snake.

FlaminHotValdez

make the food as fast as you

JWZ6
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:

With this:

JWZ6

managed:

PenguinLunatic

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

JWZ6

@PenguinLunatic nice i got 3 in 1 min

PenguinLunatic

@JWZ6 nice :)

JWZ6