Getting things ready…
Getting things ready…
PROTOTYPE MECH COMBAT · BROWSER · WORK IN PROGRESS
スチール・レール・ウォーカー
A procedural mech shooter in the browser. Every walker, battlefield and engine whine is generated in code: no imported models, no sound files. Heavy machines with planted feet, hydraulics and recoil, fighting over capture points.
ENTRY 0001 // AUTHOR: YOUBAL LAKANDRI
I have loved mechs since I was a kid. Building them out of paper and cardboard was my favourite thing, and I grew up on Gundam, Evangelion and Gurren Lagann, endlessly fascinated by every machine in them. I always wanted to make something with mechs in it, with my own designs.
This is that attempt. I started it in college, but my skills at the time limited how far it could go. A year later, working with AI made it far easier to build what I had in mind. It still needs more polish, and I'm working on it as it goes.
Each walker is a chassis module that builds its own model from primitives: curved armour, exposed spars, cables, hydraulic cylinders, bolted panels and service markings. These are the actual models, taken out of the game's code and posed by its own animation, now projected as holograms. The roster keeps growing.
The walkers come from rival arsenals, each with its own lore and look: Halden Arsenal Works, KANT Foundry, Lianghe State Heavy Industries. First-generation frames are rounded and mass-produced; second-generation platforms are angular and specialised.
Bipedal walkers plant their feet with two-bone IK. Angular and four-legged spider families have their own gaits, and every foot replants on landing and respawn.
Each chassis owns a passive or a Q ability: turret crouches, deployable shields with a rising back cannon, overdrive runs, a recoiling roof rail. Abilities sync over the network like everything else.
Under the armour is a deterministic machine. The physics never sees a variable frame time, so the same input gives the same result, which is what lets the headless tests assert exact numbers.
Fixed steps under a variable frame rate.
Power and weight units on every chassis.
Top speed at full load; turn rate up to −18%.
Sprint drain and recharge per second.
Exact-match mounts. A gun fits a hardpoint only if the classes match, and an empty or over-budget loadout cannot be applied.
Shots leave from the gun, not the camera, so cover can block what you can see past. Every weapon has an effective range and a maximum one, with damage falling off smoothly in between. Ballistic rounds arc; splash checks cover.
Cooldown, heat, overheat lockout, magazines, reloads and bursts, each a small state machine.
Recoil by weapon mass, camera kick, screen shake and the chassis pushed back on heavy shots.
Battlefields are generated, not modelled: seeded so the same map comes back the same every time, from canyons and craters to countryside, with new ones on the way.
Procedural surface textures and slope-dependent rock. The larger maps stream terrain in culled chunks with distance-based detail and seam skirts.
Trees, walls, buildings and cover are instanced by material and batched by area. Buildings and trunks block movement and shots.
Each map gets a connected waypoint graph that avoids steep slopes and cover, checked by tests that every actor can reach every objective.
Three against three over capture points. Owning an uncontested point earns score; opposing grounded mechs freeze it. Taking an enemy point means neutralising it, then claiming it.
Bots use the same chassis stats, legal randomised loadouts, stamina, sprint, signature abilities, heat, ammo, reloads, armour and projectile code as the player. They path over the map's waypoint graph and get fresh callsigns every match.
Procedural Web Audio only. Real foot plants trigger thuds scaled by chassis weight, layered over motor hum, servo whine and hydraulic hiss, with distance rolloff and a hard voice cap.
Private rooms with a friend, and still no server of its own. Share a code or a link and the lobby fills both teams, with bots in the empty slots.
DIRECT LINK CONNECTION: ROOM · ACCESS MODE: HOST AUTHORITY
Runs movement, bots, weapons, damage, respawns, objectives and scoring.
Sends only controls and aim at 20 Hz, and renders 20 Hz snapshots through a 100 ms buffer.
The public PeerJS broker only introduces the peers. Gameplay travels over encrypted WebRTC.
A dropped guest's mech becomes a bot after a 15 s heartbeat timeout. If the host leaves, the room ends: no host migration yet.
Because the simulation is deterministic, most of the game can be tested without a screen. The headless suites cover movement and IK, swept collision, heat and reloads, damage, weapon-class gating, budgets, abilities, matches, maps, multiplayer state and audio. Every chassis is checked against a reviewed baseline of its model and its motion.
> npm run test:movement test:combat test:loadout test:match > npm run test:map test:quadruped test:match-scene > npm run test:multiplayer test:abilities test:audio test:chassis PASS all registered chassis implement the contract and match the reviewed definitions, models and motion
Browser fixtures check what the headless suites cannot: gaits on real terrain, a full AI round with both teams scoring, the HUD and the touch controls.
The college version was a scene, one mech and movement. I continued it in Tandem, my own workspace for running coding agents: I set the direction and the designs, reviewed every stage, and the agents implemented the models, movement, weapons and interface through iterative feedback.
The deployed build, running in the page. Click to focus it, WASD to move, the mouse to aim, Shift to sprint, Q for the signature, B for the hangar. Phones get a stick and a FIRE button.
The deployed game, running inside this page. Click the frame to focus it, then WASD to move, the mouse to aim and B to open the hangar. The phone view is landscape, the way the game is meant to be held; the on-screen touch controls only appear on a real phone, so here you still play with the keyboard. It is heavy, so it only loads when you ask.
STACK
Measured from the project's own source: 127 files.
Libraries & tools