Skip to content

MarcusD98/snake_alpha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Snake Alpha - Next-Gen Snake Experience

A modern, feature-rich implementation of the classic Snake game with two distinct game modes, startup-style aesthetics, and enhanced gameplay mechanics.

🎮 Game Modes

Infinity Mode

  • Classic survival gameplay - Eat, grow, and survive as long as possible
  • Progressive difficulty - Speed increases as you score more points
  • Dynamic leveling - Level up every 100 points
  • High score tracking - Compete for the highest score
  • Endless gameplay - No level limits, just pure survival

Story Mode

  • 20 unique levels - Each with distinct challenges and obstacles
  • Level progression - Complete levels to unlock the next
  • Food targets - Eat 30 foods per level to progress
  • Obstacle variety - Different obstacle patterns for each level:
    • Level 1: Tutorial (no obstacles)
    • Level 2: Simple walls
    • Level 3: Cross pattern
    • Level 4: Maze-like random obstacles
    • Level 5: Spiral pattern
    • Levels 6-20: Increasingly complex random obstacles
  • Progress saving - Your story progress is automatically saved

🚀 Features

Core Gameplay

  • Responsive controls - Arrow keys or WASD
  • Wall collision - Game over when hitting walls
  • Self collision - Game over when hitting yourself
  • Obstacle collision - Game over when hitting obstacles (Story mode)
  • Food collection - Regular food (10 points) and special food (50 points)
  • Snake growth - Snake grows longer with each food eaten

Visual Effects

  • Particle effects - Explosive particles when eating food
  • Glowing effects - Snake head and food have startup-style glows
  • Combo system - Visual feedback for consecutive food eating
  • Special effects - Unique animations for special food
  • Modern UI - Clean, minimalist dashboard design

Game Settings

  • Game Speed: Casual, Standard, Pro, Elite
  • Grid Size: Compact (20x15), Standard (40x30), Expanded (60x45)
  • Wall Behavior: Game Over or Wrap Around
  • Premium Food: Enable/disable special food
  • Visual Effects: Enable/disable particles

Startup-Style Features

  • Live dashboard - Real-time stats display
  • Achievement system - Unlock achievements for milestones
  • Combo tracking - Track consecutive food eating
  • Time tracking - Monitor survival time
  • Progress persistence - Settings and progress saved locally

🎯 Controls

  • Movement: Arrow keys or WASD
  • Pause: Spacebar
  • Menu: Back to main menu button
  • Settings: Configure game options
  • Restart: Reset current game

📊 Statistics Tracked

  • Score: Current game score
  • High Score: Best score achieved
  • Level: Current level (Infinity) or story level (Story)
  • Snake Length: Current snake size
  • Food Eaten: Total food consumed
  • Time Alive: Survival duration

🏆 Achievements

  • Score Master: Reach 1000+ points
  • Snake King: Grow to 50+ segments
  • Combo Master: Achieve 10+ combo
  • Survivor: Survive 5+ minutes

🎨 Design Philosophy

Built with modern startup aesthetics:

  • Dark theme with tech-inspired colors
  • Minimalist typography using Inter font
  • Clean grid layouts with consistent spacing
  • Subtle animations and hover effects
  • Responsive design for all screen sizes
  • Accessibility focused with semantic HTML

🛠️ Technical Features

  • Canvas-based rendering for smooth graphics
  • Local storage for progress persistence
  • Responsive design with CSS Grid and Flexbox
  • Modern JavaScript with ES6+ features
  • Modular architecture with clean separation of concerns
  • Performance optimized with efficient rendering loops

🚀 Getting Started

  1. Open index.html in a modern web browser
  2. Choose your game mode (Infinity or Story)
  3. Configure settings if desired
  4. Start playing with arrow keys or WASD
  5. Try to achieve the highest score or complete all story levels!

📱 Browser Compatibility

  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+

🎮 Game Tips

Infinity Mode

  • Start slow and build momentum
  • Use the entire play area
  • Watch for special food opportunities
  • Build combos for higher scores

Story Mode

  • Study the obstacle patterns
  • Plan your route carefully
  • Use the level progress bar to track completion
  • Don't rush - precision over speed

🔧 Customization

The game is highly customizable through the settings menu:

  • Adjust game speed to match your skill level
  • Change grid size for different challenge levels
  • Toggle visual effects for performance
  • Configure wall behavior for different play styles

Enjoy the next generation of Snake gaming! 🐍✨

About

Simple modern snake game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors