99 Bricks - Stack Building Puzzle Game

Seele01-Flash
By
99 Bricks is an innovative puzzle game that combines the strategic block placement of Tetris with the tower-building challenge of Jenga. Stack 99 unique bricks to create the tallest tower possible.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "99 Bricks" (Physics-Based Tower Stacking). Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A clean, "Flat 3D" aesthetic with strong outlines (Cel-shaded or Toon styling). The game should look like a 2D vector drawing but possess 3D depth. * **Camera:** Use an **Orthographic Camera** fixed in a frontal view to simulate a 2D plane while allowing for 3D physics rendering. The camera must automatically pan up smoothly as the tower grows. * **Block Models:** Generate standard Tetromino shapes (I, O, T, S, Z, J, L) as 3D extruded meshes with slightly beveled edges (to prevent physics engine snagging). * **Materials:** Use `MeshToonMaterial` or `MeshLambertMaterial`. Each shape type should have a distinct, high-contrast color (Red, Green, Blue, Yellow, Cyan, Purple, Orange) similar to the screenshot. Add a wireframe or `EdgesGeometry` overlay to give it a "blueprint" or "constructed" look. * **Background:** A dark, scrolling background with vertical stripes (to emphasize height) or a subtle grid pattern. * **Optimization:** Use `InstancedMesh` if possible for placed blocks to reduce draw calls. Texture resolution should be low (512x512 max) or procedurally generated colors to ensure 60fps on mobile devices. ### 2. Audio Requirements * **BGM:** A "Playful Mystery" track. Think minimalist pizzicato strings or a light, quirky electronic beat that implies concentration and balance. It should speed up slightly as the tower gets higher/unstable. * **Sound Effects (SFX):** * **Rotation:** A quick, dry "swish" or "click." * **Collision:** A satisfying "thud" or "clack" (heavy plastic or wood sound) dependent on impact velocity. * **Instability:** A "creaking" wood sound when the tower starts to tilt dangerously. * **Game Over:** A comedic "crashing" sound followed by a "womp-womp" failure cue. * **Checkpoint/High Score:** A bright, ascending chime. ### 3. Gameplay Loop * **Core Mechanic:** "Tetris meets Jenga." The player spawns blocks at the top and drops them onto a platform. Unlike Tetris, blocks **do not** disappear. They obey rigid body physics (gravity, friction, mass). * **Physics Engine:** Integrate **Cannon.js** or **Ammo.js** for realistic stacking physics. Blocks must be able to slide, tip over, and counterbalance each other. * **Objective:** Stack 99 bricks as high as possible without the tower toppling over. The game tracks the maximum stable height reached. * **Win/Loss Conditions:** * **Loss:** If a block falls off the platform/screen, the player loses a "life" (start with 3 lives). Game ends when lives run out or bricks run out. * **Win:** Successfully placing all 99 bricks (extremely hard mode). * **Power-ups (Optional):** Occasional "Cement" block that freezes physics for touched blocks, solidifying the base. ### 4. Mobile Controls & Interaction * **Orientation:** **Portrait Mode Only** (Vertical) to accommodate the height of the tower. * **Touch Controls:** * **1-Finger Drag (Horizontal):** Move the current falling block left or right. * **Tap:** Rotate the block 90 degrees. * **Swipe Down:** "Hard Drop" (increases gravity for the block). * **Two-Finger Pinch:** Zoom in/out to view the whole tower structure. * **UI Layout:** * **Top:** Current Height (Large Font), Remaining Bricks (Count / 99). * **Top Right:** Pause Button (Hitbox > 44px). * **Bottom:** Invisible touch area for game controls. * **Feedback:** * **Haptics:** Trigger a short vibration (`navigator.vibrate(10)`) whenever a block lands and settles. * **Visual Cues:** A "Ghost Block" (semi-transparent) showing where the block will land if dropped immediately. Color the tower blocks slightly red if the structure is tilting dangerously. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

99 Bricks brings together two beloved game concepts - the strategic block placement of Tetris and the careful tower construction of Jenga. With a solid 3.2/5 rating from players, this puzzle game challenges you to stack 99 uniquely shaped bricks into the tallest, most stable tower possible.

Unlike traditional Tetris where lines disappear, every brick you place in 99 Bricks becomes a permanent part of your growing tower. This creates an entirely new strategic challenge where each placement decision affects the structural integrity of your entire construction.

Core Features

Unique Hybrid Gameplay

99 Bricks offers a fresh twist on classic puzzle mechanics:

  • Permanent Block Placement : Every brick stays where you put it, building your tower brick by brick
  • Physics-Based Construction : Realistic tower physics mean poor placement can cause catastrophic collapses
  • 99 Brick Challenge : Complete the ultimate puzzle by successfully placing all 99 bricks
  • Strategic Depth : Plan ahead to create stable foundations for increasingly tall structures
  • Free Browser Play : No downloads required - play instantly in any modern web browser

Progressive Difficulty

As your tower grows taller, the challenge intensifies. Early bricks are easy to place on solid ground, but as you build higher, wind physics and structural stability become critical factors. Each new brick must be carefully positioned to maintain balance.

Addictive Puzzle Mechanics

The game combines the satisfaction of Tetris-style block fitting with the strategic planning required for stable construction. This creates a uniquely engaging puzzle experience that keeps players coming back to beat their previous height records.

Gameplay Instructions

Mastering 99 Bricks requires understanding both the controls and the physics:

Basic Controls

  • Arrow Keys : Rotate blocks and control their descent
  • Strategic Placement : Position each brick carefully to maintain tower stability
  • Physics Awareness : Consider weight distribution and structural support

Winning Strategies

Successful tower building requires:

  1. Strong Foundation : Create a wide, stable base for your tower
  2. Balanced Construction : Distribute weight evenly to prevent tipping
  3. Strategic Rotation : Use arrow keys to orient bricks for optimal placement
  4. Patience : Rush placements often lead to tower collapse
  5. Forward Planning : Consider how each brick affects future placement options

Game Mechanics

The physics engine creates realistic tower behavior where poorly balanced structures will tumble. This adds tension to every placement decision, as one wrong move can destroy hours of careful construction.

Why Play 99 Bricks

99 Bricks appeals to puzzle game enthusiasts who enjoy:

  • Strategic Thinking : Every placement requires careful consideration
  • Progressive Challenge : Difficulty increases naturally as towers grow
  • Unique Concept : Fresh take on familiar puzzle mechanics
  • Replayability : Each game offers different brick sequences and challenges
  • Quick Sessions : Perfect for short gaming breaks or extended puzzle sessions
  • No Pressure : Play at your own pace without time limits

Whether you're a Tetris veteran or Jenga enthusiast, 99 Bricks offers a compelling puzzle experience that tests both your spatial reasoning and strategic planning abilities.

Frequently Asked Questions (FAQ)