Voxel Sandbox

December 4, 2026

Screenshot of the Voxel Sandbox
Screenshot of the Voxel Sandbox

This is a screenshot from one of the first web games I made, specifically a voxel one. I made this after not being allowed to play games (including Minecraft). This post is a recollection of how I built it made from the GitHub commit history and my memories.

So, on the 26th of July, 2026, at 11:08AM, I was bored. I was thinking of something to do to, well, cure my boredom. I then thought about Minecraft, remembered I was not allowed to play it, and decided "Why not make my own?" and so I did.

I used Gemini to create the initial voxel world, which was made up of plain green and brown squares (no proper textures). It was also very slow. After fixing some of the initial performance holes (which included no viewport culling and drawing faces that the viewer could not even see anyway) and generally polishing the game, I created the first commit (note, there was a gap between Gemini's first version and the eventual initial commit of about 1-2 days, so the 26th of July date is a little off, but who cares...?).

Over the next couple of days to weeks I made some changes and added new features, including:

  1. Adding actual 16x16 block textures that I drew in Aseprite (I'd say they turned out okay)
  2. Renaming the project from "Minecraft Clone" to "Voxel Sandbox"
  3. Adding the ability to save/load worlds
  4. Fixing a bug where the randomly generated on start-up terrain seed made world diffs to load incorrectly (i.e. your blocks could be under a hill, or in the sky, etc) by using a specific seed, which was... 12345.
  5. Adding a coordinate display to see where you were (it was here when I realized ThreeJS using Y as the vertical axis, contrary to the usual Z).
  6. Making movement relative to the player's direction (before WASD moved at specifically 90 degrees forward instead of the player's direction)
  7. Adding the ability to click continuously to continue breaking/making blocks
  8. Make continuous clicking slower (earlier it was too fast)
  9. Rename game.html (the main file) to index.html so I could put the game on GitHub pages

And that's it majorly. Also this is my first blog post :)