Skip to content

codevivi/JS-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

38 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿชง Vanilla JavaScript, HTML5 canvas Snake Game

๐Ÿ“‹ About

๐ŸŒ Site published at: https://codevivi.github.io/JS-snake/index.html

JS practice project, snake game.

๐ŸŽฏ Goals:

My goal was to implement some functionality similar to nostalgic Nokia 'Snake' game.

โœ… Present functionality

Attention: page will reload when resizing window, so better resize before starting game

  • Move, eat, grow (after finished digesting), die on collision.
  • Track score, record, length, speed.
  • Food: mice and rabbits. Rabbits show up and disappear randomly.
  • Fenced and free world modes.
  • Settings (sound, grid visibility, fence, saving).
  • Save to local storage.
  • Control with keyboard (arrows or VIM (h,j,k,l) ) and touch controls for mobile.

alt screenshot

About

Vanilla JavaScript snake game. JS practice project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published