← BACK

Legend-Snake

A mythical take on the classic Snake game, built with HTML5 Canvas and JavaScript.

JavaScript ⭐ 0

Legend Snake 🐍

A mythical take on the classic Snake game, built with HTML5 Canvas and JavaScript.

Features

  • 🎮 Smooth, responsive controls
  • 🌀 Portal-style boundary wrapping
  • ✨ Particle effects and visual feedback
  • 🎵 Sound effects with mute option
  • 📱 Mobile touch support
  • 💎 Score tracking and high score system
  • ⚡ Progressive difficulty scaling

How to Play

  1. Click "Play Game" to start
  2. Use arrow keys to control the snake:
    • ⬆️ Up Arrow
    • ⬇️ Down Arrow
    • ⬅️ Left Arrow
    • ➡️ Right Arrow
  3. Collect golden treasures to grow and score points
  4. Avoid biting your own tail
  5. Pass through walls to emerge on the opposite side

Controls

  • Keyboard: Arrow keys for movement
  • Mobile: Swipe in any direction
  • Sound: Click the sound icon to mute/unmute
  • Restart: Click "Play Again" after game over

Technologies Used

  • HTML5 Canvas
  • CSS3 with animations
  • Vanilla JavaScript
  • Responsive Design

Setup

  1. Clone the repository
  2. Open index.html in a modern web browser
  3. No additional dependencies required

Notes

  • Requires a modern browser with HTML5 Canvas support
  • Sound files (collect.mp3 and gameover.mp3) must be present in the project directory