Skip to content

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 11 Oct 22:38
· 17 commits to main since this release
b3ed9b9
  • Netplay owner option for turn-based games: the port whose input the next step uses, read from the sim. The other port's input is fed as neutral on both peers, so the player with the turn never waits for the network, and the other peer plays the turn back as it arrives instead of predicting and rolling it back. owner may return NOBODY for frames that use neither input (a countdown), which never wait either. Craft Ones on a 2-second round trip: the shooter plays every turn with 0 stalls.
  • Netplay heals a gap in the link: each input message carries got (how many of the peer's inputs arrived in a row) and inputs are resent from there, instead of only the last 8 frames. A socket that dropped for 3 seconds used to stall the match forever.
  • connectRelay and connectRelayNative reconnect a dropped socket to the same room and slot (status connecting meanwhile). The relay takes ?slot= for the slot a client had and ?client= so a new socket replaces one it still thinks is open, without the peer hearing that it left. Older relays still pair a returning client, into whichever slot is free.