You are browsing as a guest. Sign up (or log in) to start making projects!

10h 56m 59s logged

Devlog — Minecraft Web EditionOkay, doing this. A Minecraft-style game that runs in the browser. No art files, no build tools — one HTML page, one JS file, a free 3D library. If it can’t run by just opening a file, I’ve overcomplicated it.Day 1: Nothing shows up on screen yet, on purpose. First I picked an older, stable version of the 3D library so I could load it with one line and skip all setup. Then I built a tiny messaging system — different parts of the game (menus, sound, the world) send out “this happened” messages instead of being tangled together directly. Next, a random number generator that gives the same results every time for the same starting seed, so a world can be rebuilt exactly. The part I was nervous about was the terrain math — what turns randomness into hills that look like hills instead of jagged noise. I tested it with plain numbers before touching any graphics, since debugging math and a broken 3D scene at once sounded miserable. Last thing: one big list of every block type — solid or not, see-through or not, what color. Almost everything else reads from that list.Day 2: Time to make it look real. There are zero image files anywhere in this project — every texture is drawn straight onto a canvas by code and combined into one sheet the game pulls from. A few blocks needed fixes, like leaves needing to look solid, and water, glass, and ice needing to be see-through. The hardest part: deciding which faces of each block to draw. Drawing every side of every block would grind the game to a halt, so each block checks its six neighbors and only draws a face if something isn’t blocking it. Water got its own see-through layer so it blends properly. Then movement — checking each direction one at a time, stopping you before you’d walk into a block — and controls: mouse locks for looking around, keyboard to move, scroll to switch items, click to break or place. By the end of day two I could walk around a world that felt real. Biggest win of the whole project.Day 3: Making it feel alive, not just technically working. Added simple creatures that wander around, an inventory, and crafting that checks what you’re holding against a recipe list. Sound turned out fun, also file-free — every effect is generated on the spot, tone and pitch shifting by what you’re breaking, and even the background music is just random soft notes playing quietly during the day. Genuinely proud of that one. Set up lighting so the world doesn’t look flat, and made every menu a simple on-screen box instead of building it into the 3D world — way easier, and you can’t tell the difference playing it.Honest note, caught while writing this: somewhere along the way I left a leftover scrap of code in the HTML file. Won’t break anything, but it’ll show up as stray text on the page. Still on my list to delete.

1
304

Comments 3

@Mrkalidas

My first project please like and cmnt

@Kinza

It looks amazing! I want to play it! (●’◡’●)

@Mrkalidas

Thanks