Duck Life 4 - Train and Race Your Duck Team

Seele01-Flash
By
Duck Life 4 is an engaging duck racing and training game where you build a team of ducks, develop their skills through various training exercises, and compete in tournaments across six diverse locations worldwide.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Duck Life: Grassland Dash**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 2.5D Side-Scroller. Use an **Orthographic Camera** to perfectly replicate the flat, cartoon aesthetic of the screenshot while using 3D geometry. The colors should be vibrant, saturated, and clean (Cell-shaded or Flat shading). * **The Duck (Player)**: A simple, cute character composed of basic primitives: A large white sphere for the body, a smaller white sphere for the head, a small orange cone for the beak, and simple black dots for eyes. It needs a bobbing animation to simulate running. * **The Environment (Grassland)**: * **Foreground**: A scrolling green plane for the ground with occasional darker green grass tufts (small sprites or simple geometry). * **Background**: Layers of rolling green hills (parabolas or sine wave meshes) in lighter shades of green, set against a bright cyan sky with fluffy white cloud meshes. * **Obstacles & Items**: * **Wooden Crates/Fences**: Brown cubes/planks that the duck must jump over (mimicking the wooden structure in the screenshot). * **Coins/Seeds**: Yellow spinning torus shapes floating in the air for collection. * **Finish Line**: A checkered flag pole that appears periodically to mark a "Lap" or "Level Up". ### 2. Audio Requirements * **BGM**: A fast-paced, whimsical, "farm-style" track featuring acoustic guitar or banjo and a light flute melody. It should loop seamlessly. * **Sound Effects (SFX)**: * **Jump**: A cartoonish "Swoosh" or a light "Quack". * **Collect**: A satisfying, high-pitched "Ding" or "Crunch" (eating seed). * **Collision/Game Over**: A funny "Bonk" followed by a sad, descending whistle. * **UI Click**: A soft "Pop" sound. ### 3. Gameplay Loop * **Core Mechanic**: Infinite Runner. The Duck automatically runs to the right at a constant speed that slightly increases over time. * **Obstacles**: Randomly generated wooden fences and pits (gaps in the floor) appear. The player must time their jumps to avoid them. * **Scoring**: * +10 points for every coin/seed collected. * +1 point for every meter traveled. * **Energy System**: The duck has an "Energy Bar". Jumping costs a tiny bit of energy, collecting seeds restores it. If energy runs out, the duck slows down and falls asleep (Game Over). * **Win/Loss**: * **Loss**: Hitting an obstacle or running out of energy. Shows a "Train Harder!" screen. * **Progression**: Every 500 meters, the background changes slightly (e.g., sky gets darker/lighter) indicating a new "Zone". ### 4. Mobile Controls & Interaction * **Touch Controls**: * **Tap Anywhere**: Jump (Short tap = short jump, Hold = slightly higher jump). * **Double Tap**: Double Jump (Air flap) – crucial for wide gaps. * **Orientation**: **Landscape Mode** is preferred to match the side-scrolling racing view. * **UI Design**: * **HUD**: Large text for Score (Top Left) and Energy Bar (Top Center). * **Start/Restart Screen**: A large, rounded green button in the center labeled "RACE" or "RETRY" (minimum size 80x80px for touch accessibility). * **Feedback**: * **Visual**: When the duck jumps, spawn small dust particles at its feet. When collecting a coin, the coin scales up and fades out. * **Haptic**: Trigger a short vibration (10ms) on collection and a long vibration (200ms) on death using `navigator.vibrate`. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Duck Life 4

Duck Life 4 is the fourth installment in the beloved Duck Life series, offering an expanded duck racing experience with team building mechanics. After the ban on genetically modified ducks, you must train your natural duck team to defeat the reigning world champion, Frank the Fire Duck, in his volcanic lair.

Core Features

Team Building System

Unlike previous versions, Duck Life 4 introduces a comprehensive team management system. Start with your first duck and gradually expand your roster by purchasing additional ducks from the shop. Each duck can be customized with colorful liveries and developed with unique strengths across four core skills.

Skill Development

Train your ducks in four essential abilities: - Running : Master speed and agility on various terrains - Flying : Develop aerial navigation and endurance - Climbing : Build strength for vertical challenges
- Swimming : Perfect aquatic movement and stamina

Six Unique Racing Locations

Compete across diverse environments, each with distinctive visual and musical themes: - Grassland : Your starting farm town with local challenges - Swamp : Navigate through muddy wetlands - Glacier : Race across icy, slippery surfaces - Mountains : Conquer high-altitude terrain - City : Speed through urban environments - Volcano : Face the ultimate challenge in Frank's fiery domain

Gameplay Mechanics

Training System

Success in Duck Life 4 requires dedicated training. Each skill has specific mini-games: - Speed Training : Use arrow keys to navigate obstacles and maintain momentum - Endurance Training : Dodge falling objects while maintaining steady movement - Reaction Training : Use number keys 1-4 to avoid obstacles with precise timing

Training sessions reward you with coins, which are essential for progression and team development.

Currency and Progression

Earned coins serve multiple purposes: - Purchase duck feed to increase energy levels - Buy new ducks to expand your team - Acquire cosmetic items like hats and accessories - Hatch duck eggs for additional team members

Racing Tournaments

Once your ducks are sufficiently trained, participate in racing tournaments. Your success depends on the skill levels you've developed during training. Watch your ducks compete and see how your preparation pays off in real competition.

Operation Guide

Basic Controls

  • Arrow Keys : Control duck movement during training and navigation
  • Number Keys 1-4 : Quick reactions during reaction training
  • Mouse : Navigate menus and select options
  • Space Bar : Jump or perform actions when prompted

Getting Started

  1. Begin in Grassland, your base of operations
  2. Talk to local ducks to receive training challenges
  3. Complete training exercises to earn coins and improve skills
  4. Purchase duck feed and equipment with earned currency
  5. Enter races when your duck is ready
  6. Expand your team as you progress through locations

Why Play Duck Life 4

Duck Life 4 offers a perfect blend of training simulation and competitive racing. The game appeals to players who enjoy: - Progression Systems : Watch your ducks grow stronger through dedicated training - Team Management : Build and customize a diverse duck roster - Casual Gaming : Easy to learn controls with engaging gameplay loops - Visual Variety : Explore six distinct environments with unique challenges - Achievement Goals : Work toward defeating the ultimate champion

The game is completely free to play in your web browser, requiring no downloads or installations. It's also available as mobile apps for iOS and Android devices, allowing you to train your duck team anywhere.

Tips for Success

Balanced Training

Don't focus on just one skill. Develop all four abilities to handle different race types and challenges effectively.

Strategic Team Building

Each duck can specialize in different strengths. Create a diverse team where some ducks excel in speed while others dominate in endurance or climbing.

Resource Management

Spend coins wisely between duck feed, new team members, and cosmetic upgrades. Prioritize performance improvements over aesthetics early in the game.

Frequently Asked Questions (FAQ)