1.6 KiB
1.6 KiB
GGJ2026 Agent Notes
These notes are for coding agents working in this repo. Keep them short, actionable, and up to date.
Project Overview
- Unity project (2D). Main code in
Assets/Scripts/. - Input uses Unity Input System with
Assets/InputSystem_Actions.inputactions. - Scene of interest:
Assets/Scenes/Level1.unity.
Input/Controllers
- Player controllers are
PlayerPlatformerControllerandPlayerPickupController. - Each controller instantiates its own
InputActionAssetand can filter to a specific device. - Device filtering is based on:
controlSchemeName == "Gamepad"and/orgamepadIndex >= 0.
- When no matching gamepad is available, controllers ignore input until the device appears.
- Gamepad index inference:
actionMapName = Player-> index 0actionMapName = Player2/Player3/...-> index (N-1)
- If you add/rename action maps, update inference or set
gamepadIndexexplicitly.
Level1 Scene Notes
- Player 2/3/4 are placed directly in the scene and set to Gamepad.
- Current expected indices:
- Player2 ->
gamepadIndex: 0 - Player3 ->
gamepadIndex: 1 - Player4 ->
gamepadIndex: 2
- Player2 ->
- If you want a 4th controller player, set
gamepadIndex: 3and ensurecontrolSchemeName: Gamepad.
Prefabs
Assets/Prefabs/Player.prefabdefaults tocontrolSchemeName: Keyboard&MouseandgamepadIndex: -1.- If you instantiate players at runtime, set
gamepadIndexandcontrolSchemeNameper player.
Editing Tips
- Use
rgfor searches (rg -n "term" Assets). - Prefer
apply_patchfor small edits. - Avoid touching
Library/,Temp/, andLogs/.