# lepetitdhomme/masks architecture

> Architecture diagram of the GitHub repository lepetitdhomme/masks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lepetitdhomme/masks
- Repository: https://github.com/lepetitdhomme/masks

## Overview

The tree indicates a Godot game centered on a board, with mask inventory/definitions, hand, fire, and game-management code. The principal player-to-result workflow cannot be established from filenames alone: the README is empty and no source excerpts were provided. Nodes therefore represent identifiable runtime areas, but no call or data-flow edges are asserted. Scene composition and runtime relationships remain unverified.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Board gameplay"]
  node_board["Board logic<br/>[board.gd]"]
  node_cell["Board cell<br/>[cell.gd]"]
  node_board_scene["Board scene<br/>[board.tscn]"]
  node_hand["Card hand<br/>[hand.gd]"]
  node_hand_scene["Hand scene<br/>[hand.tscn]"]
  node_fire["Fire behavior<br/>[fire.gd]"]
end

subgraph group_masks["Masks"]
  node_mask_logic["Mask behavior<br/>[mask.gd]"]
  node_mask_data["Mask definitions"]
  node_mask_inventory["Mask inventory<br/>[MaskInventory.gd]"]
  node_mask_state["Mask state<br/>[mask_state.gd]"]
end

subgraph group_runtime["Game runtime"]
  node_game_manager["Game manager<br/>[game_manager.gd]"]
  node_event_bus["Event bus<br/>[EventBus.gd]"]
  node_mousebrain["Mouse input<br/>[mousebrain.gd]"]
  node_main["Main entry<br/>[main.gd]"]
end

node_player(("Player"))

click node_board "https://github.com/lepetitdhomme/masks/blob/main/scripts/board.gd"
click node_cell "https://github.com/lepetitdhomme/masks/blob/main/scripts/cell.gd"
click node_board_scene "https://github.com/lepetitdhomme/masks/blob/main/scenes/board.tscn"
click node_hand "https://github.com/lepetitdhomme/masks/blob/main/scripts/hand.gd"
click node_hand_scene "https://github.com/lepetitdhomme/masks/blob/main/scenes/hand.tscn"
click node_mask_logic "https://github.com/lepetitdhomme/masks/blob/main/scripts/mask.gd"
click node_mask_data "https://github.com/lepetitdhomme/masks/tree/main/masks/masks_definitions"
click node_mask_inventory "https://github.com/lepetitdhomme/masks/blob/main/masks/MaskInventory.gd"
click node_mask_state "https://github.com/lepetitdhomme/masks/blob/main/masks/mask_state.gd"
click node_fire "https://github.com/lepetitdhomme/masks/blob/main/scripts/fire.gd"
click node_game_manager "https://github.com/lepetitdhomme/masks/blob/main/scripts/game_manager.gd"
click node_event_bus "https://github.com/lepetitdhomme/masks/blob/main/scripts/EventBus.gd"
click node_mousebrain "https://github.com/lepetitdhomme/masks/blob/main/scripts/mousebrain.gd"
click node_main "https://github.com/lepetitdhomme/masks/blob/main/scripts/main.gd"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_board,node_cell,node_board_scene,node_hand,node_hand_scene,node_fire toneBlue
class node_mask_logic,node_mask_data,node_mask_inventory,node_mask_state toneAmber
class node_game_manager,node_event_bus,node_mousebrain,node_main toneMint
class node_player toneIndigo
```

## Components

### Board gameplay

- [Board logic](https://github.com/lepetitdhomme/masks/blob/main/scripts/board.gd): `scripts/board.gd`
- [Board cell](https://github.com/lepetitdhomme/masks/blob/main/scripts/cell.gd): `scripts/cell.gd`
- [Board scene](https://github.com/lepetitdhomme/masks/blob/main/scenes/board.tscn): `scenes/board.tscn`
- [Card hand](https://github.com/lepetitdhomme/masks/blob/main/scripts/hand.gd): `scripts/hand.gd`
- [Hand scene](https://github.com/lepetitdhomme/masks/blob/main/scenes/hand.tscn): `scenes/hand.tscn`
- [Fire behavior](https://github.com/lepetitdhomme/masks/blob/main/scripts/fire.gd): `scripts/fire.gd`

### Masks

- [Mask behavior](https://github.com/lepetitdhomme/masks/blob/main/scripts/mask.gd): `scripts/mask.gd`
- [Mask definitions](https://github.com/lepetitdhomme/masks/tree/main/masks/masks_definitions): `masks/masks_definitions`
- [Mask inventory](https://github.com/lepetitdhomme/masks/blob/main/masks/MaskInventory.gd): `masks/MaskInventory.gd`
- [Mask state](https://github.com/lepetitdhomme/masks/blob/main/masks/mask_state.gd): `masks/mask_state.gd`

### Game runtime

- [Game manager](https://github.com/lepetitdhomme/masks/blob/main/scripts/game_manager.gd): `scripts/game_manager.gd`
- [Event bus](https://github.com/lepetitdhomme/masks/blob/main/scripts/EventBus.gd): `scripts/EventBus.gd`
- [Mouse input](https://github.com/lepetitdhomme/masks/blob/main/scripts/mousebrain.gd): `scripts/mousebrain.gd`
- [Main entry](https://github.com/lepetitdhomme/masks/blob/main/scripts/main.gd): `scripts/main.gd`

### Other components

- **Player**
