Task #23: remove the zone banner and the message feed
The user asked to drop the pop-up status lines, including replies to the player's own actions. - farm.tscn (edited as text): the ZoneBanner and Hud/ToastFeed nodes, their ext_resources, and FarmSim's toasts export are gone. zone_banner.gd and toast_feed.gd (with their .uid files) are deleted. - FarmSim: no toast wiring, no arrival_message, no outside-the-fence or sunrise lines. Main: no lobby-failure or microphone lines; _set_hud only hides Hud. CampaignDebug: F2 no longer toasts (the F1 readout shows the scenario). - CoopSession: the host no longer sends "toast" or "arrived" events, and the partner no longer handles them. The joined/left/version lines are gone (the partner's main menu still says why a session ended). A refused build request still sends the error sound. PROTOCOL stays 5: the other messages and records are unchanged, and _apply_event ignores unknown kinds, so mixed builds still work together. - BuildMode.message is removed (no test listens to it). Interactions.message and UpgradePanel.message stay because tests listen to them. - test_farm_layout: the banner checks are removed. - RULES.md, README.md, COOP.md, and LAYOUT.md no longer describe the banner or toasts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6a9575dfe4
commit
1e91ccf594
18 changed files with 37 additions and 286 deletions
|
|
@ -97,7 +97,7 @@ it acts.
|
|||
|
||||
| Piece | File | Does |
|
||||
|---|---|---|
|
||||
| `CoopSession` | `game/scripts/coop_session.gd` | The protocol, on both sides: the welcome, snapshots in packed bytes 15 times a second (the clock, both scarecrows with the weapon in hand and the bomb's recharge, animals, shots, and the enemies that are due, in 16-byte records), the farm state and the loot when they change, news in order (phase changes, the end, sounds, toasts, loot news, breaches, fear bursts, attacks, pumpkin bombs thrown, gather popups), and the partner's input (with its pick of weapon) and requests. The partner's own weapons only aim and show their motion: the host attacks for it, so nothing is hit twice |
|
||||
| `CoopSession` | `game/scripts/coop_session.gd` | The protocol, on both sides: the welcome, snapshots in packed bytes 15 times a second (the clock, both scarecrows with the weapon in hand and the bomb's recharge, animals, shots, and the enemies that are due, in 16-byte records), the farm state and the loot when they change, news in order (phase changes, the end, sounds, loot news, breaches, fear bursts, attacks, pumpkin bombs thrown, gather popups), and the partner's input (with its pick of weapon) and requests. The partner's own weapons only aim and show their motion: the host attacks for it, so nothing is hit twice |
|
||||
| `CoopLink`, `GDSyncLink` | `coop_link.gd`, `gdsync_link.gd` | The wire: GD-Sync remote calls, reliable or not, large messages compressed; the packing helpers; a loopback pair for tests |
|
||||
| `CoopLobby` | `coop_lobby.gd` | GD-Sync's LAN and online modes, lobbies, join by address |
|
||||
| `RemoteControls` | `remote_controls.gd` | The partner's buttons as the host sees them: held state, press counts (a lost packet never loses a press), aim, build mode, menus; its input record, 39 bytes |
|
||||
|
|
@ -147,8 +147,8 @@ What keeps co-op small:
|
|||
`game/tools/net_budget.gd` measured a whole vacation (5 nights, 32 minutes, the partner always
|
||||
moving, no voice): 22 MB sent to the server, against 113 MB before (2026-10-04). That's about 12
|
||||
KB/s: 6 from the host, 5.5 from the partner. Both machines must run the same version of the game:
|
||||
the hello and the welcome carry `CoopSession.PROTOCOL`, and a mismatch ends the session with a
|
||||
message on both sides.
|
||||
the hello and the welcome carry `CoopSession.PROTOCOL`, and a mismatch ends the session (the
|
||||
partner's main menu says why).
|
||||
|
||||
## Testing
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue