Task #10 follow-up: bump co-op PROTOCOL for the avatar snapshot change
_put_avatar/_read_avatar's per-avatar record changed (one more time field, two int32s, for the upgrade channel's target/progress), so an older partner needs the hello/refused handshake to catch the mismatch and refuse cleanly, rather than misparsing snapshots. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
62324ff4b1
commit
8d84373f54
1 changed files with 4 additions and 2 deletions
|
|
@ -42,8 +42,10 @@ signal ended(reason: String)
|
|||
## Partner: the first full state arrived; the game is on.
|
||||
signal welcomed
|
||||
|
||||
## The wire format: both machines must speak the same one (hello and welcome carry it).
|
||||
const PROTOCOL := 2
|
||||
## The wire format: both machines must speak the same one (hello and welcome carry it). 3: #10
|
||||
## added a time field and two int32s (the upgrade target/progress) to _put_avatar/_read_avatar's
|
||||
## per-avatar snapshot record.
|
||||
const PROTOCOL := 3
|
||||
const SNAP_EVERY := 4 # physics ticks: 15 Hz
|
||||
const INPUT_EVERY := 3 # 20 Hz, when it changed
|
||||
## Seconds: the partner's input goes out at least this often, changed or not.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue