Block Sandbox

Seele01-Flash
By
Block Sandbox is an exciting 2D sandbox building game where creativity knows no bounds. Design pixelated worlds, place heroic characters, and construct amazing structures using unlimited building blocks.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Block Sandbox: Voxel Warfare**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Voxel/Minecraft-inspired aesthetic. Use Low-poly 3D cubes (`THREE.BoxGeometry`) for everything. The view should be a **2.5D side-scrolling perspective** (using an Orthographic Camera or a fixed-depth Perspective Camera) to mimic the "2D sandbox" description while maintaining the 3D blocky look of the screenshot. * **Characters**: * **Hero Unit**: A blocky human character composed of separate meshes (head, torso, limbs). He should be equipped with a large, green pixelated Bazooka/RPG. * **Enemy Units**: Green, blocky Zombies with simple walking animations (swinging arms/legs). * **Environment**: * **Terrain**: A grid-based system using textured cubes (Grass top, Dirt sides). * **Background**: A dark blue night sky gradient (`THREE.Color`) with scattered white pixel stars. * **Effects**: **Explosions** are critical. When a rocket hits, spawn a burst of orange, red, and yellow small cubes (particles) that fly outward with physics, accompanied by a screen shake effect. * **Optimization**: Use `InstancedMesh` for static terrain blocks to maintain high FPS on mobile devices. Combine unit geometries where possible. ### 2. Audio Requirements * **BGM**: An energetic, fast-paced **8-bit / Chiptune action track**. It should feel retro but intense, suitable for a battlefield. * **Sound Effects (SFX)**: * **UI**: A high-pitched "blip" when selecting items from the toolbar. * **Placement**: A satisfying "pop" or "thud" sound when placing a block or unit. * **Combat**: A heavy "whoosh" for rocket travel, a loud synthesized "CRASH/BOOM" for explosions, and retro "groans" for zombies. ### 3. Gameplay Loop * **Core Mechanic**: This is a creative sandbox with auto-battler elements. 1. **Select**: The player selects an item from the inventory (Dirt Block, Hero, Zombie, TNT). 2. **Place**: The player taps on the grid to spawn the entity. 3. **Simulate**: * **Heroes** automatically detect the nearest Zombie and fire their Bazooka (projectile with gravity arc). * **Zombies** walk relentlessly toward the nearest Hero or structure to attack. * **Physics**: Blocks are static, but characters have gravity. Explosions destroy blocks and knock back characters. * **Goal**: There is no "Game Over." The fun comes from setting up scenarios (e.g., building a castle, spawning 50 zombies, and then spawning a Hero to defend it) and watching the chaos unfold. ### 4. Mobile Controls & Interaction * **Camera Control**: * **Two-finger Pan**: Move the camera view left/right/up/down. * **Pinch**: Zoom in/out. * **Interaction**: * **Raycasting**: Use `THREE.Raycaster` to map touch coordinates to the 3D grid. * **Tap-to-Place**: Single tap places the selected object. * **Long-Press**: Delete block/unit (or switch to a "Delete" tool in UI). * **UI Layout (Mobile Optimized)**: * **Orientation**: Landscape mode preferred. * **Inventory Bar**: A fixed horizontal scrollable bar at the bottom of the screen. Icons must be large (min 48x48px) and easy to tap. * **Active State**: The selected tool should have a clear high-contrast highlight (e.g., yellow border). * **Feedback**: * **Haptic**: Trigger `navigator.vibrate(20)` on block placement and `navigator.vibrate([50, 50, 50])` on explosions. * **Visual**: A semi-transparent "ghost" block should appear under the finger/cursor to show where the object will be placed before tapping. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Block Sandbox

Block Sandbox is a captivating 2D sandbox game that puts the power of creation directly in your hands. This pixelated adventure combines the beloved block-building mechanics of classic sandbox games with intuitive 2D gameplay, making it accessible to players of all skill levels. Whether you're a seasoned builder or new to sandbox games, Block Sandbox offers an engaging platform for unleashing your architectural imagination.

Core Features

Unlimited Creative Freedom

The game provides an extensive library of building blocks, allowing you to construct anything from simple houses to elaborate fortresses. The pixelated art style gives your creations a charming retro aesthetic while maintaining modern gameplay smoothness.

Character Customization System

Place pixelated heroes throughout your world and equip them with: - Powerful Weapons : Arm your characters with swords, guns, and magical items - Protective Armor : Choose from various armor sets to customize appearance and stats - Unique Appearances : Create diverse characters to populate your sandbox world

Diverse Building Options

Construct multiple types of environments: - Majestic Castles : Build towering fortifications with walls, towers, and battlements - Bustling Towns : Create vibrant communities with houses, shops, and public spaces - Epic Battlefields : Design action-packed combat arenas for your characters - Fantasy Landscapes : Craft magical realms limited only by your imagination

Cross-Platform Compatibility

Enjoy seamless gameplay across all your devices. Block Sandbox runs perfectly on desktop computers, smartphones, and tablets, ensuring you can build and create wherever inspiration strikes.

Game Mechanics

Simple Yet Powerful Controls

The intuitive mouse-based interface makes building effortless. Simply click and drag to place blocks, characters, and items exactly where you want them. The streamlined control scheme ensures that complex creations remain achievable for players of any experience level.

Progressive Building System

Start with basic structures and gradually develop more sophisticated designs as you become familiar with the game's mechanics. The learning curve is gentle, allowing new players to create impressive builds while providing depth for experienced constructors.

Operation Guide

Basic Controls: - Mouse Click : Select building blocks, characters, and items from the toolbar - Drag and Drop : Place selected elements anywhere in your sandbox world - Right-Click : Access additional options and item properties - Scroll Wheel : Zoom in and out for detailed work or overview planning

Building Tips: 1. Start with a foundation plan before adding decorative elements 2. Experiment with different block combinations for unique textures 3. Use characters to bring life to your creations 4. Save frequently to preserve your masterpieces

Platform Support

Block Sandbox is completely free-to-play and requires no downloads or installations. Access the game instantly through any modern web browser on:

  • Desktop Computers : Windows, Mac, and Linux systems
  • Mobile Devices : iOS and Android smartphones and tablets
  • Web Browsers : Chrome, Firefox, Safari, Edge, and others

Why Play Block Sandbox

Perfect for All Ages

The game's family-friendly design and intuitive mechanics make it suitable for children and adults alike. It's an excellent tool for developing spatial reasoning, creativity, and problem-solving skills while having fun.

Stress-Free Gaming

Unlike competitive games, Block Sandbox offers a relaxing, pressure-free environment where you can build at your own pace. There are no time limits, enemies to defeat, or complex objectives—just pure creative expression.

Educational Value

The game naturally teaches architectural concepts, spatial relationships, and design principles. Players develop planning skills and learn to visualize 3D structures in a 2D environment.

Community and Sharing

Share your creations with friends and family, inspiring others and getting feedback on your designs. The game fosters a sense of accomplishment and pride in your digital constructions.

Endless Replayability

With unlimited building blocks and infinite possibilities, Block Sandbox offers countless hours of entertainment. Each play session can result in completely different creations, ensuring the game never becomes repetitive.

Frequently Asked Questions (FAQ)