Skip to content

just-kato/snakegame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Retro Snake Game 🎮

Welcome to the Retro Snake Game! This project brings back the classic fun of the snake game with a nostalgic retro twist. 🕹️ Relive the joy of 8-bit style gaming with this JavaScript-based snake game, styled to feel like you're playing on an old-school arcade machine!

Demo Snake Game

📜 Features

  • 🎮 Classic Snake Gameplay: Guide the snake, collect food, and avoid hitting walls or your own body!
  • 🌈 Retro Pixel Design: The game features pixelated fonts, vibrant neon colors, and a grid-based board that harks back to the golden age of gaming.
  • 📈 High Score Tracking: Your high score is saved locally, so you can keep trying to beat your best record!
  • 💻 Responsive Design: Works smoothly on both desktop and mobile devices. Tap the on-screen controls on smaller screens!

🎮 How to Play

  • Start the game by pressing any arrow key: ⬆️⬇️⬅️➡️.
  • Control the snake using the arrow keys on your keyboard:
    • ⬆️ or W - Move Up
    • ⬇️ or S - Move Down
    • ⬅️ or A - Move Left
    • ➡️ or D - Move Right
  • Eat the food 🍎 to grow longer and score points.
  • Avoid crashing into the walls or yourself, or it’s game over! 💥

🚀 Installation

To get started with the Retro Snake Game on your local machine:

  1. Clone the repository:

    git clone https://github.com/your-username/retro-snake-game.git
  2. Navigate to the project directory:

    cd retro-snake-game
  3. Open the game in your favorite browser:

    • Double-click the index.html file or run a local server using:
      npx serve
    • Then, go to http://localhost:5000 in your browser!

🛠️ Technologies Used

  • HTML5: Structure of the game.
  • CSS3: Retro-inspired styling and grid layout for the snake board.
  • JavaScript (ES6): Game logic for controlling the snake, tracking scores, and handling game states.

📊 High Score

Your high score is saved locally! Every time you play, your best score is stored so you can keep coming back to challenge yourself. 🏆

🎨 Game Design

The game design is inspired by retro aesthetics, using pixelated fonts and vibrant colors reminiscent of arcade games from the 80s. Enjoy the nostalgic feel! 💾

👾 Screenshots

Gameplay Screenshot

🐛 Bugs or Issues?

If you find any bugs or issues, please feel free to open an issue.

🙌 Contributions

Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


Hope this works for your README!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors