Build and Crush - Online Multiplayer Building & Destruction Game

Seele01-Flash
By
Build and Crush is an exciting multiplayer building and destruction game where creativity meets explosive chaos. Build incredible structures with blocks and animals, then unleash devastating weapons to crush everything in spectacular fashion.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Build and Crush Mobile". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Voxel-based aesthetic similar to Minecraft but with a cleaner, high-saturation cartoon look. The world should feel bright and inviting. * **Asset Geometry**: * Use `THREE.BoxGeometry` for the base blocks (1x1x1 units). * Include texture variations for at least 4 block types: Brick (Red), Wood (Brown), Glass (Translucent Blue), and TNT (Striped Red/White). * Create a simple Low-Poly "Chicken" or "Zombie" placeholder mesh using grouped primitives to place in the world. * **Environment**: * A bright blue skybox (`0x87CEEB`) or a simple gradient shader. * A flat, infinite grid floor (Green/Grass color) serving as the foundation. * **Mobile Optimization**: * **Crucial**: Use `THREE.InstancedMesh` for rendering the static blocks to ensure 60FPS on mobile devices when thousands of blocks are placed. * Limit shadow casting to the main directional light only to save battery/performance. ### 2. Audio Requirements * **BGM (Background Music)**: * **Build Mode**: A calm, looping Lo-Fi or acoustic guitar track (relaxing vibe). * **Crush Mode**: Shifts to a high-energy, chaotic 8-bit rock track. * **Sound Effects (SFX)**: * *Placement*: A satisfying "Pop" or "Click" sound when a block is added. * *Destruction*: Varied explosion sounds (heavy bass for TNT, shattering glass for blocks). * *UI*: Soft ticks for menu selection. ### 3. Gameplay Loop * **Game States**: The game must toggle between two distinct modes via a top-center UI button: **BUILD** and **CRUSH**. * **Build Mode**: * Player moves around using a "Flying Camera" (no gravity). * Raycaster detects the grid or existing blocks to place new ones adjacent to the selected face. * Inventory system allows selecting different block types. * **Crush Mode**: * Physics is enabled (integrate `Cannon.js` or a simple physics engine). * Gravity applies to all blocks. * **Weapons**: * *TNT*: Throws a physics object that explodes after 3 seconds, applying radial force to nearby blocks. * *Cannon*: Shoots a high-velocity sphere that knocks blocks over. * *Black Hole*: Sucks blocks toward a center point (optional advanced feature). * **Goal**: Calculate the "Destruction Percentage". Show a "Level Cleared" popup if >90% of the placed blocks fall off the platform or are destroyed. ### 4. Mobile Controls & Interaction * **Movement (Left Screen)**: * Implement a **Virtual Joystick** on the bottom-left for X/Z planar movement. * **Camera (Right Screen)**: * Implement **Touch-drag** on the right half of the screen to rotate the camera (Pitch/Yaw). * **Action Buttons (UI Overlay)**: * **Jump/Fly Up**: Small circular button (bottom-right). * **Descend**: Small circular button (below Jump). * **Primary Action (Large Button)**: * In *Build Mode*: "Place Block". * In *Crush Mode*: "Fire Weapon". * **Delete/Remove**: A secondary button (Red 'X') to remove blocks in Build Mode. * **Weapon/Block Selector**: A horizontal scrollable hotbar at the bottom center of the screen (44px min height for touch targets). * **Haptic Feedback**: Trigger `navigator.vibrate(200)` when an explosion occurs or a structure collapses. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Build and Crush

Build and Crush is a thrilling multiplayer action game that perfectly combines creative building with explosive destruction. This unique 3D block-based game lets you construct amazing structures using various materials, then watch them crumble under the power of devastating weapons. Whether you're an architect or a demolition expert, this game offers endless entertainment for players who love both creation and destruction.

The game features a colorful, blocky art style reminiscent of popular building games, but with a destructive twist that sets it apart. With its intuitive controls and engaging gameplay mechanics, Build and Crush provides hours of entertainment for players of all skill levels.

Core Features

Dual Gameplay Modes

Build and Crush offers two distinct and equally entertaining gameplay experiences:

Building Mode : Unleash your creativity with an extensive selection of building materials including bricks, granite, glass, wood, and leaves. Each block type comes in multiple variations - columns, stairs, and triangles - giving you incredible flexibility in your designs. You can even place animals to bring your creations to life! Once you've built something amazing, save your creation and share it with the community by making it public.

Destruction Mode : This is where the real excitement begins! Select from random player creations and unleash mayhem with an arsenal of devastating weapons. Blow everything up with TNT, blast structures with powerful cannons, trigger massive earthquakes, or set everything ablaze with fire weapons. For ultimate destruction, deploy the atomic bomb for instant annihilation!

Multiplayer Experience

The game shines in its multiplayer capabilities, allowing you to: - Collaborate with other players in various game modes - Compete against opponents in real-time battles - Defend against zombie invasions - Share and explore community creations - Challenge friends in building and destruction competitions

Extensive Weapon Arsenal

Choose from a variety of destructive tools: - TNT Explosives : Classic block-busting power - Cannons : Precise destruction with style - Earthquake Generator : Shake everything to pieces - Fire Weapons : Watch structures burn dramatically - Atomic Bomb : The ultimate one-click destruction tool

Gameplay Instructions

Building Controls

Master the art of construction with these simple controls: - W, A, S, D : Navigate through your building space - Shift/Space : Fly up and down for better building angles - Left-click : Remove unwanted blocks - Right-click : Place blocks and materials - Additional building tools and options are displayed within the game interface

Destruction Controls

Become a demolition expert using: - Left-click : Select weapons from the bottom toolbar - F : Enter free flight mode for better destruction angles - C : Load another random creation to destroy - Weapon-specific controls appear on screen based on your selection - Customize all key bindings through the Settings menu

Why Play Build and Crush

Build and Crush offers a unique gaming experience that satisfies both creative and destructive impulses. Unlike traditional building games that focus solely on construction, this game provides the thrilling satisfaction of watching your hard work (and others') meet spectacular ends.

The game is completely free to play and runs directly in your web browser without any downloads or installations required. This accessibility makes it perfect for quick gaming sessions during breaks or extended creative building marathons.

The multiplayer aspect adds incredible replay value, as you can constantly discover new creations from the community, participate in collaborative builds, and engage in competitive destruction battles. The upcoming real-time multiplayer modes promise even more exciting gameplay possibilities.

Whether you're a fan of creative sandbox games, action-packed destruction, or multiplayer competition, Build and Crush delivers an entertaining experience that keeps you coming back for more explosive fun!

Frequently Asked Questions (FAQ)