Duck Life 2

Seele01-Flash
By
Duck Life 2 is an engaging adventure game where you train your duck to master four different disciplines - running, flying, swimming, and climbing. Travel across five unique locations and compete to become the world's best duck adventurer.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Duck Life 2: Pocket Racer**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: **2.5D Toon-Shaded Aesthetic**. Use `THREE.MeshToonMaterial` or basic materials with bold colors to mimic the original flash game's vector art style. The world should look bright, vibrant, and cartoonish (high saturation). * **The Duck (Player)**: A low-poly, yellow, sphere-based character with an orange beak and large white eyes. It needs simple procedural animations: "Bobbing" for idle, "Rolling/Running" leg animation, and a "Squash and Stretch" effect when jumping. * **The World**: A side-scrolling track. * **Foreground**: Green scrolling ground (cylinder or tiling plane) with simple geometric obstacles (logs, rocks). * **Background**: Parallax scrolling layers. A light blue sky with low-poly clouds. * **Theming**: Include a variable to switch environment palettes based on the "Location" (e.g., Green for England, Sand yellow for Egypt, Snowy white for Scotland). * **Performance**: Use object pooling for obstacles and coins to maintain high FPS on mobile browsers. Avoid complex lighting; use a simple `HemisphereLight` and one `DirectionalLight` for shadows. ### 2. Audio Requirements * **BGM**: A loopable, upbeat, retro-adventure style track (MIDI or light orchestral) that sounds optimistic and energetic. * **SFX**: * **Jump**: A cute, short "Quack" sound or a cartoonish "Boing". * **Coin Collect**: A high-pitched "Ding" or "Ching". * **Crash/Fail**: A sad, descending whistle or a "Thud". * **UI Click**: A soft "Pop" sound. * *Note: Since audio files are not provided, please include placeholder code or synth-generated placeholders using the Web Audio API.* ### 3. Gameplay Loop * **Core Mode**: **The Running Training/Race**. This is an endless runner style mechanic. * **Mechanics**: * The Duck runs automatically from left to right (or the world moves left). * **Obstacles**: Randomly generated logs (jump over) and birds (duck under - optional). * **Collectibles**: Floating yellow coins and piles of seed (stamina). * **Stats System**: Display a "Level" or "Stamina" bar. Successfully dodging obstacles increases the Duck's "Running Level". * **Win/Loss**: * **Crash**: Hitting an obstacle stops the run, shows a "Game Over" modal, and displays coins earned. * **Goal**: Reach a specific distance to "Level Up". ### 4. Mobile Controls & Interaction * **Orientation**: **Landscape Mode** is preferred for the racing view. * **Touch Controls**: * **Tap Anywhere**: Jump (Short tap for small jump, Hold for higher jump if possible, otherwise single fixed jump height). * **Double Tap**: Double jump (unlockable skill, logic included but disabled by default). * **UI Layout**: * **HUD**: Top-left: "Level/Stamina Bar". Top-right: "Coins: 0". * **Menus**: Large, rounded buttons (min 44px height) for "Start Race", "Shop", and "Retry". * **Feedback**: Screen shake (slight camera jitter) on collision. Simple particle explosion (confetti) when collecting coins. Please create the `index.html` file containing the Three.js logic, handling the window resize events and touch listeners specifically for mobile devices. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Duck Life 2

Duck Life 2 is a captivating adventure game that combines training simulation with exciting racing challenges. In this colorful and fun-filled experience, you take on the role of a duck trainer, developing your feathered friend's abilities across four essential skills: running, flying, swimming, and climbing. The goal is simple yet engaging - transform your duck into the ultimate adventurer capable of conquering races around the world.

The game features a charming cartoon art style with a bright yellow duck protagonist that immediately captures players' attention. With its intuitive gameplay mechanics and progressive difficulty system, Duck Life 2 appeals to both casual gamers and those seeking a more strategic training experience.

Core Features

Multi-Discipline Training System

Duck Life 2 stands out with its comprehensive training approach. Your duck must master four distinct disciplines:

  • Running : Build speed and agility for ground-based races
  • Flying : Develop aerial navigation and endurance skills
  • Swimming : Master aquatic movement and diving techniques
  • Climbing : Learn wall-jumping and vertical navigation

Each discipline requires different training methods and offers unique gameplay mechanics, ensuring variety and sustained interest throughout your duck's development journey.

Global Racing Adventures

The game takes you on a world tour with five exciting locations :

  • Scotland : Experience highland racing challenges
  • England : Compete in classic British countryside settings
  • Egypt : Navigate ancient desert landscapes
  • Hawaii : Race through tropical paradise environments
  • Japan : Master skills in traditional Japanese settings

Each location presents unique environmental challenges and visual themes, making every race feel like a new adventure.

Progression and Customization

Earn coins through training sessions and successful races to: - Purchase cool accessories for your duck - Improve your duck's appearance and stats - Unlock new training equipment - Buy energy-restoring seeds to maintain stamina

Gameplay Mechanics

Training Your Duck

The heart of Duck Life 2 lies in its training system. Players must balance their duck's development across all four disciplines while managing stamina and resources. Training sessions are mini-games themselves, each requiring different skills and offering varying coin rewards based on performance.

Racing Competition

Once your duck is trained, you can enter races against computer-controlled opponents. Success in races depends on your duck's skill levels in relevant disciplines and your ability to execute precise controls during the race.

Resource Management

Stamina management adds a strategic element to the game. Your duck needs to eat seeds to maintain energy for training and racing, creating a resource management aspect that prevents endless grinding while encouraging strategic planning.

Controls and How to Play

Duck Life 2 features simple yet responsive controls tailored to each discipline:

Running Events: - Use the up arrow key to make your duck jump over obstacles - Timing is crucial for maintaining speed and avoiding hazards

Flying Challenges: - Left and right arrow keys guide your duck through aerial courses - Navigate around obstacles while collecting coins and power-ups

Swimming Competitions: - Up arrow : Jump out of water or surface quickly - Down arrow : Dive deep to avoid obstacles or collect items - Left/right arrows : Move horizontally through aquatic environments

Climbing Adventures: - Left and right arrow keys make your duck jump between canyon walls - Master the rhythm of wall-jumping to ascend vertical challenges

Getting Started

  1. Begin with basic training in all four disciplines
  2. Focus on one skill initially to see quick progress
  3. Enter your first race when you feel confident
  4. Use earned coins to buy accessories and seeds
  5. Gradually increase training intensity as your duck improves
  6. Explore all five global locations for maximum rewards

Why Play Duck Life 2

Completely Free Experience : Duck Life 2 is entirely free to play with no hidden costs, premium content, or pay-to-win mechanisms. Every feature and location is accessible through gameplay progression.

Perfect for All Ages : The game's charming visuals, simple controls, and family-friendly content make it suitable for players of all ages. Children will love the cute duck character, while adults can appreciate the strategic training elements.

No Download Required : Play instantly in your web browser without downloading software or apps. The game runs smoothly on both desktop computers and mobile devices.

Engaging Progression System : The combination of training, racing, and customization creates a satisfying progression loop that keeps players motivated to improve their duck's abilities.

Educational Value : The game subtly teaches resource management, goal setting, and the reward of persistent practice - valuable life skills presented in an entertaining format.

Whether you're looking for a quick gaming session or a longer adventure, Duck Life 2 offers the perfect blend of casual fun and strategic depth that will keep you coming back to train your duck to greatness.

Frequently Asked Questions (FAQ)