1. Project goal
Build an original 3D browser game in which the player forges a Japanese sword from a glowing billet of steel. A run goes through four steps: forging on the anvil with a timing mechanic, drawing out and shaping the blade, quenching at the right heat, and polishing until the temper line (hamon) appears. At the end the blade is rated, named and stored. In one sentence: hammer, shape, quench and polish your own katana and see how good it is.
2. Visual style
Dark, warm traditional forge: near-black space lit by orange embers and glowing metal, soft depth of field on the background, sparks and steam. Cooler blue light from a lattice window at the water tank. Polished steel with a visible hamon in the close-up. UI is restrained Japanese: cream and gold serif type, a thin step bar, orange accents.
Reference: author video 00:00 title over the forge, 00:03 timing rings on the billet, 00:04 perfect hit, 00:06 shape panel, 00:08 quench gauge over the coals, 00:09 steam over the water tank, 00:11 polished blade with hamon, 00:13 result card.
3. World and scene
One forge with a camera setup per step: anvil (oblique top-down), hearth and coal box, water tank, and a blade close-up for polishing. Before forging, a design screen lets the player pick blade type, hamon pattern, construction and groove. After the result, a storehouse shows all forged blades and the smith's rank progresses from apprentice upward.
4. Asset list
Each item is a separate replaceable model in a named slot.
- anvil_set: anvil block on a base, hammer, tongs.
- forge_set: hearth, bellows, coal box, wooden water tank, lattice window, tool rack.
- blade: procedural blade mesh driven by length and curvature, with tsuba, handle wrap and fittings as swappable parts.
- storehouse_set: sword rack or display stands for finished blades.
Keep procedural: blade shaping, hamon texture, heat colour, sparks, steam, rings, gauges and UI.
5. Gameplay and feedback
Forging: a ring shrinks onto a target ring; tap when they overlap. Perfect, good and miss change the blade quality and the billet visibly flattens with each hit. Shaping: lengthen, shorten, curve and straighten buttons change blade length and curvature in centimetres. Quenching: the heat colour drops along a gauge; plunge into the water at the marker for the best result, with a hiss and steam. Polishing: rub or hold to fill a polish meter and reveal the chosen hamon. Result: sharpness, toughness and beauty scores, a total score, a generated blade name, a traditional grade, and skill points toward the next smith rank.
6. Technical implementation
Use three.js with a single WebGL canvas and an HTML overlay. Build the blade as a parametric extruded profile so length and curvature can change live. Draw the hamon as a generated texture or shader mask revealed by the polish value. Use GPU particles for sparks and billboard sprites for steam. Save blades and smith rank in localStorage; support touch and mouse.
7. Completion criteria
Must work: the design screen with blade type and hamon choice, all four steps with their mechanics, live blade shaping, quench timing, hamon reveal, result scoring with name and grade, storehouse, smith rank progression, sound toggle, retry. Match the reference views listed above. Deliver editable source and a list of all replaceable model slots.