Add vote-based events #140
No reviewers
Labels
No labels
animation
audio
blocked
bug report
controversial
documentation
easy
feature request
hard
medium
multiplayer
physics
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
elsie/liuverse!140
Loading…
Reference in a new issue
No description provided.
Delete branch "events"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds vote-based events. Hold
Nto open a radial picker (like theZemote wheel), pick an event, and it starts once a second peer votes yes — a lone player can never start one. Voters teleport to their starting spots on the countdown; everyone else keeps free-roaming, watches, and cannot touch the board.How it works
liuverse-server::events). The catalog and the starting spots are derived from the baked campus (liuverse-world::event), so both ends build the same events from the same file with no extra message.Events
Positions are read from the poses already on the wire, so nothing new rides the wire for scoring.
Wire
Adds
ClientMsg::{Vote, EventScore},ServerMsg::{EventState, EventScores}and aneventfield onWelcome. New server tags are undecodable by an older client, so this is a breaking wire change: it drives the batch's single major bump to 2.0.0.Testing
just checkpasses. New tests cover the vote/quorum rules, one vote per player, the phase clock, participant-only scoring, the race, the hill hold, the seeker tagging a hider, and that a night event dims the server sky and restores the daytime it found. Visuals were not tested; the seeker blackout is drawn onOrder::Foreground, so it covers the HUD windows too.Merged
Merged into
mainas part of the batch (order: #136, #142, #137, #138, #141, #139, #140, #143). The batch carries a single major bump,1.1.2→2.0.0, so this branch's own bump commit was dropped when it was rebased;PROTOCOL_VERSIONstays 2.assets/baked/valla.binwas rebaked once at the end of the batch.f39a3820c3to5c97466f17