Apple Worm - Logic Puzzle Snake Game

Seele01-Flash
By
Apple Worm is an addictive logic puzzle game where you control a cute green worm that grows longer by eating apples. Navigate through 30 challenging levels using strategy and planning to reach each exit.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Apple Worm Logic Puzzle**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Recreate the "Flash Game" aesthetic using a **2.5D Orthographic perspective**. Use bright, high-saturation colors. * **The Worm**: A segmented cylinder model (low-poly) colored bright green. The head segment should have large, expressive googly eyes (simple sphere geometry with black pupils) and a purple outline/hat element as seen in the screenshot. * **The Apple**: A shiny, bright red low-poly apple with a brown stem and a green leaf. It should have a slight floating animation (bobbing up and down). * **The Level**: Grid-based layout. Use simple cubes with "grass" textures (green top, brown sides) for ground blocks. * **The Portal/Exit**: A swirling black hole or a wooden door sprite to signify the level goal. * **Background**: A static or slowly scrolling skybox with a gradient blue sky and cartoony, layered clouds to match the screenshot's cheerful atmosphere. * **Mobile Optimization**: * Use `THREE.InstancedMesh` for the level blocks to reduce draw calls. * Limit real-time shadows; use baked ambient occlusion or simple blob shadows under the worm. * Ensure textures are compressed (max 512x512) for fast loading on cellular data. ### 2. Audio Requirements * **BGM**: A lighthearted, looping "puzzler" track. Think xylophone or pizzicato strings—mischievous but relaxing, typical of classic Flash puzzle games. * **Sound Effects (SFX)**: * **Movement**: A squishy "slither" or soft "pop" sound for each grid movement. * **Eating Apple**: A crisp, loud "CRUNCH" sound followed by a positive "ding". * **Falling/Failure**: A comical "whistle-drop" sound or a cartoon splat. * **Level Win**: A cheerful fanfare or a "ta-da!" sound. ### 3. Gameplay Loop * **Core Mechanics**: * **Grid-Based Movement**: The worm moves one block at a time (Up, Down, Left, Right). It is affected by gravity—if the head moves into empty space without body support, it falls. * **Snake Mechanics**: The worm has a fixed length initially. * **Apple Mechanic**: Eating an apple increases the worm's length by 1 segment immediately. This is crucial for bridging gaps that were previously impossible to cross. * **Physics/Logic**: The worm functions like a physical object. It can "bridge" gaps as long as enough body segments are anchored on solid ground. If the center of mass shifts too far over a void, the worm falls. * **Goal**: Navigate the worm to the "Exit" portal. * **Fail State**: Falling off the map or getting stuck in a position where no valid moves remain. ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Landscape Mode** (Preferred for platformers) or Portrait with the game field centered. The canvas should resize dynamically (`window.addEventListener('resize', ...)`). * **Touch Controls (D-Pad)**: * Implement an on-screen **Virtual D-Pad** on the bottom left or right (large, semi-transparent buttons: Up, Down, Left, Right). * **Swipe Gestures**: Alternatively, support swipe inputs (Swipe Right = Move Right). This feels more natural for mobile puzzle games. * **UI Layout**: * **Reset Button**: A prominent "Retry" icon (circular arrow) in the top-right corner (at least 44x44px touch target) for when players get stuck. * **Level Indicator**: Simple text "Level X" in the top-left. * **Feedback**: * **Haptic Feedback**: Trigger a short vibration (`navigator.vibrate(50)`) when the worm eats an apple or falls. * **Visual Feedback**: A small particle explosion (confetti) when reaching the exit. 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 a captivating puzzle-platformer that combines the classic snake game mechanics with brain-teasing logic challenges. In this charming game, you control an adorable green worm with big googly eyes as it navigates through increasingly complex levels. The core challenge lies in strategic planning - every apple you eat makes your worm longer, which can be both helpful and problematic.

The game features a delightful cartoon art style with bright colors and smooth animations that make each level visually appealing. With 30 carefully crafted levels, Apple Worm provides hours of engaging puzzle-solving entertainment that will test your spatial reasoning and forward-thinking abilities.

Core Features

Strategic Growth Mechanics

The unique gameplay revolves around controlled growth. Each apple your worm consumes adds a new segment to its body, allowing you to bridge gaps and reach higher platforms. However, growing too large can trap you in tight spaces, adding a risk-reward element to every decision.

30 Challenging Levels

Progressively difficult levels introduce new obstacles and puzzle elements. Early stages teach basic mechanics, while later levels require complex multi-step solutions and careful planning to avoid getting stuck.

Brain Training Benefits

Apple Worm serves as excellent brain exercise, improving: - Spatial awareness - Understanding how your growing body interacts with the environment - Strategic planning - Thinking several moves ahead to avoid dead ends - Problem-solving skills - Finding creative solutions to reach seemingly impossible exits - Pattern recognition - Identifying optimal paths through complex layouts

Accessible Design

The game features intuitive controls and clear visual feedback, making it suitable for players of all ages. The cute character design and friendly atmosphere create a stress-free puzzle-solving environment.

Gameplay Mechanics

Your objective in each level is simple: guide your worm to the exit portal. However, the execution requires careful consideration of every move. The worm's body segments follow behind the head, creating a snake-like movement pattern that must be navigated around obstacles and through narrow passages.

Key Gameplay Elements: - Apple Collection : Strategically eat apples to grow longer when needed - Platform Navigation : Use your extended body as a bridge to reach new areas - Obstacle Avoidance : Navigate around barriers without getting your tail stuck - Exit Strategy : Plan your route to reach the exit without trapping yourself

Controls Guide

Apple Worm features simple, responsive controls: - WASD Keys : Move your worm in four directions (up, down, left, right) - Arrow Keys : Alternative movement controls - On-Screen Buttons : Touch-friendly controls for mobile devices

The controls are deliberately simple to keep focus on the puzzle-solving aspect rather than complex input sequences.

Why Play Apple Worm?

Apple Worm stands out in the puzzle game genre for several compelling reasons:

Perfect Difficulty Progression : The game introduces concepts gradually, ensuring players never feel overwhelmed while maintaining a satisfying challenge curve.

Unique Twist on Classic Mechanics : By combining snake game growth with platform puzzles, Apple Worm creates a fresh gaming experience that feels familiar yet innovative.

Mental Exercise : Each level provides a mini brain workout that improves logical thinking and spatial reasoning skills.

Family-Friendly Fun : The cute graphics and non-violent gameplay make it perfect for players of all ages, from children developing problem-solving skills to adults looking for relaxing brain teasers.

No Time Pressure : Take your time to analyze each situation and plan your moves - there's no rushing or stress, just pure puzzle-solving satisfaction.

Replay Value : Even after completing all levels, you can revisit earlier stages to find more efficient solutions or simply enjoy the clever level design again.

Frequently Asked Questions (FAQ)