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