Skip to content

About

Pixel-art mining & crafting game: a 2D sprite miner in a 3D voxel world. Runs in the browser.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Pixeldelve

A small pixel-art mining and crafting game. A flat 2D sprite miner explores a 3D voxel island: punch trees, craft tools, dig into caves, fight slimes and work your way up to a diamond pickaxe.

Play it: https://mosab-nasrallah.github.io/pixeldelve/

Pixeldelve

The Prompt

make pixel art game style that has crafting combat and mining sort of like Minecraft in 2D in a 3D world

Done using claude Opus 5.5 in 14 minutes

Features

  • A new random island every game, with hills, beaches, caves, trees, coal, iron and diamonds
  • Hold-to-mine blocks with a tool tier system (wood → stone → iron → diamond)
  • Compact crafting list with Workbench and Furnace stations
  • Underground cutaway view so you never lose sight of your miner
  • Slimes to fight, swords to craft, lanterns to light caves
  • A goal tracker that walks you through the progression
  • Autosaves in your browser; touch controls on phones and tablets

Controls

Action Keys
Walk W A S D
Jump Space
Mine / attack Hold left mouse button
Place block Right mouse button
Pack & crafting E or Tab
Pick hotbar slot 1–9 or mouse wheel
Turn camera ← → or middle-drag
Zoom ↑ ↓ or Shift + wheel

Run it yourself

It is a single HTML file with no build step. Clone the repo and open index.html in a browser, or serve the folder:

python -m http.server 8000

Then visit http://localhost:8000. It needs an internet connection the first time to load three.js and the pixel fonts from CDNs.

Tech

  • three.js r128 for rendering, drawn at 1/3 resolution and upscaled for crisp pixels
  • All textures, sprites and icons are generated in code at startup, so there are no image files
  • Chunked voxel meshing with face culling, ambient occlusion and simple sky and lantern lighting

License

MIT

About

Pixel-art mining & crafting game: a 2D sprite miner in a 3D voxel world. Runs in the browser.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages