diff options
| author | srdusr <[email protected]> | 2025-12-04 20:58:00 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2025-12-04 20:58:00 +0200 |
| commit | f48fa830b10d4122d145e9822522d9b71e3f00fa (patch) | |
| tree | 3ab1696b2fae87c49c056bbd56ad1975c3b7ca5d /README.md | |
| parent | 3d26cb457b2023d686136f1c9ee014c210951729 (diff) | |
| download | typerpunk-f48fa830b10d4122d145e9822522d9b71e3f00fa.tar.gz typerpunk-f48fa830b10d4122d145e9822522d9b71e3f00fa.zip | |
Fix the multiplayer race hand-off, fill the field, and polish controls
Standings on the end screen
- A race used to end on your own numbers alone. The end screen now shows the
whole field, filling in live as the slower racers come home.
- Two teardown paths were killing the feed it depends on. app.js tears the
race screen down before rendering the end screen, and that ran both the
inner cleanup (unsubscribing progress and finished) and the outer one
(closing the socket). Your own PlayerFinished arrives from the server a
moment after your finish callback runs, so nobody - including you - ever
got a place. The screen now marks the feed as handed off and leaves it to
the end screen, which drops it on its own teardown.
More racers
- Up to four bots per room instead of two, biased towards a fuller lobby.
With four, picking one of two speed tiers put pairs on top of each other,
so a bot now takes a pace at least 9 wpm clear of every other bot in the
room, drawn from the whole slow-to-fast span. Accuracy tracks speed rather
than being rolled independently, which had been pairing 80 wpm with 88% and
35 wpm with 99%.
Lobby
- The countdown is the whole screen for its three seconds, instead of a small
number under a large disabled button. Quick match says "Finding a race"
rather than offering a room code to share that nobody needs.
Controls
- Keyboard focus was invisible almost everywhere: only two inputs and the
theme toggle had a :focus rule, and four other controls set outline:none
outright. A :focus-visible ring now covers every interactive control,
drawn as a box-shadow so it survives those declarations.
- Disabled buttons no longer keep the filled hover state of a live primary
action, placeholders have a defined colour rather than a per-engine
default, inputs gained hover feedback and a consistent width, and pressed
controls acknowledge the press.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions