Tailwind v4 + Vite, and Three.js is installed. Now I'll build the game. First, update index.html with a DOS title and the VT323 pixel font, then the DOS-themed CSS.
Now the PC-speaker sound engine for authentic DOS bleeps:
Now the pixel art factory — all sprites hand-authored as character matrices, like real 1994 sprite data:
Now the world generator — procedural island with shroud of war, dithered DOS ground rendering, and radar:
Now the Three.js engine — low-res render target (chunky pixels), tilted orthographic C&C camera, CRT shader with day/night tinting, merged static-sprite chunks, particles and glows:
Fixing two unused variables:
Both fixed. Now the core game logic — survival systems, C&C-style orders, combat, day/night cycle, enemy AI, crafting, building:
Fixing a typo (and$ instead of &&):
game.ts is clean now. Now the final piece — App.tsx with the full DOS interface: boot sequence, C&C sidebar (radar, resources, craft/build), status bar with ASCII gauges, and overlays:
Fixing the private method call and a stray character in the flavor text:
Let me clean up the unused helpOpen state, then build:
All edits applied. Now let's build:
Build passed. Now let me fix three runtime quality issues I spotted:
- Shared material bug: wall damage tint uses cached shared materials — one damaged wall would dim all walls.
- Shroud look: trees would float on pure-black unexplored tiles — dim the terrain instead of black (StarCraft-style shroud).
- Boot screen: click should skip the boot text too.
Both edits applied. Now the dimmer-shroud for unexplored terrain in world.ts:
Let me also fix the ASCII logo (double backslashes would render oddly) and disable the sidebar while dead:
Build is green. Two final gameplay polish fixes: cancel mining orders when lacking a pickaxe (avoids an annoying error loop), and clear stuck keys on window blur:
Build succeeds. The game is complete. Here's what I shipped:
VALDOS.EXE — A Viking Survival Saga (C) 1994
A Valheim-style survival game rendered in Three.js but dressed as a Command & Conquer DOS game from 1994 — fat pixels, beveled olive sidebar, PC-speaker sound, and a full CRT treatment.
The DOS/C&C Presentation
- Boot sequence: fake
C:\VALDOS> DOS shell with memory checks, driver initialization, and a VALHEIM.EXE launch into a title screen
- C&C sidebar: TACMAP radar (with shroud of war), SALVAGE resource counts, FABRICATE crafting menu, CONSTRUCT building grid with green/red placement previews — all with chunky beveled DOS panel borders
- CRT shader: the 3D scene renders to a 640×360 framebuffer, then a fullscreen post pass applies scanlines, aperture grille, vignette, barrel curvature, flicker, and day/night color grading
- PC speaker audio: square-wave bleeps and noise bursts — chop thunks, mine tings, craft jingles, dawn/dusk fanfares
- EVA-style message ticker,
INSUFFICIENT RESOURCES, CONSTRUCTION COMPLETE, ESTABLISHING BATTLEFIELD CONTROL — full C&C flavor
The Valheim Survival Loop
- Procedural island: meadows, black forest, shores, mountains — seeded value-noise generation with hand-dithered tile textures and 2-frame animated water
- Gather: punch pines for wood, collect branches/flint, mine boulders, pick berries, hunt boars for meat
- Craft & build: flint axe → workbench → pickaxe, wood walls, campfire — grid placement with range/terrain rules
- Survive: hunger, stamina, health regen, resting by the fire, cooking raw meat
- Day/night cycle: dusk warnings, then greylings (and later, brutes) emerge at night to siege your walls — they burn at dawn
- Death: Valheim-style "YOU DIED" screen with days survived and kills, R to respawn
Controls
WASD/arrows move, Shift sprint, left-click issues C&C-style orders (auto-approach and chop/mine/attack), E interact, Space attack, 1/2/3 tools, F eat, G cook, Esc cancel/pause, M mute.
Files built: index.html, src/index.css, src/game/sfx.ts, src/game/sprites.ts, src/game/world.ts, src/game/engine.ts, src/game/game.ts, src/App.tsx