NEVER Do (Expert Anti-Patterns)
Multiplayer & Input
- NEVER hardcode player inputs to specific joypad IDs (e.g., 0 or 1); strictly query dynamically via
Input.get_connected_joypads(). - NEVER bake player-IDs into the input map (e.g., "p1_jump"); strictly use a Dynamic Input Router to map physical controllers to players at runtime.
- NEVER use
Input.is_action_pressed()for assigning new player joins; strictly parse rawInputEventJoypadButtonin_unhandled_input()for device metadata. - NEVER allow inconsistent controls between games; strictly standardize across all minigames (A = Accept/Action, B = Back/Cancel, Joystick = Move).
- NEVER assume a disconnected joypad removes a player; strictly connect to the
joy_connection_changedsignal to pause and handle dropouts gracefully. - NEVER use boolean polling for analog sticks; strictly use
Input.get_vector()for precision and deadzones.
User Experience & Feedback
- NEVER use long text-based tutorials; strictly use a 3-second looping GIF + a single-sentence instruction overlay (e.g., "Mash A to fly!").
- NEVER ignore "Asymmetric" balance in 1v3 games; strictly provide the "One" with unique abilities or increased HP/speed to offset the numerical disadvantage.
- NEVER neglect Accessibility and Handicap systems; strictly implement optional support (e.g., speed boosts for lower-skilled players) to keep the competition social.
- NEVER leave UI Control nodes with
FOCUS_NONEfor gamepad menus; strictly set toFOCUS_ALLwith explicit focus neighbors for accessible navigation.
Rendering & Architecture
- NEVER use heavy scene transitions; strictly keep minigame assets light and use Threaded Background Loading while the instructions screen is active.
- NEVER draw global
CanvasLayerUI for individual split-screen players; strictly use per-viewportCanvasLayerchildren. - NEVER manually set sizes on
SubViewportchildren; strictly useGridContainerorBoxContainerfor automatic split-screen layout. - NEVER store tournament state or scores inside minigame scenes; strictly use a Persistent Autoload (Singleton).
- NEVER use a static
Camera2Dfor shared-room games; strictly use a dynamic group camera that zooms/pans to fit all players in frame. - NEVER overlap
SubViewportContainernodes without settingmouse_filtertoPASS; otherwise, top viewports will block input.
π Expert Components (scripts/)
MANDATORY reads before implementing the matching system:
1. party_input_router.gd β lobby join + deviceβplayer routing (golden path)
2. minigame_orchestrator.gd β hub β minigame scene cycle
3. connection_monitor.gd β joy disconnect pause / reconnect
Original Expert Patterns
- party_input_router.gd - Device-ID join +
pN_*InputMap routing (complete, not a stub).
Modular Components
- minigame_orchestrator.gd - Autoload-style minigame sequencing.
- minigame_async_loader.gd - Threaded PackedScene load during instruction screens.
- split_screen_setup.gd - 2β4 SubViewportContainer grid.
- split_screen_manager.gd - Viewport sync / shared world helpers.
- local_input_manager.gd - Runtime InputMap remaps for 4+ pads.
- connection_monitor.gd -
joy_connection_changedpause + reconnect UI group. - player_join_manager.gd - Slot mapping from raw JoypadButton events.
- deferred_scene_switcher.gd - Safe deferred free/instantiate.
- tournament_state.gd - Persistent scores / roster Autoload.
- character_select_grid.gd - Focus-safe character select.
- minigame_player_controller.gd - Per-player pawn bound to routed actions.
- player_haptic_feedback.gd - Per-device rumble.
- shared_party_camera.gd - Shared-camera minigames (non-split).
- minigame_data.gd -
MinigameDataResource (scene path, rules, duration). - party_manager.gd - Round/score orchestration + minigame scene handoff.
- impact_camera_shake.gd - Global screen-shake observer for party impacts.
Core Loop
- Lobby join β 2. Meta/board β 3. Minigame β 4. Score β 5. Repeat
Decision Trees
Input & dropout
| Need | Action |
|------|--------|
| Lobby join + route | MANDATORY party_input_router.gd |
| Runtime pN_* remaps | local_input_manager.gd |
| Pad battery death mid-game | MANDATORY connection_monitor.gd β pause tree + reconnect overlay |
Scenes & viewports
| Need | Action |
|------|--------|
| Cycle minigames | MANDATORY minigame_orchestrator.gd (+ deferred_scene_switcher.gd) |
| Prefetch during how-to | minigame_async_loader.gd |
| 2β4 split | split_screen_setup.gd β per-viewport CanvasLayer; mouse_filter on containers |
| Shared camera party | shared_party_camera.gd |
Skill Chain
| Phase | Skills | Purpose |
|-------|--------|---------|
| 1. Input | godot-input-handling | 2β4 local controllers |
| 2. Scene | godot-scene-management | Load/unload minigames |
| 3. Data | godot-resource-data-patterns | Minigame .tres defs |
| 4. UI | godot-ui-containers | Lobby / score / reconnect |
| 5. Balance | godot-monte-carlo-balancer | Asymmetric 1v3 power |
Common Pitfalls
| Pitfall | Solution |
|---------|----------|
| Shared jump action | Device-bound pN_* via router / local_input_manager |
| Global CanvasLayer in split | Per-SubViewport UI layers |
| Generic screen-shake Elite | Prefer split + reconnect procedures above |
Split-screen + reconnect procedure
- Build viewports with split_screen_setup.gd.
- Bind devices through party_input_router.gd before the minigame starts.
- Keep connection_monitor.gd alive as Autoload; on disconnect pause and
call_group("ui_overlays", "show_reconnect", device). - On reconnect, re-bind the same
player_idβ newdevice_idthen unpause β do not remap other players.
MANDATORY for depth beyond decision trees and script catalog: party-elite-implementations.md. Do NOT Load on first-pass wiring β use bundled
scripts/first.
Architecture Overview
1. Minigame Definition
Using Resources to define what a minigame is.