Snake - Classic Arcade Game

Seele01-Flash
By
Snake is the ultimate version of the beloved classic arcade game that defined mobile gaming. Enhanced with modern features like adjustable speeds, various bonuses, and multiple snake types while maintaining the nostalgic pixel art style.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Retro 3D Voxel Snake**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Nokia 3310 meets Minecraft." Use a Voxel/Cube-based aesthetic to translate the classic pixel art look into 3D. * **Color Palette**: Strictly adhere to a Retro Game Boy palette (4 shades of green: #0f380f, #306230, #8bac0f, #9bbc0f) to evoke nostalgia. The background should be the darkest green, and the snake/food should be the lighter greens. * **Models**: * **Snake**: A series of `BoxGeometry` cubes. The head should be slightly larger or have simple extra geometry (eyes) to indicate direction. * **Food**: A rotating cube or sphere that pulses (scales up and down) to attract attention. * **Grid**: A subtle grid texture on the floor plane to help players judge alignment and distance. * **Performance**: Use `InstancedMesh` for the snake's body segments and the floor grid to minimize draw calls on mobile devices. ### 2. Audio Requirements * **BGM**: An upbeat, looping 8-bit Chiptune track. It should speed up slightly as the snake grows longer to increase tension. * **SFX**: * **Eat**: A satisfying high-pitched "blip" or 8-bit "crunch" sound. * **Turn**: A very quiet, subtle click when the input is registered. * **Game Over**: A descending "crash" noise followed by a short melancholy tune. * **Bonus Spawn**: A magical chime sound when a special bonus item appears. ### 3. Gameplay Loop * **Core Mechanic**: Standard Snake logic adapted for 3D. The snake moves automatically on a grid. * **Progression**: * Eating standard food increases length by 1 block and score by 10. * **Adjustable Speeds/Difficulty**: As the score increases, the movement tick rate increases (game gets faster). * **Bonuses**: Every 5 food items eaten, spawn a special "Golden Egg" that lasts only 5 seconds. Eating it gives 50 points but doesn't grow the tail. * **Camera**: Use an **OrthographicCamera** positioned at an isometric angle (top-down diagonal) to ensure the grid looks uniform and touch inputs translate intuitively. * **Win/Loss**: Game Over occurs if the head collides with the border walls or its own tail. ### 4. Mobile Controls & Interaction * **Start Screen**: Implement a UI overlay allowing the user to select input mode: "Touch Swipe" or "On-Screen Buttons" (as per the game description). * **Control Schemes**: * **Swipe Mode**: Detect swipes (TouchStart/TouchEnd) anywhere on the canvas to change direction (Up/Down/Left/Right). * **Button Mode**: Render four large, semi-transparent HTML buttons (D-Pad style) at the bottom of the screen. * **Haptic Feedback**: Trigger `navigator.vibrate(10)` when collecting food and `navigator.vibrate(200)` on collision/game over. * **Orientation**: Design the viewport to be responsive. The game board should fit within the width of a Portrait phone screen, or centered in Landscape. * **UI Layout**: Score display fixed at the top center. "Restart" button prominent in the center upon Game Over. Ensure all touch targets are at least 48x48px. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Snake represents the pinnacle of classic arcade gaming, bringing you an enhanced version of the timeless game that captivated millions on early mobile phones. This isn't just a simple remake - it's a carefully crafted tribute to the original with modern improvements that make it even more engaging and addictive.

The game features beautiful pixel art graphics that perfectly capture the retro aesthetic of the original Snake, while adding contemporary polish and smooth animations. Whether you're a longtime fan of the classic or discovering Snake for the first time, this version offers the perfect blend of nostalgia and innovation.

Core Features

Enhanced Classic Gameplay

Experience the pure essence of Snake with improved mechanics and responsive controls. The core objective remains beautifully simple: guide your snake to eat food, grow longer, and avoid colliding with walls or your own body. However, this version elevates the experience with:

  • Adjustable Speed Settings : Customize your gameplay experience from leisurely exploration to lightning-fast challenges
  • Multiple Snake Types : Choose from various snake designs, each with unique visual characteristics
  • Bonus System : Collect special power-ups and bonuses that add strategic depth to the classic formula
  • Leaderboard Integration : Compete with players worldwide and climb the global rankings

Modern Control Options

The game offers flexible control schemes to suit different play styles: - Touch Mode : Perfect for mobile devices with intuitive swipe controls - Button Mode : Classic arrow key navigation for precise movements - Responsive Design : Seamless gameplay across all devices and screen sizes

Visual and Audio Excellence

The pixel art style pays homage to retro gaming while delivering crisp, modern visuals. The green snake against the dark background creates the perfect contrast for extended play sessions without eye strain.

Gameplay Mechanics

Snake follows the time-tested formula that made it a global phenomenon. Your snake continuously moves forward, and you must navigate it to collect food items scattered across the playing field. Each piece of food consumed makes your snake grow longer, increasing both your score and the challenge level.

The strategy lies in planning your movements carefully - as your snake grows, you'll need to avoid creating situations where you trap yourself. The walls and your own body are equally dangerous, requiring constant spatial awareness and forward thinking.

Operation Guide

Getting Started

  1. Choose Your Control Method : Select between Touch Mode for mobile play or Button Mode for keyboard control
  2. Select Difficulty : Adjust the speed setting to match your skill level
  3. Begin Playing : Your snake will automatically start moving - guide it toward the first food item

Controls

  • Arrow Keys : Navigate your snake in four directions (up, down, left, right)
  • Touch/Swipe : On mobile devices, swipe in the direction you want the snake to move
  • Pause : Most versions include a pause function for breaks during gameplay

Survival Tips

  • Plan your route before making sharp turns
  • Use the edges strategically but never let your head touch them
  • As your snake grows longer, focus on creating safe pathways
  • Master the art of "threading the needle" through tight spaces
  • Watch for bonus items that can provide score multipliers or temporary advantages

Why Play This Snake Game

Timeless Appeal

Snake has endured for decades because it perfectly balances simplicity with challenge. Anyone can understand the rules in seconds, but mastering the game takes practice, patience, and skill. This accessibility makes it perfect for quick gaming sessions or extended play.

Brain Training Benefits

  • Spatial Awareness : Constantly tracking your snake's position improves spatial intelligence
  • Forward Planning : Success requires thinking several moves ahead
  • Reaction Time : As speeds increase, your reflexes will sharpen
  • Stress Relief : The meditative nature of the gameplay provides excellent relaxation

Perfect for All Occasions

Whether you have 30 seconds or 30 minutes, Snake adapts to your schedule. It's ideal for: - Quick breaks between tasks - Commuting entertainment - Competitive gaming sessions with friends - Nostalgic gaming experiences - Skill development and hand-eye coordination training

Free and Accessible

Enjoy unlimited gameplay without any cost. No downloads, no installations, no subscriptions - just pure gaming fun directly in your browser. The game runs smoothly on virtually any device with internet access, making it universally accessible.

Competitive Element

The integrated leaderboard system adds a competitive dimension that keeps players coming back. Track your personal best scores and see how you stack up against players worldwide. The pursuit of high scores provides endless motivation to improve your skills and develop new strategies.

Frequently Asked Questions (FAQ)