Skip to content

up9t/game-snake

Repository files navigation

Snake Game Javascript

I try to create a snake game with typescript

image

Try locally

Install node dependencies

pnpm run install

Run

pnpm run dev --host

now go to http://localhost:5173

Try locally with docker

Build the image

docker build --tag=game-snake .

Run the server

docker run --rm -p 8000:80 game-snake

now go to http://localhost:8000

Todo

  • show score and highscore
  • add restart button instead of refresh the whole page
  • add menu to adjust size, color and speed for snake
  • add menu to adjust size and color for food
  • add menu to adjust canvas size and color
  • customization game over if the snake is eating itself

About

The legendary snake game, where you play as a snake, eat the food and get longer. Don't ever consider your own tail as a food!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors