Hypersnake - Snake Number Block Game

Seele01-Flash
By
Hypersnake combines classic snake gameplay with strategic number puzzles. Guide your growing snake through colored number blocks, collect balls to increase your length, and find the optimal path to achieve maximum distance.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Hypersnake - Math & Reflex Challenge**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Modern Arcade Minimalism. Use a clean, 2D-style aesthetic rendered in a 3D environment (orthographic camera view looking top-down). The background should be a subtle, deep gradient (e.g., dark slate blue to indigo) that doesn't distract from gameplay. * **The Snake:** Instead of a continuous mesh, the snake consists of a chain of individual, glowing white spheres. The "head" sphere should be slightly larger or brighter. The snake must move fluidly with a trailing effect, like a string of pearls. * **The Blocks:** Create square blocks with rounded corners. Each block must display a large, crisp number (1-50) on its face. The blocks should have vibrant, distinct colors (cyan, magenta, lime green, orange) based on the difficulty of the number (e.g., higher numbers = hotter colors like red/orange). Give them a subtle shadow to separate them from the background. * **Collectibles:** Small, glowing yellow orbs scattered on the path containing numbers (e.g., +1, +5). Collecting these adds spheres to the snake's body. * **Particles:** When the snake hits a block, generate small particle explosions (debris) matching the block's color. When collecting food, emit a soft golden sparkle. * **Optimization:** Use InstancedMesh for the blocks and snake segments to ensure 60fps performance on mobile devices. Keep polygon counts low (Low-poly spheres and rounded cubes). ### 2. Audio Requirements * **BGM (Background Music):** A driving, fast-paced electronic/synthwave track. It should be rhythmic to match the constant forward motion, creating a sense of "flow" and urgency. * **SFX - Impact:** A rapid-fire "thud" or "click" sound (like a high-speed counter) when the snake hits a block and loses segments. This sound should pitch up slightly as the block health decreases. * **SFX - Collection:** A high-pitched, satisfying "ding" or "pop" when collecting new balls to lengthen the snake. * **SFX - Game Over:** A shattering sound followed by a low-frequency down-lifter when the snake runs out of segments. ### 3. Gameplay Loop * **Core Mechanic:** The snake moves forward automatically at a constant speed. The player steers left and right. * **Obstacles (Math Logic):** Rows of numbered blocks block the path. To pass through a block, the snake must collide with it. The block's number represents "damage." * *Example:* If a block says "10", the snake loses 10 body segments to break it. * *Win/Survival Condition:* The player must quickly calculate which block has the lowest number (path of least resistance) to minimize length loss. * **Growth:** Between block walls, the player collects scattered balls with numbers. Collecting a "+5" ball adds 5 segments to the snake. * **Game Over:** If the snake's length reaches zero while trying to break a block, the game ends immediately. * **Progression:** The speed increases slightly over time, and block numbers get higher, requiring faster reflexes. ### 4. Mobile Controls & Interaction * **Touch Controls:** Implement a **1:1 horizontal drag (swerve)** mechanic. * Touching anywhere on the screen and dragging left/right moves the snake instantly in that direction. * The movement should be highly responsive (no lag) to allow for last-second dodging. * **Orientation:** **Portrait Mode** (Vertical) only. This is essential for one-handed play. * **Haptic Feedback:** Trigger a light vibration (using `navigator.vibrate` if available) every time the snake hits a block and loses a segment. This provides crucial physical feedback for the "damage" being taken. * **UI Layout:** * **Top Left:** Current Score (Distance traveled). * **Top Right:** Best Score. * **Above Snake Head:** A floating number indicating current snake length (vital for the player to compare with block numbers). * **Game Over Screen:** A large "Restart" button (minimum 60px height) centered for easy thumb tapping. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Hypersnake

Hypersnake is an innovative skill game that reimagines the classic snake concept with a mathematical twist. In this colorful arcade experience, you control a white snake made of connected balls as it navigates through a field of numbered blocks. Your mission is to collect additional balls to grow your snake while strategically choosing the path that offers the least resistance, allowing you to travel the maximum distance possible.

The game features vibrant colored blocks displaying different numbers - from small values like 6 and 15 to larger challenges like 45 and 88. Each decision matters as you calculate the best route forward, making Hypersnake both an entertaining arcade game and a brain-training math puzzle.

Core Features

Strategic Number Navigation

Unlike traditional snake games focused purely on avoiding obstacles, Hypersnake requires mathematical thinking. Each numbered block represents a different challenge level, and choosing the right path through these obstacles determines your success. The colorful interface makes it easy to quickly identify different number values during fast-paced gameplay.

Dynamic Snake Growth System

Collect white balls scattered throughout the playing field to increase your snake's length. The longer your snake becomes, the more challenging navigation becomes, creating an escalating difficulty curve that keeps players engaged. Strategic growth management becomes crucial for achieving high scores.

Mobile-Optimized Controls

Designed specifically for mobile devices, Hypersnake offers smooth touch controls that make navigating your snake intuitive and responsive. The game adapts perfectly to different screen sizes, ensuring an optimal experience whether you're playing on a phone or tablet.

Endless Challenge Mode

With no predetermined endpoint, Hypersnake offers unlimited replayability. Each attempt presents a unique arrangement of numbered obstacles, encouraging players to continuously improve their strategies and beat their personal best distances.

Game Mechanics

The core gameplay revolves around decision-making and spatial awareness. As your snake moves forward automatically, you must quickly assess the numbered blocks ahead and choose the path offering the best combination of ball collection opportunities and minimal obstacle interference. The game rewards both quick reflexes and strategic thinking.

Operation Guide

Mobile Controls: - Touch and Drag : Swipe left or right to steer your snake's direction - Tap Navigation : Quick taps for precise directional changes - Automatic Movement : Your snake moves forward continuously, focus on steering

Strategy Tips: - Prioritize collecting balls early in the game when navigation is easier - Look for patterns in block arrangements to plan your route ahead - Balance between ball collection and taking the safest path forward - Use your snake's momentum to glide past challenging number sequences

Why Play Hypersnake

Hypersnake offers a perfect blend of nostalgia and innovation, taking the beloved snake game formula and enhancing it with modern puzzle elements. The game is completely free with no hidden costs or premium features, making it accessible to everyone.

The mathematical component adds educational value, subtly improving number recognition and quick calculation skills while you play. This makes Hypersnake ideal for players of all ages who enjoy both entertainment and mental stimulation.

With its mobile-first design, you can enjoy quick gaming sessions anywhere - perfect for commutes, waiting periods, or relaxation breaks. The endless nature of the gameplay ensures you'll always have a new challenge waiting, with each session offering the potential to surpass your previous achievements.

Frequently Asked Questions (FAQ)