Super Onion Boy 2

Seele01-Flash
By
Super Onion Boy 2 is a captivating 2D retro-style platform adventure that combines classic arcade gameplay with modern design. Embark on an epic quest to save your captured friend using superpowers, transformations, and strategic combat against formidable bosses.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Super Onion Boy 2 - 2.5D WebGL Edition**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Modern Retro" 2.5D aesthetic. Use **OrthographicCamera** to simulate a flat 2D look but build the world using 3D planes (PlaneGeometry) layered on the Z-axis for depth and parallax effects. * **Textures**: All textures must use `magFilter = THREE.NearestFilter` and `minFilter = THREE.NearestFilter` to preserve the crisp, pixel-art look without blurring. * **Color Palette**: Highly saturated and cheerful. Sky blue background (`#5c94fc`), vibrant green grass, white snow-capped mountains in the distant background layer. * **Characters**: * **Player (Onion Boy)**: A sprite texture on a plane. Needs animation states for: Idle (bobbing), Run (frame cycle), Jump (static pose), and Attack. * **Transformations**: Include texture swaps for "Wizard" (Blue robe, shoots magic) and "Ninja" (Black outfit, throws stars) based on power-ups. * **Level Construction**: Grid-based tile system. Use `InstancedMesh` for repeating ground blocks to optimize mobile performance. Blocks should have "grass" tops and "dirt" bodies. * **VFX**: Simple pixel-particle explosions when enemies are defeated or coins are collected. ### 2. Audio Requirements * **BGM**: An upbeat, looping **8-bit Chiptune** track. High tempo (120-140 BPM) with a catchy melody using square and triangle waves to evoke a sense of adventure. * **Sound Effects (SFX)**: * **Jump**: A classic retro rising frequency sweep ("Boing"). * **Collect Coin**: A high-pitched, short dual-tone "Ding-Ding". * **Power-up**: A rapid major-chord arpeggio. * **Shoot/Attack**: White noise burst or laser "Pew". * **Enemy Defeated**: A low-bit "Crunch" or descending slide. * **UI Click**: Short blip. ### 3. Gameplay Loop * **Core Mechanic**: A side-scrolling platformer. The player moves from left to right. * **Physics**: Arcade-style physics. High gravity, snappy movement (little inertia), and "variable jump height" (holding the jump button longer makes the character go higher). * **Objectives**: * **Primary**: Reach the goal post/flag at the end of the stage within a time limit. * **Secondary**: Collect 100 Golden Coins to gain an extra life. Find hidden chests containing potions. * **Combat**: * **Standard**: Jump on top of enemies (Goomba-style) to defeat them. * **Powered Up**: If the player has the "Wizard" or "Ninja" power-up, pressing the 'Action' button fires a projectile to kill enemies from a distance. * **Fail State**: Touching an enemy without jumping on them, or falling into a bottomless pit resets the level (or decreases life count). ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Landscape Mode** only. Force resize event handling to maintain aspect ratio on rotation. * **Touch Controls (Virtual Overlay)**: * **Left Side**: A visual D-Pad or Virtual Joystick for movement (Left/Right). * **Right Side**: Two large circular buttons (min 60px diameter). * **Button A (Bottom)**: Jump. * **Button B (Top-Left of A)**: Action/Shoot (only active when powered up). * **Responsiveness**: Implement "Coyote Time" (allow jumping for a few frames after leaving a platform) to make touch controls feel less punishing. * **Feedback**: * **Haptic**: Trigger `navigator.vibrate(50)` when landing a jump or hitting an enemy. * **Visual**: Buttons should scale down slightly or change opacity when pressed. ### 5. Implementation Note * Please ensure the code includes a simple asset loader placeholder for the sprites and audio, but uses colored rectangles as fallbacks if assets are missing, so the code is immediately runnable. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Super Onion Boy 2 delivers an authentic retro gaming experience wrapped in stunning pixel art aesthetics. This classic 2D platform adventure takes you on an emotional journey where our brave hero must rescue his friend from a terrifying monster with psychic powers. The game masterfully blends nostalgic gameplay mechanics with engaging storytelling, creating an experience that appeals to both retro gaming enthusiasts and newcomers to the platform genre.

After saving a princess in what might have been a dream, Onion Boy finds himself questioning reality as he wakes up in a mysterious forest. Determined to uncover the truth, he embarks on a perilous journey back to where his adventure began, setting the stage for an even more challenging quest.

Core Features

This exceptional platformer offers a rich gameplay experience with multiple engaging elements:

Epic Transformations and Superpowers

Unlock incredible abilities and transformations that dramatically change how you approach each level. These powerful upgrades aren't just cosmetic - they fundamentally alter your gameplay strategy and open up new paths through challenging obstacles.

Challenging Boss Battles

Face off against terrifying bosses in epic showdowns that test your skills, timing, and strategic thinking. Each boss requires a unique approach and mastery of your available powers to defeat.

Rewarding Collection System

Gather coins and stars scattered throughout beautifully crafted levels to earn extra lives and unlock special abilities. Discover hidden chests containing magical potions that provide temporary boosts and advantages.

Authentic Pixel Art Design

Immerse yourself in meticulously crafted pixel art environments that pay homage to classic arcade games while delivering crisp, modern visual clarity that looks stunning on all devices.

Gameplay Mechanics

Super Onion Boy 2 features intuitive yet deep gameplay mechanics that are easy to learn but challenging to master:

  • Precision Platforming : Navigate through carefully designed levels filled with obstacles, enemies, and secrets
  • Combat System : Defeat various enemies using your expanding arsenal of superpowers
  • Exploration Elements : Discover hidden areas, secret passages, and valuable collectibles
  • Progressive Difficulty : Experience a perfectly balanced difficulty curve that keeps you engaged without frustration

Controls Guide

The game features simple, responsive controls optimized for both desktop and mobile play:

  • Movement : Use A/D keys or left/right arrow keys for precise character movement
  • Jumping : Press Z, K, or Spacebar for jumping - timing is crucial for success
  • Special Powers : Activate your superpowers with X or J keys when available
  • Game Management : Pause anytime using P or Tab keys

Why Play Super Onion Boy 2

This game stands out in the crowded platform genre for several compelling reasons:

Completely Free : Enjoy the full gaming experience without any cost - no hidden fees, no pay-to-win mechanics, just pure gaming fun.

Universal Compatibility : Play seamlessly across all your devices - desktop computers, laptops, tablets, and smartphones all support this browser-based adventure.

No Downloads Required : Jump straight into the action through your web browser without waiting for downloads or installations.

Perfect for All Skill Levels : Whether you're a seasoned platformer veteran or new to the genre, the game's thoughtful design accommodates all skill levels.

Nostalgic Yet Fresh : Experience the charm of classic arcade games enhanced with modern gameplay refinements and quality-of-life improvements.

Super Onion Boy 2 represents the perfect blend of retro charm and contemporary game design, offering hours of engaging gameplay that will keep you coming back for more adventures in its beautifully pixelated world.

Frequently Asked Questions (FAQ)