Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions docs/product/game-logic.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,10 @@ campaign 層の持続状態:unlocked_resources, upgraded_units, sortie_count
DOM event (KeyboardEvent, PointerEvent) は input layer で capture し、以下に正規化:

```typescript
type InputCommand =
| { type: 'MoveIntent'; direction: Vec2; } // normalized (-1..1)
| { type: 'AimIntent'; x: number; y: number; } // arena logical coordinates
| { type: 'FireIntent'; }
| { type: 'IssueAllyCommandIntent'; command: string; }
| { type: 'PauseIntent'; }
type InputCommand =
| { type: 'move'; axisX: number; axisY: number; } // semantic axes; MovementSystem normalizes diagonal movement
| { type: 'aim'; x: number; y: number; } // arena logical coordinates
| { type: 'fire'; }
```

input layer は DOM 依存。`src/systems` は InputCommand を受け取り、simulation state update に反映。
Expand Down
Loading