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.
- 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.
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.
- Clone the repository:
git clone https://github.com/ArielParra/JSnake.git
- Open
index.htmlin your favorite browser. - And press a key to start the game!
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.
