I'll start by exploring the project structure and installing the 3D library I'll need.
Now I'll build the procedural texture atlas — all block textures are generated pixel-by-pixel in code (no external assets).
Now the block definitions:
Now the voxel world engine — storage, flood-fill lighting, ambient occlusion and chunk meshing:
Now the three hand-crafted maps with structures (village, desert temple, sky castle):
Now the game engine — player physics, pointer-lock controls, block interaction, sky and audio:
Now let me generate thumbnail art for the three map cards:
Now the UI layer — styles, menu, and HUD components:
Now the main App that ties everything together:
The build works. Now let me fix several correctness issues I spotted in the generation and physics code:
Now let me rework the sky-island layout so bridges actually connect island surfaces at the right heights:
Let me do a final verification build and check the complete file listing:
One last robustness touch — a gradient fallback if a thumbnail fails to load:
Cubecraft is built and compiling cleanly. Here's what's in it:
The engine (src/game/)
atlas.ts — every texture is generated in code at runtime: 37 pixel-art tiles (grass, voronoi cobblestone, tree-ring log tops, cracked ice, stacked bookshelf books, glowstone…) painted per-pixel into a 128×128 atlas, plus an isometric block-icon renderer for the UI.
world.ts — a 112 × 72 × 112 voxel world (900k blocks) split into 16³ sections with hidden-face-culled greedy-ish meshing, per-vertex ambient occlusion, flood-fill sunlight + block light (glowstone/lanterns/crystals glow), a fast localized re-light on every edit, and DDA voxel raycasting.
engine.ts — pointer-lock mouse look, AABB collision with auto step-up, gravity/jump/sprint/sneak, swimming with buoyancy + underwater fog, creative flight (double-space or F), break/place/pick with hold-to-repeat, drifting cloud layer, gradient sky dome, and WebAudio-synthesized dig/place/footstep sounds.
The three ready-made maps (maps.ts)
- Emberbrook Village — flattened plains valley with six furnished timber cottages (windows, doors, beds, bookshelves, gabled roofs), a cobblestone well with a roof, lantern-lit crossroads, a wheat farm with an irrigation channel and barn, a watchtower, forest, lake and a dock.
- Sunscorch Temple — a 31-block sandstone step pyramid with a golden capstone, pillared portico, torch-lit corridor, a checkerboard treasure chamber with an obsidian altar, and a hidden shaft into a sealed crypt; plus a palm oasis, wool tent camp, obelisk, colonnade ruins and cacti dunes.
- Aether Sky Castle — nine floating islands over the void: a walled castle with four crenellated towers, a gatehouse, keep with library/throne, sagging lantern-lit rope bridges connecting a farm isle, crystal isle, ruined temple, frozen isle and lookout tower, plus waterfalls pouring into nothing.
The UI
Pixel-font main menu with map cards, a progress-bar loading screen, crosshair, 9-slot hotbar with generated block icons, a 32-block inventory (E), debug overlay (F3), and a pause menu with controls.
Files built: src/game/atlas.ts, src/game/blocks.ts, src/game/world.ts, src/game/maps.ts, src/game/engine.ts, src/index.css, index.html, src/game/icons.ts, src/components/Menu.tsx, src/components/Hud.tsx, src/App.tsx, src/main.tsx