Boa - Snake Puzzle Game

Seele01-Flash
By
Boa is an innovative twist on the classic snake game that combines arcade action with puzzle mechanics. Control a vocal snake that grows longer as it devours rabbits and mice, but beware of getting trapped by your own tail!

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Boa - The Vocal Snake Puzzle". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Modernized Retro-Arcade. Use a top-down, fixed camera view (Orthographic Camera preferred for grid precision). * **Environment:** * **Background:** Deep void black (`#000000`) to maintain the high contrast of the original. * **Walls:** Neon Blue Cubes (`#0000FF`) arranged in a maze-like grid pattern. Add a slight `emissive` property or a "glow" shader effect to make them pop against the black background. * **Characters:** * **The Boa (Player):** A chain of Green Spheres (`#00FF00`). The "Head" sphere should have distinct features (like two small white eyes or a darker green shade) to indicate direction. Movement is smooth but snaps to the grid. * **Prey (Collectibles):** Low-poly White Rabbits (or white cubes/tetrahedrons if assets are scarce) as the primary food. Later levels introduce Mice (Gray) and Mushrooms (Red/White). * **Mobile Optimization:** Use `BoxGeometry` and `SphereGeometry` with low segment counts. Merge wall geometries (`BufferGeometryUtils.mergeBufferGeometries`) to reduce draw calls. Use simple Phong or Lambert materials. ### 2. Audio Requirements * **BGM:** A quirky, rhythmic, 8-bit style looping track that sounds like early 2000s puzzle games (lighthearted but repetitive). * **SFX (Crucial for "Vocal" theme):** * **Eating:** A loud "Munch" or "Crunch" sound. * **Wall Bump:** A dull "Thud" (since walls don't kill). * **Tail Bite (Bonus):** A distinct "Chomp" + "Ding" combo sound indicating a reward. * **Self-Collision (Death):** A comedic voice clip shouting "Ouch!", "Hey!", or a cartoonish groan. * **Win/Level Clear:** A short fanfare. ### 3. Gameplay Loop * **Core Mechanic:** The snake moves automatically in the current direction. * **Collision Logic (Unique Twist):** * **Walls:** Hitting a wall does **NOT** kill the player. The snake simply stops moving until the player inputs a new valid direction (or slides along if applicable). This allows the player to use walls to align themselves. * **Self (Body):** Hitting any part of the body (except the tip) results in **Game Over** (loss of a life). * **Self (Tail Tip):** If the head collides with the *very last segment* of the tail, the snake "bites" it off. This grants a **High Score Bonus** and reduces the snake's length by one. * **Progression:** The goal is to eat all static food items (Rabbits/Mice) on the screen to advance to the next level. * **Growth:** Each food item eaten adds 1 segment to the tail and increases the score. * **Spawning:** Food items appear in fixed positions based on the level layout (not random), requiring puzzle-solving routing. ### 4. Mobile Controls & Interaction * **Control Scheme:** **Swipe Gestures** anywhere on the screen. * Swipe Up/Down/Left/Right to change the snake's direction. * Input buffering is required: If a player swipes before the snake reaches a grid intersection, the turn executes at the next possible moment. * **Orientation:** Portrait Mode (Vertical) to support one-handed play on mobile devices. * **UI/HUD:** * **Top Bar:** Current Score, High Score, and Level Number. Text should be large and legible. * **Game Over Screen:** A centralized overlay with a large "Restart" button (minimum touch target 48x48px). * **Feedback:** * **Haptic Feedback:** Trigger a short vibration (`navigator.vibrate(50)`) when eating food or biting the tail. Trigger a heavy vibration (`navigator.vibrate(200)`) on death. * **Visual Feedback:** A small particle explosion when food is eaten. Screen shake effect when the snake bumps into a wall. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Boa is a captivating puzzle-arcade hybrid that reimagines the classic snake game with unique mechanics and strategic depth. This engaging browser game challenges players to control a distinctively vocal snake as it navigates through increasingly complex levels, munching on various creatures while avoiding deadly collisions with its own growing tail.

With a rating of 3.3/5 stars, Boa offers a perfect blend of nostalgic gameplay and fresh puzzle elements that will keep players engaged for hours. The game's simple yet addictive mechanics make it accessible to all ages while providing enough challenge to satisfy experienced puzzle enthusiasts.

Core Features

Unique Snake Mechanics

Unlike traditional snake games, Boa introduces several innovative features that set it apart:

  • Vocal Feedback System : The snake provides audio cues when taking damage, adding personality and immersion to the gameplay
  • Tail-Biting Strategy : Players can strategically bite off the snake's last tail segment for bonus points, creating risk-reward decisions
  • Wall Collision Tolerance : The snake can bump into walls without dying, focusing gameplay on tail management rather than precise navigation
  • Dynamic Food Placement : Mice, rabbits, and mushrooms appear in new locations each level, preventing memorization strategies

Progressive Difficulty

As your snake grows longer, the puzzle element becomes more prominent. Each consumed item increases both your score and the challenge of maneuvering through the playing field. The game masterfully balances growth progression with spatial awareness requirements.

Diverse Food Items

Throughout your journey, you'll encounter various consumables: - Rabbits : Primary food source that provides steady growth - Mice : Quick snacks for score building - Mushrooms : Special items with unique properties - Level-Specific Items : New food types unlock as you progress

Gameplay Mechanics

Boa combines the familiar snake movement system with puzzle-solving elements. Your primary objective is to consume all available food while managing your snake's increasing length. The key challenge lies in planning your movements to avoid creating inescapable situations.

Strategic Elements

  • Space Management : Leave enough room to maneuver as your snake grows
  • Route Planning : Think ahead to avoid getting trapped by your own tail
  • Bonus Optimization : Decide when to use the tail-biting mechanic for maximum points
  • Level Completion : Clear each stage by consuming all available food items

Operation Guide

The game features intuitive controls suitable for all skill levels:

  • Arrow Keys : Navigate your snake in four directions (up, down, left, right)
  • Strategic Movement : Plan your path to avoid tail collisions
  • Tail Biting : Position your snake to bite its last segment when beneficial
  • Wall Navigation : Use walls as boundaries without fear of instant death

The game requires no complex button combinations, making it instantly accessible while maintaining depth through strategic gameplay decisions.

Why Play This Game

Perfect for Puzzle Lovers : Boa offers an excellent entry point for players who enjoy both classic arcade action and thoughtful puzzle-solving. The game's unique mechanics create situations that require both quick reflexes and careful planning.

Nostalgic Yet Fresh : While building on the beloved snake game formula, Boa introduces enough new elements to feel modern and engaging. The vocal snake character adds personality that traditional snake games lack.

Stress-Free Gaming : The forgiving wall collision system reduces frustration while maintaining challenge through tail management. This makes Boa ideal for relaxed gaming sessions.

Progressive Challenge : The difficulty curve is perfectly balanced, starting accessible and gradually increasing complexity as your skills develop. Each level presents new spatial puzzles to solve.

Free Browser Gaming : No downloads, installations, or payments required. Simply open your browser and start playing immediately across any device with internet access.

Frequently Asked Questions (FAQ)