Worm - Classic Snake Puzzle Game

Seele01-Flash
By
Worm is a free classic snake-style puzzle game where you control a growing worm, eating food to get bigger while avoiding biting yourself. Simple yet addictive gameplay perfect for all ages.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Underground 3D Worm**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A stylized, semi-realistic 3D re-imagining of a classic 2D snake game. The view should be **Top-Down (Orthographic Camera)** to maintain precision gameplay but utilize 3D depth. * **The Worm:** Composed of a chain of `SphereGeometry` meshes. The Head should be distinct (slightly larger, maybe with simple black sphere eyes). Texture should be a metallic or shiny pinkish-brown (`MeshPhongMaterial`), mimicking the original game's pre-rendered look. * **The Environment:** * **Ground:** A dark brown, noise-textured plane representing soil/dirt. * **Borders:** Irregular, rock-like walls enclosing the play area (use `DodecahedronGeometry` or rough `BoxGeometry` scattered along the perimeter) to simulate an underground burrow. * **Items (Food):** Spinning 3D Apples (use a red `SphereGeometry` with a small green stem). Add a slight emissive glow so they stand out against the dark dirt. * **Particles:** Simple particle explosion (small squares or triangles) whenever an apple is eaten. * **Performance:** Use instanced meshes for the wall rocks if possible, or keep geometry counts low (Low-Poly) for smooth mobile performance. ### 2. Audio Requirements * **BGM:** A looped, low-fidelity "dungeon" or "burrow" track. Bass-heavy, rhythmic, but somewhat comical/sneaky. * **Sound Effects (SFX):** * **Eat:** A crisp "Crunch" or "Bite" sound. * **Move:** Soft squishing or sliding sound (subtle, not repetitive). * **Death:** A "Bonk" or "Splat" sound followed by a descending slide whistle. * **UI:** A "Pop" sound for button clicks. ### 3. Gameplay Loop * **Grid System:** The movement must be grid-based (the worm moves one "unit" per tick), not continuous smooth physics, to ensure precise turning. * **Mechanic:** The player controls the Worm head. The body follows the path of the head. * **Growth:** Eating an apple increases the score and adds 1 segment to the tail. * **Speed:** The game tick rate (speed) should slightly increase every 5 apples eaten to increase difficulty. * **Lose Condition:** The game ends immediately if the Worm's head collides with: 1. The Wall borders. 2. Its own body segments. * **UI:** Display a "Current Score" at the top corner. Upon death, show a "Game Over" overlay with the Final Score and a "Restart" button. ### 4. Mobile Controls & Interaction * **Control Scheme:** **Swipe Gestures** (Up, Down, Left, Right) anywhere on the screen to change direction. This is critical for mobile usability. * **Responsiveness:** The game canvas must be **fullscreen and responsive**, handling both Portrait and Landscape orientations gracefully (adjusting the camera zoom/frustum accordingly). * **Input Throttling:** Prevent the player from making two opposite turns in a single tick (e.g., trying to go Left immediately while moving Right), which causes instant death. * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(50)` when eating an apple and `navigator.vibrate(200)` upon death (if supported). * **Visual:** Slight screen shake (camera jitter) when the worm crashes. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Worm is a timeless puzzle game that brings back the classic snake gameplay with a twist. In this free online game, you control a hungry worm that grows longer with every piece of food it eats. The challenge lies in navigating the increasingly crowded space without letting your worm bite its own tail - one wrong move and it's game over!

With its simple concept and progressively challenging gameplay, Worm has earned a solid rating of 3.9/5 from players worldwide. The game combines strategy, quick reflexes, and spatial awareness to create an engaging experience that's easy to learn but difficult to master.

Core Features

Classic Snake Gameplay Reimagined

Worm takes the beloved snake game formula and presents it with clean graphics and smooth controls. Watch your worm grow from a tiny creature into a massive serpent as you successfully collect food items scattered across the playing field.

Progressive Difficulty

As your worm grows longer, maneuvering becomes increasingly challenging. The longer your worm gets, the more strategic thinking is required to avoid self-collision while continuing to hunt for food.

Perfect for All Skill Levels

Tagged as an "Easy" game, Worm is accessible to players of all ages and gaming experience levels. The simple controls make it perfect for casual gaming sessions, while the increasing difficulty provides enough challenge to keep experienced players engaged.

Browser-Based Gaming

  • Completely Free : No downloads, no payments, no subscriptions required
  • Instant Play : Start playing immediately in your web browser
  • Cross-Platform : Works on desktop computers, laptops, tablets, and smartphones
  • No Installation : Play directly without installing any software

Game Mechanics

Food Collection System

Scattered throughout the game area are food items that your worm must consume to grow. Each piece of food adds length to your worm, making navigation progressively more challenging but also increasing your score.

Collision Detection

The primary challenge in Worm is avoiding self-collision. As your worm grows longer, you must carefully plan your movements to ensure you don't accidentally guide your worm's head into its own body.

Obstacle Avoidance

Classified as both an "Avoider" and "Obstacle" game, Worm requires players to constantly assess the playing field and make split-second decisions to avoid dangerous situations.

Operation Guide

Worm features incredibly simple controls that anyone can master:

  • Arrow Keys : Use the up, down, left, and right arrow keys to control your worm's direction
  • Continuous Movement : Your worm moves automatically; you only control the direction
  • No Pause Button : The game runs in real-time, adding to the excitement and challenge
  • Instant Response : Controls are highly responsive for precise maneuvering

Gameplay Tips

  • Plan your route before making turns to avoid trapping yourself
  • Try to keep to the outer edges of the playing area when possible
  • Don't rush - sometimes patience is key to avoiding self-collision
  • Focus on creating open spaces for future movement as your worm grows

Why Play This Game

Timeless Appeal

Worm represents the perfect example of "easy to learn, hard to master" game design. While the rules are simple enough for anyone to understand immediately, achieving high scores requires practice, strategy, and quick thinking.

Stress Relief and Mental Exercise

The game provides an excellent way to relax while keeping your mind active. The combination of spatial reasoning, planning, and reaction time makes it a great mental workout disguised as entertainment.

No Commitment Required

With games typically lasting just a few minutes, Worm is perfect for quick gaming breaks. Whether you have 30 seconds or 30 minutes, you can enjoy a satisfying gaming session.

Nostalgic Gaming Experience

For many players, Worm evokes memories of classic mobile phone games and early computer gaming. It's a wonderful way to experience retro gaming without the need for old hardware.

Achievement and Progress

Each game offers the opportunity to beat your previous high score, providing a sense of progression and achievement that keeps players coming back for "just one more game."

Perfect for Various Gaming Scenarios

  • Office Breaks : Quick games during work breaks
  • Commuting : Play on mobile devices during travel
  • Family Gaming : Suitable for players of all ages
  • Casual Gaming : No long-term commitment required
  • Skill Development : Improves hand-eye coordination and spatial awareness

Frequently Asked Questions (FAQ)