Mine Blocks - 2D Minecraft-Style Sandbox Game

Seele01-Flash
By
Mine Blocks is a free 2D Minecraft-inspired sandbox game featuring survival and creative modes. Build, craft, and explore pixelated worlds with friends in this browser-based adventure that requires no downloads.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Mine Blocks: Pocket Edition (2.5D Voxel Sandbox)**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Side-Scrolling Voxel Art. Use 3D Cube geometries (`THREE.BoxGeometry`) but arrange them on a 2D vertical plane (X/Y axis) to simulate the "Mine Blocks" flat aesthetic while leveraging WebGL depth. * **Camera:** Use an `OrthographicCamera` locked to a side-view to maintain a pixel-perfect, flat look. The camera must follow the player smoothly. * **Textures:** Use a "Texture Atlas" approach (low-res pixel art textures mapped to UVs) to distinct block types: Dirt, Grass, Stone, Wood, Leaves, and Bedrock. * **Lighting:** Implement a basic day/night cycle using `THREE.AmbientLight` (varying intensity) and a `THREE.DirectionalLight` (Sun/Moon). * **Optimization:** **Critical for Mobile:** Use `THREE.InstancedMesh` for rendering the terrain chunks. Do not create individual meshes for every block. Implement a chunk loading system that only renders blocks within the camera's viewport + a small buffer. * **Character:** A simple composite boxy model (Head, Body, Arms, Legs) representing the player, animated with simple rotation for walking/mining. ### 2. Audio Requirements * **BGM:** A calm, procedural piano or ambient synth track that loops seamlessly (inspired by C418), changing slightly when the sun sets. * **Sound Effects (SFX):** * **Mining:** Pitch-varied "crunch" or "tink" sounds depending on block material (Dirt vs. Stone). * **Placement:** A soft "thud" or "pop" when placing a block. * **UI:** A high-pitched "click" when selecting items in the hotbar. * **Damage:** A classic "Oof" sound for player hurt. ### 3. Gameplay Loop * **Core Mechanics:** The player exists in a 2D grid world. Gravity applies. * **Mining:** Holding input on a block breaks it over time (visualize cracking), dropping a lootable "item" sprite. * **Building:** Selecting a block from the Hotbar and tapping empty space adjacent to an existing block places it. * **Crafting (Simplified):** A basic 2x2 crafting grid accessible via UI to convert Wood Logs -> Planks -> Sticks -> Pickaxe. * **Survival Mode:** The player has a health bar. Falling from heights or touching "Lava" blocks reduces health. The goal is to build a shelter before "Night Mode" activates. * **Creative Mode Toggle:** Include a developer flag to toggle "Creative Mode" (Instant block breaking, double-tap jump to toggle flying/gravity-off). ### 4. Mobile Controls & Interaction * **Movement (Left Hand):** A Virtual Joystick or D-Pad overlaid on the bottom-left screen. * Horizontal drag: Move Left/Right. * Upward flick/button: Jump. * **Interaction (Touch Input):** * **Mining:** Touch and **Hold** anywhere on the game world (Raycasting from touch coordinates) to mine the specific block under the finger. Display a circular progress bar under the finger. * **Placing:** Single **Tap** on the game world to place the currently selected Hotbar item. * **UI Layout:** * **Hotbar:** A row of 5-8 slots centered at the bottom of the screen. Selected slot should be highlighted. Touching a slot selects it. * **Inventory Button:** A 44x44px button in the top-right corner labeled "INV" or with a backpack icon. * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(20)` when a block breaks or is placed. * **Visual:** When a block is touched, render a wireframe "selection box" around it to confirm target. ### 5. Technical Output Language * Please write all code and comments in **English**. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Mine Blocks

Mine Blocks is an exciting 2D sandbox adventure that brings the beloved Minecraft experience to a side-scrolling format. This free browser game combines classic block-building mechanics with fresh 2D gameplay, offering unlimited creative possibilities in a pixelated world. Whether you're a survival enthusiast or creative builder, Mine Blocks provides hours of engaging gameplay without requiring any downloads or installations.

Originally launched as a Flash game, Mine Blocks has been completely rebuilt in HTML5, ensuring smooth performance across all modern devices. The game maintains the charming pixelated visual style that fans love while introducing unique mechanics that set it apart from traditional 3D sandbox games.

Core Features

Dual Game Modes

Mine Blocks offers two distinct gameplay experiences:

Survival Mode challenges you to gather resources, craft tools, and build shelter while defending against hostile mobs like creepers, spiders, and zombies. Collect wood, stone, and other materials to craft essential items such as wooden axes, pickaxes, and weapons. Resource management and strategic building are crucial for surviving the dangerous nights.

Creative Mode provides unlimited resources and complete freedom to build whatever you can imagine. Fly around the map using double-tap controls, place any blocks or items instantly, and create epic structures without worrying about health or hostile creatures. This mode is perfect for architectural projects and experimenting with game mechanics.

Multiplayer Scavenger Hunt

Join friends online in the exciting scavenger hunt mode, where teams race to find all 10 hidden items within 8 minutes. This competitive multiplayer feature adds a thrilling social element to the traditional sandbox gameplay.

Advanced Building System

The game features a comprehensive crafting system where materials combine to create new items. Use wood and stone to craft tools, combine different resources for advanced equipment, and discover countless crafting recipes. The inventory system allows you to organize materials and equip armor for enhanced survival capabilities.

Gameplay Mechanics

Exploration and Mining

Explore diverse biomes filled with different materials, creatures, and challenges. Mine deep underground to discover rare ores and resources, or stay on the surface to gather wood and build above-ground structures. The 2D perspective offers a unique exploration experience compared to traditional 3D sandbox games.

Creative Building

With limitless building possibilities, you can construct anything from simple shelters to elaborate cities and monuments. The intuitive block-placement system makes it easy to bring your architectural visions to life, whether you're recreating famous landmarks or designing original creations.

Operation Guide

Basic Controls

  • WASD Keys : Move your character in all directions
  • Double-tap A or D : Sprint for faster movement
  • Click and Hold : Collect resources from blocks and creatures
  • Right-Click : Place selected blocks in empty spaces
  • E Key : Open inventory for crafting and equipment management
  • Right-Click and Hold : Use items or consume food

Essential Tips for New Players

  1. Start with basics : Collect wood first to craft basic tools
  2. Build shelter early : Protect yourself from nighttime monsters in survival mode
  3. Use right tools : Different tools work better on specific materials
  4. Manage inventory : Keep essential items in your hotbar for quick access
  5. Experiment with crafting : Try combining different materials to discover new recipes

Why Play Mine Blocks

Accessibility and Convenience

  • Completely free with no hidden costs or premium content
  • No download required - play instantly in your web browser
  • Cross-platform support - works on computers, tablets, and smartphones
  • Regular updates ensure fresh content and improved features
  • Save functionality preserves your creations and progress

Unique 2D Experience

While maintaining the core appeal of block-building games, Mine Blocks offers a fresh perspective with its side-scrolling 2D format. This approach makes the game more accessible to players who might find 3D environments overwhelming while still providing the depth and creativity that sandbox fans expect.

Community and Multiplayer

Connect with friends in multiplayer mode, share creations, and compete in scavenger hunts. The game fosters a creative community where players can showcase their building skills and collaborative projects.

Perfect for All Ages

The simple controls, family-friendly content, and scalable difficulty make Mine Blocks suitable for players of all ages and skill levels. Whether you're introducing children to sandbox games or looking for a relaxing creative outlet, this game delivers an enjoyable experience for everyone.

Frequently Asked Questions (FAQ)