Tomatoes fly on the round-over screen as well as the results. Bots'
throws count while their attack is held, as their controls land after
the match reads presses each tick.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- On the results, everyone but the winner splats tomatoes where they
click (bots aim at the winner), with a new splat sound.
- During a match the menu has the item tabs (choosing when the
countdown allows, and otherwise levelling the sandbox's levels for
when you're back), Play (the game's rules) and Settings.
- Pings are shared through the server (protocol 4), so other players'
connection bars show over their heads and on their windows.
- PvP comes into lobbies with your profile and is saved.
- The choice menu opens by itself however the countdown began.
- Knocked-out fighters keep their buttons current, so Ready on the
results toggles once per press.
- The weapon wheel wraps both ways. Readying with empty slots plays
the equip sound for your own fighter.
- Shock Absorber: up to 50% less weapon movement and 33% less
knockback. Only the catalog previews the next level.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The results prompt shows the Menu key instead of Esc, which a browser
uses to leave fullscreen. Escape still works on desktop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Readying in a countdown deals any empty slots at random right away,
and the countdown reads "Starting..." once everyone is ready.
- /pvp toggles PvP in the sandbox, offline or in a lobby.
- Rival windows sit at half opacity (half again when knocked out, and
when hovered), show no item tooltips, and drop to small icons past
two full-size rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HUD:
- Hotbars fit a quarter of the screen, dropping to small then tiny slots
(thinner outlines when tiny), with cooldown bars matching their size.
- HUD elements are drawn on their own layer and composited at one
opacity: hotbar slots are see-through until hovered, the rest fade
while hovered.
- Rival windows fit the right column in at most two rows, shrinking
icons then font, then dropping icons for name, health and ping bars.
- Tooltips number equipped items' slots and say Recoil for weapons that
only push back. Previews use arrows, spread uses degrees.
- Crosshair fills in and shakes with charge, and weapons shake after
firing until their cooldown ends. DPS and speed meters off by default.
Gameplay:
- Dual Wield stacks: each copy fires another recently held weapon from
a fanned off-hand, at its own level's cut.
- Flamethrower: no slowing, smaller fireball with some recoil, and an
airblast that knocks others away.
- Iron Weights slam on any landing faster than a plain fall (platforms
too), stacking radius and damage, and speeding fast falls.
- Stuck arrows are one-way ledges until they fade, matching their
(slightly larger) hit size. Attacks now collide with slopes.
- Halved Tesla Coil, Recoil Coil, Diazepam, Shock Absorber, Feather and
screenshake values.
Art and tools:
- Weapon and trinket icons merged into one sheet each (normal, small,
tiny), cells in catalog order. Grimoire wisps stand upright.
- Fonts gain the degree sign and four arrows, decoded from UTF-8.
- Menu fighter preview walks at quarter speed.
- Unequip from either catalog tab by right click or gamepad.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lobbies hold 16 players and the sandbox 16 fighters, games up to 8. The arena
gets spawns 5-8 (outer ledges and middle platforms) and the race start eight
places. The sandbox adds eight more spawns, each the open spot farthest from
the rest. Rival cards wrap into rows of four, the lobby's player list goes to
two tiny columns when crowded, and the server keeps frame packets to one
datagram. Formatted with clang-format.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Neither does anything with the server running the games. Counting down to play
again moves into the match, so the server and every player agree on it and the
results show it starting again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Session now runs only the room this screen is in. It plays ahead of the server
with its own controls, guesses everyone else's, confirms ticks against the
server's frames and rewinds on a wrong guess. It keeps its lead by playing a
little faster or slower as the server says how early its controls arrive,
resends an edit the server dropped, and checks the server's checksums.
Gone with the peer-to-peer design: the host's decisions, the second arena game,
the view swapping and spectating (to come back through the server).
SAB_NET_STATS logs how it's keeping up.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server answers each player's WebRTC offer (signaled over the socket) with a
connection of its own: frames go on a lossy channel, everything else on a
reliable one, and the socket carries them until both open or where UDP is
blocked. The client's Net now holds one link to the server instead of one per
player. WebRTC takes UDP 47810-47899 by default, set on the command line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server now runs every lobby's sandbox and queued games as rooms, stepped at
the tick rate on one thread. Players send controls ahead of time, late ones repeat
their last, and everyone in a room gets back the controls it played, its events
and checksums. Games start from sandbox queues, players return when they leave,
and play-again moves them to a fresh room. Protocol version 3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Profile, member join/leave and building a fresh game move into the sim library,
and the packet reader and writer into protocol.h, so the server can run lobbies
exactly as clients do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sim holds one whole game (tick, snapshots, checksum) and talks to the screen only
through Cues, which the client's Scene plays and the server ignores. All drawing
moved to scene.cpp. Match takes this screen's wishes as request flags instead of
reading the menu, input and settings. The sim library builds without SDL and the
server links it, ready to run games itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>