Play it: https://fsystemweb.github.io/cybersmash-II/
A comedic 3D browser game, a love letter to the "wreck the car" bonus stage of early-90s arcade fighters. A sweaty harbor salesman can't sell his ugly, angular, "bulletproof" electric pickup, the CYBERCHUNK, so he'll pay anyone who can smash it with their bare hands in under 40 seconds.
The whole game is a single index.html: three.js (pinned, via an import map) is the only dependency.
There is no build step and there are no asset files. Every model, texture, letter and sound is generated at runtime.
| Action | Keyboard | Touch |
|---|---|---|
| Move | ← / → or A / D | ◀ ▶ |
| Jump (hold ←/→ for a forward/back arc) | ↑ or W | ▲ |
| Crouch (hold) | ↓ or S | ▼ |
| Punch (fast, 1× damage) | J | PUNCH |
| Kick (slower, longer reach, 1.5×) | K | KICK |
| Special move (3×, 3 s cooldown) | L | SP (glows when ready) |
| Pause (resume / restart / quit) | P or Esc | ❚❚ |
| Start / confirm / skip | Space / Enter, or click | tap the screen |
| Menus | arrows, or hover + click | tap a fighter / button |
| Back | Esc | |
| Mute | M | speaker button |
| Hitbox overlay (debug) | H |
On-screen buttons appear automatically on touch devices. During a round they show the full pad; in menus everything is tapped directly (tap a fighter to pick it, tap it again to fight). Switching tabs mid-round pauses the game.
- Title → Select → VS → Fight → Results.
- The camera swoops around the harbor while the salesman makes his pitch, then SALE 1… HAGGLE!
- You have 40 seconds. Hits only land when the truck is in range (kicks reach further). The truck
rocks on its suspension, slides back, and goes through four visible damage stages:
- the "armored" glass cracks on the very first hit,
- panels dent (real vertex displacement),
- the hood, doors, tonneau and windshield fly off with physics,
- the frame collapses into a pile around a smoking, sparking battery.
- Wreck it in time for PERFECT! plus a time bonus (remaining seconds × 1000). If the clock runs out it's SALE CANCELLED: your fighter strikes their defeat pose and the salesman celebrates.
- The results screen shows score, time remaining and hits landed, with your fighter posing on a rotating pedestal. You can retry or pick another fighter. The best score is kept for the session.
Punch and kick change with your stance, the way they do in classic side-view fighters:
| Punch (J) | Kick (K) | |
|---|---|---|
| Standing | jab/cross, 10 | front kick, 15 |
| Crouching | low jab, 8 (fastest) | leg sweep, 12 (longest reach) |
| Jumping | diving punch, 12 | flying kick, 18 |
Jumps follow a fixed arc. You get one attack per jump, and landing cuts it short, so time it on the way down. Specials (L) only work from the ground.
Scoring: every hit is worth damage × 10 points. The clock freezes while a special move plays.
All characters are affectionate parody caricatures with parody names. The jokes are meant to be funny, never mean.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
- Rendering: three.js
0.160.0. The 3D scene renders into a 640×360 render target, then a fullscreen pass upscales it with nearest-neighbour sampling and adds ink outlines (edges found from the depth buffer), a sunset haze that pushes the background back, an ordered-dither posterise, scanlines and a vignette. Materials are 3-band toon shading with an injected hard rim light, and shadows are blob shadows. The 16:9 stage is letterboxed to any window, and devicePixelRatio is capped at 2. - Gameplay: 2.5D. Everything moves on one side-view plane (X) with 1D hitbox/hurtbox ranges, and the simulation runs on a fixed 60 Hz timestep (hit-stop and slow-mo scale it).
- Models: built from primitives. Static scenery is merged into a few vertex-coloured meshes. The
crowd, containers, seagulls, debris, smoke, sparks and shadows are
InstancedMeshes. Each fighter's rig merges each joint into one mesh. The truck is made of subdivided quad panels, so hits can dent it. - Textures and text: all
CanvasTexture(cracked glass, plaid suit, billboard, comic bursts, the FIRED! stamp, the chat bubble). The lettering uses an original 5×7 pixel font defined in the source. - Audio: synthesised with the Web Audio API (oscillators, filtered noise, envelopes). The context starts on the first input. M mutes.
- Budget: at most about 90 draw calls in any state (the target is under 150). Shaders are pre-compiled at load, idle particle pools skip work, and everything removed from the scene is disposed.
python3 -m http.server 8000 # or: npx http-server
# open http://localhost:8000Dev tooling only (the game itself has no dependencies besides three.js):
npm install && npx playwright install chromium
npm run smoke # headless Chromium (SwiftShader WebGL): full flow, real input, bot match,
# time-out path, audio, mobile touch; fails on any console/WebGL error
npm run specials # freezes each special mid-move, checks it deals 3x punch damage
node tests/record.mjs # re-records screenshots/cybersmash.gif deterministically
node tests/smoke.mjs --url https://fsystemweb.github.io/cybersmash-II/ # test the live siteAn original work made for fun. It takes inspiration only from the general feel of early-90s arcade fighters (side-view fights, chunky HUD, dramatic VS screen, the bonus-stage concept) and copies no existing game's characters, sprites, stages, fonts, logos, music, sound effects or announcer lines. The fighters and the truck are parodies, and no real products or people were harmed.
















