A fan-made Minecraft-inspired 2D sandbox game built with pure HTML, CSS, and JavaScript.
Mine blocks, collect resources, build structures, and explore a procedurally generated world directly in your browser.
- 🌍 Procedural World Generation
- 🌳 Random Tree Generation
- ⛏️ Tool System (Axe, Pickaxe, Shovel)
- 🎒 Inventory System
- 🧱 Block Placement
- 💎 Multiple Ore Types
- ☁️ Animated Main Menu
- 🎵 Menu Background Music
- 📱 Responsive Interface
- ⚡ Vanilla JavaScript (No Frameworks)
- Break blocks using the correct tool.
- Collect resources into your inventory.
- Select blocks from the hotbar.
- Place blocks anywhere in the world.
- Generate a brand new world at any time.
minecraft-js/
│
├── assets/
│ ├── audio/
│ ├── backgrounds/
│ ├── blocks/
│ ├── hotbar/
│ └── items/
│
├── css/
│ ├── style.css
│ ├── blocks.css
│ ├── landing.css
│ └── game.css
│
├── js/
│ ├── landing.js
│ ├── game.js
│ ├── world.js
│ ├── inventory.js
│ └── tools.js
│
├── index.html
└── game.html