Skip to content

ArielParra/JSnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSnake

JSnake is the classic Snake game built with JavaScript + HTML + CSS using the Nord color palette. This lightweight game is an exciting way to pass the time, and it runs in any modern web browser on both PC and mobile devices.

demo

Features

  • Three Difficulty Levels: Choose from Easy, Normal, or Hard to match your preferred challenge level.
  • Score Tracking: Displays your current score and maintains your high score across sessions.
  • Controls: Use arrow keys on PC or on-screen controls on mobile to move the snake.

How It Works

JSnake uses JavaScript DOM manipulation to dynamically update the game interface, handle user input, and manage game elements, including:

  • Game Loop: Continuously updates the snake's position and checks for collisions.
  • Score and High Score Display: Updates the score in real time and saves the high score using local storage.

Getting Started

  1. Clone the repository:
    git clone https://github.com/ArielParra/JSnake.git
  2. Open index.html in your favorite browser.
  3. And press a key to start the game!

Credits

  • eat.mp3 - Sound effect by Mark DiAngelo, licensed under Attribution 3.0. Available at SoundBible.
  • lose.mp3 - Created by me (Ariel Parra) using the sound generator at sfxr.me. Licensed under CC BY 4.0, allowing reuse with attribution.

About

Snake game built with JavaScript + HTML + CSS

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors