Stack Colors - Endless Runner Color Block Game

Seele01-Flash
By
Stack Colors is an exciting endless runner game where you collect colored blocks while avoiding obstacles. Test your reflexes in this fast-paced color-matching challenge that's free to play on any device.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Stack Colors**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Hypercasual aesthetic with a vibrant, high-saturation color palette (primarily Cyan, Magenta, Yellow, and Green). Use smooth, untextured materials (Lambert or Phong) for a clean look. * **Character & Tools**: A simple low-poly Stickman figure pushing a "U-shaped" scraper/cart in front of them. * **Environment**: An infinite runner track extending into the Z-axis. The track should be gray/white to make the colored elements pop. * **Collectibles (The Stack)**: Flat, rectangular slabs (plates) scattered in lanes. Use `THREE.InstancedMesh` for these plates to ensure 60FPS performance on mobile devices. * **Obstacles**: * **Color Gates**: Translucent vertical planes that change the player's current active color when passed through. * **Doom Pillars**: Grey or Spiked pillars that end the game if hit directly. * **Camera**: Third-person perspective, positioned slightly elevated behind the character, following the character's forward movement smoothly. ### 2. Audio Requirements * **BGM**: An energetic, high-tempo "Euro-pop" or "Techno" style loop to encourage running speed. * **Sound Effects (SFX)**: * **Collect**: A satisfying "pop" or "click" sound (rising in pitch as the stack grows). * **Destruction**: A crumbling or breaking glass sound when hitting the wrong color. * **Color Switch**: A digital "whoosh" or "chime" when passing through color gates. * **Finish**: A cheering crowd sound or a heavy impact sound for the final score calculation. ### 3. Gameplay Loop * **Core Mechanic**: The character runs forward automatically at a constant speed. * **Stacking Logic**: * The player has a specific "Current Color". * Collecting plates of the **Same Color** adds them to the stack inside the U-shaped cart. * Collecting plates of a **Different Color** destroys the equivalent number of plates from your current stack (reducing score). * **Color Switching**: Passing through a "Color Gate" immediately changes the player's "Current Color" to match the gate. * **Win/Loss Condition**: * **Loss**: Running into a "Doom Pillar" or losing all stack plates (if stack count < 0). * **Win (Endless/Level)**: Reaching the finish line. At the finish line, the player kicks the stack forward. The higher the stack, the further it travels for a score multiplier (the "Shooting" aspect). ### 4. Mobile Controls & Interaction * **Control Scheme**: "Swerve" mechanic. * **Touch & Drag**: The user touches anywhere on the screen and drags left/right to move the character horizontally on the X-axis. * **Sensitivity**: High sensitivity to allow quick reflexes. The movement should be clamped to the track width. * **Screen Orientation**: Portrait Mode (Vertical) optimized. * **UI Overlay**: * A minimalist HTML/CSS overlay on top of the canvas. * **Top**: Current Score / Stack Height counter. * **Start Screen**: "Tap to Play" pulsating text. * **Feedback**: Use the `navigator.vibrate(50)` API for haptic feedback when collecting items or hitting wrong colors. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Stack Colors

Stack Colors is a thrilling endless runner game that combines fast-paced action with color-matching gameplay. With an impressive rating of 4.3/5 stars, this HTML5 game challenges players to collect colored blocks while navigating through a treacherous obstacle course filled with differently colored barriers and pillars.

Core Features

Fast-Paced Endless Runner Action

Experience the adrenaline rush of non-stop running as you dash through an ever-changing obstacle course. The game's endless format means the challenge never stops, keeping you engaged for hours of gameplay.

Color-Matching Mechanics

The unique twist in Stack Colors lies in its color-matching system. You must collect blocks of specific colors while avoiding others, adding a strategic element to the traditional runner format. This mechanic requires quick thinking and precise timing.

Mobile-Optimized HTML5 Technology

  • Cross-Platform Compatibility : Plays smoothly on desktop computers, tablets, and smartphones
  • No Download Required : Instant play directly in your web browser
  • Responsive Controls : Intuitive touch controls for mobile devices and mouse controls for desktop
  • Optimized Performance : Smooth gameplay across all supported devices

Progressive Difficulty System

As you advance through the game, the speed increases and obstacles become more challenging. This progressive difficulty curve ensures that both beginners and experienced players find the right level of challenge.

Game Mechanics

Objective and Gameplay

Your mission is simple yet challenging: run as fast as possible while collecting colored blocks that match your current color theme. Simultaneously, you must avoid blocks of different colors and navigate around dangerous pillars that can end your run instantly.

Upgrade and Progression System

Earn coins by successfully collecting blocks and surviving longer runs. Use these coins to upgrade your runner's abilities, unlock new characters, or enhance performance stats. The progression system provides long-term goals and replay value.

Operation Guide

Desktop Controls

  • Mouse Movement : Point and move your mouse to control the character's left and right movement
  • Mouse Click : Click to interact with game elements and navigate menus
  • Smooth Navigation : The character follows your mouse movements for precise control

Mobile Controls

  • Touch and Drag : Use your finger to tap and drag the character across the screen
  • Tap Controls : Simple tap gestures for menu navigation and special actions
  • Responsive Touch : The game responds instantly to your finger movements for optimal mobile gameplay

Gameplay Tips

  • Stay Alert : Keep your eyes on upcoming obstacles and color patterns
  • Plan Ahead : Think two moves ahead to avoid getting trapped
  • Collect Strategically : Focus on collecting blocks efficiently while maintaining safe positioning
  • Use Quick Reflexes : React fast to sudden obstacle changes and color switches

Why Play Stack Colors

Perfect for Quick Gaming Sessions

Stack Colors is ideal for short gaming breaks or extended play sessions. The instant-start HTML5 format means you can jump into the action immediately, whether you have 5 minutes or an hour to spare.

Skill Development Benefits

  • Improves Reaction Time : Regular play enhances your reflexes and response speed
  • Enhances Focus : The color-matching element requires sustained concentration
  • Develops Strategic Thinking : Planning your path through obstacles builds problem-solving skills
  • Stress Relief : The engaging gameplay provides an excellent way to unwind

Free and Accessible

Enjoy all the game's features without any cost. No subscriptions, no hidden fees – just pure gaming fun accessible from any modern web browser. The game's "All Ages" content rating makes it suitable for players of all ages.

Competitive Element

Challenge yourself to beat your high scores and compete with friends. The endless nature of the game means there's always room for improvement and new personal records to set.

Frequently Asked Questions (FAQ)