Ball Block Maze - Idle Merge Game

Seele01-Flash
By
Ball Block Maze is an innovative idle-merge game that combines maze building with passive income mechanics. Design intricate paths, merge blocks strategically, and watch balls generate revenue automatically in this addictive physics-based puzzler.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Ball Block Maze**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A vibrant, "Neo-Retro" aesthetic combining the **Pixel** tag with clean vector-like geometry. Use an **Orthographic Camera** to create a top-down, 2D perspective of the maze grid. * **Color Palette:** High-saturation colors similar to the promotional art. The background should be a dark, contrasting slate blue or purple to make the active elements pop. * **Balls:** Shiny, bright cyan spheres (referencing the thumbnail center) with a slight emissive glow and a trail renderer effect to visualize speed. * **Blocks/Tiles:** Square geometries with pixel-art style textures. Different colors represent different "levels" of blocks (e.g., Level 1 = Yellow, Level 2 = Green, Level 3 = Red). * **Income Zones:** Special tiles with a pulsing gold border or dollar-sign texture. * **Particles:** "Explosive" particle bursts (like the background of the thumbnail) should trigger when two blocks merge or when a ball hits a high-value target. * **Performance:** Use `InstancedMesh` for the blocks and balls to handle high object counts typical of idle/incremental games without dropping FPS on mobile devices. ### 2. Audio Requirements * **Background Music (BGM):** A catchy, looping "Synth-Pop" or "Chiptune" track. It should be energetic but not distracting, encouraging a trance-like flow state suitable for idle gameplay. * **Sound Effects (SFX):** * **Merge:** A satisfying "squish" or ascending "pop" sound when two blocks combine. * **Bounce:** A crisp, wooden or metallic "tock" when a ball hits a wall. * **Income:** A high-pitched "kaching" or coin-collecting sound when balls hit scoring zones. * **UI:** Soft clicks for menu interaction. ### 3. Gameplay Loop * **The Grid:** A dynamic grid (e.g., 6x8) where players place and arrange blocks. * **Spawning & Merging (Core Mechanic):** * Players spend earned cash to spawn basic blocks. * **Merge Logic:** Dragging a Level 1 block onto another Level 1 block merges them into a single Level 2 block (which has higher bounce elasticity or generates more income on hit). * **Ball Simulation:** * Balls spawn from a designated "Emitter" tile at the top. * They rely on 2D physics (bounding box or circle collision) to bounce off the placed blocks. * Gravity is simulated downwards (falling towards the bottom of the screen). * **Economy & Idle:** * Every time a ball hits a block, it generates a small amount of cash. * If a ball falls through the bottom, it is "recycled" or respawns after a delay. * The goal is to build a "Perpetual Motion" machine where balls bounce as many times as possible before falling out. ### 4. Mobile Controls & Interaction * **Touch Input System:** * Implement `Raycaster` for robust touch detection. * **Drag & Drop:** This is the primary interaction. Users must be able to touch a block, drag it across the screen, and drop it onto another block to merge or an empty slot to move it. * **Orientation:** **Portrait Mode** is preferred to allow one-handed play (thumb control). * **UI Layout:** * **Top HUD:** Large, readable font for "Total Money" and "Income/Sec". * **Bottom Control Bar:** A fixed dock containing the "Buy Block" button (big, easy to tap, min-height 60px). * **Feedback:** * **Haptic Feedback:** Trigger `navigator.vibrate(50)` on a successful merge or when a high-value coin is collected. * **Visual Cues:** When a block is dragged, highlight valid drop zones (green for empty, blue for merge-able, red for invalid). * **Canvas Settings:** Ensure `touch-action: none` is set in CSS to prevent the browser window from scrolling while the player drags blocks. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Ball Block Maze is a captivating idle-merge game that revolutionizes the puzzle genre by combining maze construction with strategic resource management. In this innovative physics-based experience, you become the architect of elaborate ball mazes while earning passive income through clever design and strategic merging.

The game features colorful pixel art graphics and smooth 2D physics that bring your maze creations to life. As balls roll through your carefully crafted paths, they trigger special income zones, creating a satisfying loop of construction, optimization, and reward.

Core Features

Build & Merge System

The heart of Ball Block Maze lies in its sophisticated merging mechanics. Start with basic path blocks and combine identical pieces to create upgraded, more efficient maze components. Higher-level blocks generate more income and unlock special abilities, encouraging strategic planning and resource management.

Idle Income Generation

Once your maze is operational, it works for you 24/7. Balls continuously navigate through your creation, activating income zones and generating passive revenue even when you're offline. This makes Ball Block Maze perfect for players who enjoy progress without constant attention.

Special Zones & Upgrades

Strategically placed special zones throughout your maze provide income boosts and unlock new gameplay opportunities. These zones can be upgraded and optimized to maximize your earning potential, adding depth to the seemingly simple maze-building concept.

Multiple Maps & Progression

Unlock fresh maps with unique challenges and opportunities as you progress. Each new area presents different layouts and obstacles, requiring you to adapt your strategies and experiment with new maze designs.

Gameplay Mechanics

The game combines several engaging mechanics:

  • Physics-Based Movement : Balls follow realistic physics as they roll through your mazes
  • Incremental Progression : Steady advancement through merging and upgrading systems
  • Strategic Planning : Optimal maze layouts require careful thought and experimentation
  • Resource Management : Balance immediate income with long-term upgrade investments

Operation Guide

Mouse Controls : The entire game is controlled using your mouse, making it accessible and easy to learn:

  • Click and Drag : Move blocks and shapes to design your maze layout
  • Click to Merge : Combine identical blocks by clicking when they're adjacent
  • Menu Navigation : Access upgrades, maps, and settings through intuitive mouse clicks
  • Zoom and Pan : Navigate large mazes using mouse controls for optimal viewing

The simple control scheme ensures that players can focus on strategy rather than complex inputs, making the game perfect for both casual sessions and extended play.

Why Play Ball Block Maze

Perfect for Casual Gaming : Ball Block Maze strikes the ideal balance between engaging gameplay and relaxed pacing. The idle mechanics mean you can enjoy progress without time pressure, while the merge elements provide satisfying strategic depth.

Endless Creativity : With multiple block types, upgrade paths, and map layouts, the possibilities for maze design are virtually limitless. Each player can develop their unique approach to optimization and income generation.

Accessibility : As a browser-based game requiring only mouse controls, Ball Block Maze is accessible to players of all ages and skill levels. No downloads, installations, or complex setups required.

Progression Satisfaction : The combination of immediate visual feedback (balls rolling through your maze) and long-term progression (unlocking new maps and upgrades) creates a deeply satisfying gameplay loop that keeps players engaged.

Whether you're a fan of merge games, idle mechanics, or physics puzzlers, Ball Block Maze offers a unique and engaging experience that combines the best elements of each genre into one compelling package.

Frequently Asked Questions (FAQ)