Skip to content

CodeMaverick2/SnakeMania

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Ultimate Snake Game

Ultimate Snake Game is a modern take on the classic Snake game, developed using HTML5 Canvas, CSS, and JavaScript. This game incorporates various enhancements such as power-ups, levels, achievements, and a responsive UI with multiple themes, offering a rich user experience.

Features

  • Classic Snake Gameplay: Navigate the snake using the keyboard arrows, eat food, and grow longer while avoiding collisions with the walls and yourself.
  • Power-ups: Special power-ups appear randomly on the game area to enhance your gameplay.
  • Levels: Progress through multiple levels by scoring points. As the level increases, so does the game's speed.
  • Achievements: Track your milestones and unlock achievements as you play.
  • Difficulty Settings: Choose from four difficulty levels - Easy, Medium, Hard, and Extreme.
  • Theme Selection: Play with different themes such as Classic, Neon, and Retro.
  • Sound Toggle: Toggle game sounds on or off according to your preference.
  • Responsive Design: Fully responsive UI that works on mobile, tablet, and desktop devices.

Demo

Try the live version of Ultimate Snake Game -> https://snake-mania-orpin.vercel.app/

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/ultimate-snake-game.git
  2. Navigate to the project directory:

    cd ultimate-snake-game
  3. Open the index.html file in your browser:

    open index.html

    or simply drag and drop the index.html file into your browser window.

How to Play

  1. Open the game and press the Start Game button.
  2. Use the arrow keys to control the snake.
  3. The goal is to eat the food that appears randomly on the game area, which makes your snake grow longer.
  4. Avoid colliding with the walls or your own body, or the game will end.
  5. As you score more, the game difficulty increases, and you advance to higher levels.
  6. Use power-ups that appear randomly to gain an advantage.

Controls

  • Arrow Keys: Move the snake (Up, Down, Left, Right)
  • Start Game: Begin the game
  • Pause: Pause the game
  • Restart: Restart the game from scratch
  • Difficulty Selector: Choose the game's difficulty level
  • Sound Toggle: Enable/Disable game sound effects
  • Theme Selector: Switch between Classic, Neon, and Retro themes

Customizations

You can easily customize various aspects of the game:

  1. Game Speed: Adjust the speed of the snake by modifying the gameSpeed variable in the JavaScript file.
  2. Themes: Add or modify themes in the CSS file. Look for the themeSelect dropdown and add new theme styles.
  3. Achievements and Power-ups: Add new power-ups or achievements by modifying the JavaScript logic.

Future Enhancements

  • Multiplayer Mode: Implement a two-player mode for shared screens.
  • More Power-ups: Add more interesting power-ups, such as invincibility or size reduction.
  • Local Leaderboard: Store top scores locally and display them for competitive gameplay.
  • Custom Snake Skins: Allow players to choose different snake skins for a personalized experience.