Duo - Co-op Puzzle Adventure Game

Seele01-Flash
By
Duo is an innovative 2-player co-op puzzle adventure that challenges teams to work together through clever platforming challenges. This compact yet engaging experience focuses on communication, coordination, and shared problem-solving in a beautifully crafted 2D world.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Duo: The Dungeon Escape**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A **2.5D Side-Scroller** using an Orthographic Camera. The aesthetic should be "Modern Retro" – low-poly 3D geometry with pixel-art style colors/textures. * **Characters**: Create two distinct player markers using `THREE.BoxGeometry` or `THREE.Sprite`: * **Player 1 (The Scholar)**: Blue and Green color scheme (referencing the hat/cape in the source). * **Player 2 (The Mage)**: Deep Blue and Cyan color scheme. * **Environment**: * **Platforms**: Tiled blocks with mossy brick textures (procedurally generated via CanvasTexture). * **Hazard**: A lava floor at the bottom of the screen using an emissive orange/red material with a slight pulsating animation (modulating opacity or scale). * **Background**: A dark purple/indigo dungeon wall, slightly set back to create parallax depth. * **Mobile Optimization**: Use simple geometric primitives to reduce draw calls. Avoid heavy real-time shadows; use baked lighting or simple ambient light + directional light. ### 2. Audio Requirements * **BGM**: Use `AudioContext` oscillators to generate a looping, retro-style chiptune track (8-bit square waves). The mood should be "Investigative" and "Adventurous" (approx 110 BPM). * **SFX**: * **Jump**: A quick, ascending frequency slide (square wave). * **Land**: A short low-frequency noise burst. * **Switch Char**: A high-pitched digital "blip". * **Death**: A descending "meltdown" sound effect when touching lava. ### 3. Gameplay Loop * **Objective**: Both characters must reach the "Exit Door" to advance. If one dies, the level resets. * **Core Mechanic - Asymmetric Co-op (Solo Mode)**: Since this is for a mobile screen, implement a **Character Swap Mechanic**. The player controls one character at a time while the other stays idle (or holds a button/plate). * **Puzzle Elements**: * **Pressure Plates**: One character must stand on a switch to keep a door open for the other. * **Collectibles**: Floating "Scrolls" that must be collected to unlock the exit. * **Physics**: Simple AABB collision detection. The movement should be tight and responsive (not floaty). Gravity should be strong. ### 4. Mobile Controls & Interaction * **Screen Orientation**: Force **Landscape Mode** UI layout. * **Touch Controls (Virtual UI)**: * **Left Zone**: A virtual D-Pad or Floating Joystick for movement (Left/Right). * **Right Zone (Bottom)**: Large "Jump" button. * **Right Zone (Top)**: Small "Action" button (for levers/items). * **Top Center**: A prominent **"SWAP" button** to toggle control between Player 1 and Player 2. The camera should smoothly pan to the active character. * **Feedback**: * Visual: The active character should have a glowing outline or arrow above their head. * Haptic: Trigger `navigator.vibrate(50)` on jump and landing if supported. * **UI Size**: Ensure all buttons are at least 48x48px safe area for touch targets. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Duo is a thoughtfully designed co-operative puzzle adventure that puts teamwork at its core. This compact 2D platformer requires two players to work in perfect harmony, combining their unique abilities to overcome ingenious challenges and explore a carefully crafted world together. With its focus on communication and coordination, Duo offers an engaging multiplayer experience that tests both your puzzle-solving skills and your ability to collaborate effectively.

Core Features

True Cooperative Gameplay

Duo is built from the ground up for two players, with every puzzle and challenge designed to require genuine cooperation. Unlike games where a second player is simply "added on," both players are essential to progress, making every moment a shared experience.

Clever Puzzle Design

Each challenge in Duo requires creative thinking and perfect coordination between players. The puzzles gradually increase in complexity, introducing new mechanics and power-ups that expand your collaborative possibilities. From simple timing challenges to complex multi-step sequences, every puzzle rewards clever teamwork.

Beautiful 2D Pixel Art

The game features charming pixel art graphics that create an immersive and visually appealing world. The clean, colorful aesthetic makes it easy to focus on the puzzles while enjoying the game's artistic charm.

Power-Up System

As you progress, you'll unlock various power-ups that add new dimensions to the cooperative gameplay. These abilities must be used strategically, with players coordinating when and how to deploy them for maximum effectiveness.

Compact but Complete Experience

While Duo offers a focused experience, every moment is carefully crafted to deliver maximum engagement. The game respects your time while providing a satisfying cooperative adventure that you can complete in a single session with a friend.

Gameplay Mechanics

Duo combines classic platforming elements with innovative cooperative mechanics. Players must navigate through levels together, with some areas requiring one player to assist the other, while other challenges demand simultaneous action from both participants.

The item system adds strategic depth, allowing players to collect, swap, and use various tools to overcome obstacles. Communication becomes crucial as players must coordinate their movements, decide when to use items, and work together to solve increasingly complex puzzles.

Controls Guide

The game features intuitive dual-player controls designed for shared keyboard play:

Player 1 Controls: - WASD keys for movement - Spacebar to jump - B to interact with objects - V to use items - Tab to swap between items - P to pause the game

Player 2 Controls: - Arrow keys for movement - Right Shift to jump - Semicolon (;) to interact - L to use items - Quote (") to swap items - P to pause

The control scheme is optimized for comfortable side-by-side play, ensuring both players can operate their characters effectively without interfering with each other.

Why Play Duo?

Duo stands out in the crowded puzzle-platformer genre by prioritizing genuine cooperation over competition. It's perfect for friends, family members, or gaming partners who want to tackle challenges together. The game's emphasis on communication makes it an excellent choice for building teamwork skills while having fun.

The compact nature of the experience means you can enjoy a complete adventure without a massive time commitment, making it ideal for gaming sessions when you want something meaningful but manageable. Whether you're looking for a fun activity with a friend or want to experience innovative cooperative gameplay, Duo delivers a unique and satisfying gaming experience that celebrates the power of working together.

Frequently Asked Questions (FAQ)