Apple Worm - Snake Puzzle Adventure Game

Seele01-Flash
By
Apple Worm is a unique physics-based puzzle game where you control a growing worm through challenging platform levels. Eat apples to grow longer while solving clever puzzles to reach each exit.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Apple Worm". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Use a **2.5D aesthetic** (3D objects on a 2D plane). The camera should be **Orthographic**, positioned directly front-on to simulate a classic side-scrolling puzzle view but with depth perception. * **Color Palette**: High saturation, cartoon style. Sky blue background (`#87CEEB`), bright green for the worm (`#32CD32`), deep red for apples, and brown/earth tones for ground blocks. * **Models**: * **The Worm**: Construct the worm using a series of rounded CubeGeometries or Capsules. The "Head" segment should have simple eyes (white spheres with black pupils). The body segments follow the head. * **The Apple**: A low-poly red sphere with a small green leaf on top. It should have a slow, idle "bobbing" animation (sine wave on Y-axis). * **The Exit**: A swirling black/purple vortex or a simple door texture placed on a target block. * **Terrain**: Simple grid-based blocks. * **Mobile Optimization**: Use `BoxGeometry` for terrain to keep vertex count low. Use a single directional light with soft shadows, plus ambient light. Avoid complex shaders; use standard materials. ### 2. Audio Requirements * **BGM**: A lighthearted, looping puzzle track. Style: "Pizzicato strings" or "Marimba". It should be relaxing to aid concentration (similar to 'Cut the Rope' or 'Angry Birds' thinking music). * **Sound Effects (SFX)**: * **Movement**: A soft, wet "squish" or "plop" sound for every grid step. * **Eat Apple**: A crisp, crunchy "chomp" sound. * **Win/Exit**: A "pop" or ascending chime sound when entering the portal. * **Fall/Die**: A descending slide-whistle or a comical "thud". * **UI**: Standard click sounds for on-screen buttons. ### 3. Gameplay Loop * **Grid System**: The game logic operates on a strict 2D grid. The worm moves one square at a time. * **Mechanics**: * **Movement**: The player controls the worm's head. The body segments follow the path of the head (snake logic). * **Gravity & Physics**: This is the core puzzle element. Unlike standard "Snake", gravity exists. * If the worm moves off a ledge, it does not immediately fall *if* the majority of its body is still supported by ground. * The code must calculate the center of mass or support points. If the worm has no blocks underneath a supporting segment, the entire worm falls downwards until it hits ground or falls off the screen (Game Over). * **Eating**: Moving the head into an Apple consumes it. This adds +1 segment to the worm's length immediately (or on the next move). Growing allows the worm to bridge larger gaps. * **Win Condition**: The worm's head successfully enters the Exit portal. * **Fail Condition**: The worm falls off the bottom of the screen, or gets stuck in a position where no valid moves are possible (stuck in a corner). ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Landscape Mode** is mandatory to accommodate level width. * **Control Scheme**: Do not use keyboard WASD constraints. Implement **On-Screen Virtual Buttons**: * Create a visually distinct 4-way D-Pad (Up, Down, Left, Right) on the bottom left or right of the screen. * Button size: Minimum 60x60px hit area to prevent miss-clicks. * Style: Semi-transparent white circles with arrows. * **Tactile Feedback**: Trigger `navigator.vibrate(50)` (short haptic pulse) on every successful move to simulate the heavy feeling of the worm. * **UI Overlay**: * "Retry" button (top right) is essential for puzzle games when the player realizes they are stuck. * Level counter (top left). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Apple Worm

Apple Worm is an innovative puzzle-platform game that combines the classic snake mechanic with challenging physics-based puzzles. This engaging brain teaser features a cute green worm with googly eyes who must navigate through 30 increasingly difficult levels. The game's unique twist lies in its growth mechanic - every apple you eat makes your worm longer, creating both opportunities and obstacles as you progress.

The colorful, cartoon-style graphics and intuitive gameplay make Apple Worm perfect for players of all ages who enjoy logic puzzles and strategic thinking games.

Core Features

Dynamic Growth Mechanics

The heart of Apple Worm lies in its innovative growth system. As your worm consumes apples scattered throughout each level, it grows longer segment by segment. This growth isn't just cosmetic - it fundamentally changes how you approach each puzzle, creating bridges across gaps while potentially trapping you in tight spaces.

30 Challenging Levels

Each of the 30 handcrafted levels presents unique obstacles and puzzle configurations. From simple introductory stages to mind-bending advanced puzzles, the difficulty curve ensures both newcomers and puzzle veterans find appropriate challenges.

Physics-Based Puzzle Solving

The game employs realistic physics that affect how your worm moves and interacts with the environment. You'll need to consider gravity, momentum, and spatial relationships as you plan your route through each level.

Cross-Platform Compatibility

Apple Worm runs smoothly on all devices - desktop computers, tablets, and smartphones - allowing you to enjoy puzzle-solving wherever you are.

Game Mechanics

Strategic Apple Collection

While eating apples is necessary for progression, timing and positioning are crucial. You must carefully plan which apples to eat and when, as growing too large too early can trap you in impossible positions.

Platform Navigation

Use your worm's length strategically to: - Bridge gaps between platforms - Reach higher areas by coiling upward - Create pathways across obstacles - Navigate through narrow passages (before growing too large)

Exit Strategy

Each level requires reaching a designated exit point. The challenge lies in growing just enough to overcome obstacles while maintaining the ability to maneuver through the level's geometry.

How to Play

Basic Controls

  • WASD Keys or Arrow Keys : Move your worm in four directions
  • On-screen Buttons : Touch controls for mobile devices
  • Mouse : Navigate menus and select options

Gameplay Strategy

  1. Survey the Level : Before moving, examine the entire level layout to plan your route
  2. Count the Apples : Determine how many apples you need versus how many are available
  3. Plan Your Growth : Decide the optimal order for apple collection
  4. Execute Carefully : One wrong move can trap you permanently
  5. Restart When Needed : Don't hesitate to restart if you get stuck

Pro Tips

  • Always plan several moves ahead
  • Consider how your current length affects future movements
  • Look for alternative paths if your first strategy fails
  • Remember that you can't shrink - every apple eaten is permanent

Why Play Apple Worm?

Perfect Brain Training

Apple Worm excellently exercises spatial reasoning, strategic planning, and problem-solving skills. Each puzzle requires careful analysis and forward thinking, making it ideal brain training entertainment.

Unique Gameplay Experience

Unlike traditional snake games focused on endless growth, Apple Worm transforms the concept into a finite puzzle experience where every segment matters. This creates a fresh take on familiar mechanics.

Accessible Yet Challenging

The simple controls and clear visual design make the game immediately accessible, while the puzzle complexity ensures long-term engagement. It's easy to learn but challenging to master.

No Pressure Gaming

Without time limits or lives to lose, you can take your time to think through each puzzle. This creates a relaxing yet intellectually stimulating experience perfect for stress-free gaming sessions.

Free Entertainment

Completely free to play with no hidden costs, advertisements, or in-app purchases. Pure puzzle gaming at its finest.

Frequently Asked Questions (FAQ)