trevato/cs
Split The code is public; the app answers only to the crew.
cs2 clone
- One map, held as a value: map.ts stops being a singleton so a second layout is possible
- A match you walk out of stops calling itself "in progress" on the leaderboard
- The view comes back: survive a lost WebGL context instead of playing on behind a black canvas
- Every round ends with a damage report: what you did to them, and they to you
- The bomb's blast: a lethal core, falloff, armour, and a death the kill feed can name
- `bun run scripts/measure.ts`: what a hundred seeded rounds say about the round the bots play
- Choose how hard the bots are, before the match and during it
- Play it fullscreen: the view and the touch pad together, on a phone and on a laptop
- The terminal is untestable: make `src/tty.ts` a module with keys in and lines out, and give it its first test
- A bomb you can hear: a beep that quickens, a plant, a defuse, an explosion and the click of an empty gun
- Paused means paused: the match stops while an overlay is up, and comes back where it left off
- Clean: a rendered `.checkdata/game.html` is committed; `serve()` is a top-level side effect
- Utility, part one: a grenade you can throw, and an HE that hurts
- Security: the leaderboard is forgeable — `/api/match` takes any name with no forge identity
- The bomb gets planted: one site for the team, an escort for the carrier and an eye on the clock
- The body stays where it falls: a corpse until the round ends, and a camera that is not inside it
- Sound, sensitivity and a scope you can reach without leaving the match
- One bundle, built at start-up: stop committing static/app.*.js so a merge cannot serve last week's game
- A whole match on a phone: fire while aiming, weapon switch, scoreboard and a way to leave
- Pick the rifle up off the body: a weapon stays in the world when its owner dies
- A radar in the corner: the map, your team, the sites and the bomb
- Hear where they are: pan every world sound, and give players footsteps
- Death and the end of the match read right: spectate the player you are watching, and show the result
- Getting shot tells you: a directional damage indicator, a hurt vignette and a pain sound
- Hold 60 fps on a laptop and a phone: adapt the render scale to the frame time
new above
offline