Classic Snake

Seele01-Flash
By
Classic Snake is a modern twist on the legendary arcade game where you control a crystalline robotic snake made of pure light, consuming electro apples in a futuristic grid arena.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Neon Crystalline Snake**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Cyberpunk Tron-like" aesthetic. A dark, futuristic grid world. * **The Snake**: * Constructed of simple, low-poly **Cubes** or **Voxels**. * Material: Emissive Cyan/Teal (`#00FFFF`) to simulate "pure light" or "lasers". * **Effect**: Apply a strong **Bloom Filter** (Post-processing) so the snake appears to glow against the dark background. * The "Head" segment should have a slight visual distinction (e.g., brighter or slightly larger) to indicate direction. * **The "Electro Apple" (Food)**: * Model: A rotating **Icosahedron** or sphere. * Material: Emissive White or Bright Yellow (`#FFFFFF` or `#FFFF00`) with a pulsing animation (scale up/down slightly). * **The Arena**: * A dark, infinite-looking floor (Dark Purple/Black `#110011`). * A visible **Grid Helper** on the floor to denote the movement lanes. * Camera: **Orthographic Camera** angled top-down (90 degrees) or slightly tilted (e.g., 75 degrees) to maintain gameplay precision while showing off 3D depth. * **Performance**: Use `InstancedMesh` for the snake body segments if possible to reduce draw calls, or simple BoxGeometries with shared materials. ### 2. Audio Requirements * **BGM**: A looping **Synthwave / Retrowave** track. Bass-heavy, driving electronic beat, futuristic atmosphere. * **Sound Effects (SFX)**: * **Eat**: A satisfying digital "Chime" or "Power-up" synthesized sound (High pitch). * **Turn**: A very subtle, low-volume "Click" or "Whoosh". * **Death**: A "Digital Glitch" or "Glass Shattering" sound (reflecting the crystalline nature). * **UI Click**: Standard retro beep. ### 3. Gameplay Loop * **Core Mechanic**: Standard Snake logic. The snake moves automatically in the current direction on a discreet grid. * **Grid Wrapping (Teleport)**: **Crucial Feature**. There are NO walls. If the snake exits the grid on the Right, it instantly reappears on the Left (and Top/Bottom vice versa). * **Growth**: Consuming an "Electro Apple" increases the snake's length by 1 segment and increases the score. * **Lose Condition**: The only way to die is **Self-Collision** (crashing the head into its own body). * **Difficulty**: Speed should slightly increase every 5 apples eaten to satisfy the "Hard" tag. ### 4. Mobile Controls & Interaction * **Primary Control**: **Swipe Gestures**. * Swipe Up/Down/Left/Right anywhere on the screen to change direction. * Implement a "buffer" for inputs: If a player swipes Right then Up quickly, the game registers both turns in sequence at the next available grid intersections to prevent accidental death. * **Screen Orientation**: Portrait Mode preferred (for one-handed play) but responsive logic to center the grid if Landscape. * **UI Layout**: * **Score HUD**: Large, neon font at the top center. * **Start/Restart Overlay**: A semi-transparent dark overlay with a large, pulsing "TAP TO START" or "RESTART" button (minimum 44x44px touch area). * **Haptic Feedback**: Trigger `navigator.vibrate(50)` when eating an apple and a longer vibration `navigator.vibrate(200)` on death. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Classic Snake brings the timeless arcade experience into the future with a stunning visual makeover. You control a crystalline being made of pure light - a robotic snake that exists in a futuristic grid arena. This isn't just any ordinary snake game; it's an electrifying journey where your laser snake must consume electro apples while navigating through a dangerous digital world.

With a solid 3.2/5 rating from players, this HTML5 game successfully combines nostalgic gameplay with modern aesthetics, creating an engaging experience that appeals to both veteran players and newcomers to the snake genre.

Core Features

Futuristic Snake Experience

Unlike traditional snake games, Classic Snake features a crystalline robotic snake made of lasers that lives in a digital grid environment. The visual design transforms the classic concept into a sci-fi adventure where you're not just a snake, but a being of pure light navigating through cyberspace.

Teleportation Mechanics

One of the game's most exciting features is the wall teleportation ability . When your snake hits a wall, it doesn't die - instead, it teleports to the opposite side of the arena. This unique mechanic adds a strategic layer to the gameplay, allowing for creative movement patterns and escape routes.

Cross-Platform Compatibility

Built with HTML5 technology, Classic Snake works seamlessly across all devices: - Desktop computers with keyboard controls - Mobile phones and tablets with touch controls - Any modern web browser without downloads - Instant loading with no installation required

Progressive Difficulty

Tagged as a "Hard" game, Classic Snake offers increasing challenge as your snake grows longer. The longer your laser snake becomes, the more dangerous the game gets, requiring precise timing and strategic thinking to avoid self-collision.

Game Mechanics

Electro Apple Collection

Your primary objective is to consume electro apples that randomly appear throughout the grid. Each apple consumed makes your snake grow longer, increasing both your score and the game's difficulty level.

Growth and Danger Balance

The core challenge lies in the risk-reward system: while eating apples increases your score, it also makes your snake longer and harder to control. One wrong move resulting in your head hitting your body means instant game over.

High Score Competition

Featuring a high score system , Classic Snake encourages repeated play as you strive to beat your personal best and compete with other players globally.

Controls and Gameplay

Simple Yet Precise Controls

  • WASD Keys : Move your snake up, left, down, and right
  • Arrow Keys : Alternative movement controls for different preferences
  • Smooth Movement : Responsive controls that allow for precise navigation
  • Touch Support : Mobile-friendly touch controls for smartphone and tablet users

Strategic Movement

Mastering the teleportation mechanic is key to achieving high scores. Advanced players can use wall teleportation strategically to: - Escape from tight situations - Create more efficient paths to apples - Avoid collisions with their own growing body - Develop complex movement patterns

Why Play Classic Snake

Timeless Appeal with Modern Twist

This game successfully bridges the gap between retro gaming nostalgia and contemporary visual design. The futuristic theme breathes new life into the classic snake formula while maintaining the addictive gameplay that made the original so popular.

Perfect for Quick Gaming Sessions

Whether you have 5 minutes or an hour, Classic Snake provides instant entertainment. The game's pick-up-and-play nature makes it ideal for: - Break time gaming at work or school - Commute entertainment on mobile devices - Casual gaming sessions at home - Skill improvement through repeated play

Free and Accessible

As a completely free HTML5 game, there are no barriers to entry. No downloads, no installations, no payment required - just pure gaming fun accessible from any device with a web browser.

Skill Development

Beyond entertainment, Classic Snake helps develop: - Hand-eye coordination - Strategic thinking - Reaction time - Spatial awareness - Patience and focus

Frequently Asked Questions (FAQ)