# tylerhat/archibaldmanormystery architecture

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

- Interactive diagram: https://gitdiagram.com/tylerhat/archibaldmanormystery
- Repository: https://github.com/tylerhat/archibaldmanormystery

## Overview

Archibald Manor is a Godot first-person murder-mystery game. The player selects a cast, investigates suspects through private interviews and Hall confrontations, reviews case notes, then accuses someone at the front door. The README documents these capabilities and the local Ollama integration, but no source excerpts were supplied, so edges show only documented relationships; implementation details beyond those claims are intentionally omitted.

Main entry points: [`scripts/Main.gd`](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Main.gd) (Game entry and UI), [`scripts/NPCCharacter.gd`](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/NPCCharacter.gd) (Private interviews), [`scripts/GroupChat.gd`](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/GroupChat.gd) (Hall confrontations), [`scripts/Player.gd`](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Player.gd) (Player movement)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Case and gameplay"]
  node_main["Game entry and UI<br/>[Main.gd]"]
  node_cast["Suspect selection<br/>[Main.gd]"]
  node_case["Case setup<br/>[CaseGenerator.gd]"]
  node_accusation["Front-door accusation<br/>[Main.gd]"]
end

subgraph group_world["Manor and movement"]
  node_manor["Procedural manor<br/>[Main.gd]"]
  node_player_control["Player movement<br/>[Player.gd]"]
  node_suspects["Suspect characters<br/>[NPCCharacter.gd]"]
  node_navigation["Suspect movement<br/>[NPCCharacter.gd]"]
end

subgraph group_conversation["Interviews and dialogue"]
  node_interview["Private interviews<br/>[NPCCharacter.gd]"]
  node_group_chat["Hall confrontations<br/>[GroupChat.gd]"]
  node_dialogue_log["Conversation history<br/>[DialogueLog.gd]"]
end

subgraph group_investigation["Investigation UI"]
  node_notes["Case notes<br/>[DialogueLog.gd]"]
  node_summary["Suspect summaries<br/>[DialogueLog.gd]"]
end

node_player(("Detective"))
node_ollama{{"Local Ollama"}}

node_player -->|"starts game"| node_main
node_main -->|"opens selection"| node_cast
node_cast -->|"sets cast"| node_case
node_main -->|"builds manor"| node_manor
node_player -->|"moves and interacts"| node_player_control
node_player_control -->|"interacts with"| node_suspects
node_player -->|"asks questions"| node_interview
node_interview -->|"requests replies"| node_ollama
node_interview -->|"records exchanges"| node_dialogue_log
node_player -->|"gives directions"| node_navigation
node_navigation -->|"moves through rooms"| node_manor
node_player -->|"addresses room"| node_group_chat
node_group_chat -->|"requests reactions"| node_ollama
node_group_chat -->|"records exchanges"| node_dialogue_log
node_player -->|"opens notes"| node_notes
node_notes -->|"loads suspect summary"| node_summary
node_summary -->|"requests summary"| node_ollama
node_player -->|"submits accusation"| node_accusation
node_accusation -->|"checks culprit"| node_case

click node_main "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Main.gd"
click node_cast "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Main.gd"
click node_case "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/CaseGenerator.gd"
click node_manor "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Main.gd"
click node_player_control "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Player.gd"
click node_suspects "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/NPCCharacter.gd"
click node_navigation "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/NPCCharacter.gd"
click node_interview "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/NPCCharacter.gd"
click node_group_chat "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/GroupChat.gd"
click node_dialogue_log "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/DialogueLog.gd"
click node_notes "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/DialogueLog.gd"
click node_summary "https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/DialogueLog.gd"
click node_accusation "https://github.com/tylerhat/archibaldmanormystery/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_main,node_cast,node_case,node_accusation toneBlue
class node_manor,node_player_control,node_suspects,node_navigation toneAmber
class node_interview,node_group_chat,node_dialogue_log toneMint
class node_notes,node_summary toneRose
class node_player,node_ollama toneIndigo
```

## Components

### Case and gameplay

- [Game entry and UI](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Main.gd): `scripts/Main.gd`
- [Suspect selection](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Main.gd): `scripts/Main.gd`
- [Case setup](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/CaseGenerator.gd): `scripts/CaseGenerator.gd`
- [Front-door accusation](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Main.gd): `scripts/Main.gd`

### Manor and movement

- [Procedural manor](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Main.gd): `scripts/Main.gd`
- [Player movement](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/Player.gd): `scripts/Player.gd`
- [Suspect characters](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/NPCCharacter.gd): `scripts/NPCCharacter.gd`
- [Suspect movement](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/NPCCharacter.gd): `scripts/NPCCharacter.gd`

### Interviews and dialogue

- [Private interviews](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/NPCCharacter.gd): `scripts/NPCCharacter.gd`
- [Hall confrontations](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/GroupChat.gd): `scripts/GroupChat.gd`
- [Conversation history](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/DialogueLog.gd): `scripts/DialogueLog.gd`

### Investigation UI

- [Case notes](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/DialogueLog.gd): `scripts/DialogueLog.gd`
- [Suspect summaries](https://github.com/tylerhat/archibaldmanormystery/blob/main/scripts/DialogueLog.gd): `scripts/DialogueLog.gd`

### Other components

- **Detective**
- **Local Ollama**

## Connections

- Detective → Game entry and UI: starts game (evidence: `README.md`)
- Game entry and UI → Suspect selection: opens selection (evidence: `README.md`)
- Suspect selection → Case setup: sets cast (evidence: `README.md`)
- Game entry and UI → Procedural manor: builds manor (evidence: `README.md`)
- Detective → Player movement: moves and interacts (evidence: `README.md`)
- Player movement → Suspect characters: interacts with (evidence: `README.md`)
- Detective → Private interviews: asks questions (evidence: `README.md`)
- Private interviews → Local Ollama: requests replies (evidence: `README.md`)
- Private interviews → Conversation history: records exchanges (evidence: `README.md`)
- Detective → Suspect movement: gives directions (evidence: `README.md`)
- Suspect movement → Procedural manor: moves through rooms (evidence: `README.md`)
- Detective → Hall confrontations: addresses room (evidence: `README.md`)
- Hall confrontations → Local Ollama: requests reactions (evidence: `README.md`)
- Hall confrontations → Conversation history: records exchanges (evidence: `README.md`)
- Detective → Case notes: opens notes (evidence: `README.md`)
- Case notes → Suspect summaries: loads suspect summary (evidence: `README.md`)
- Suspect summaries → Local Ollama: requests summary (evidence: `README.md`)
- Detective → Front-door accusation: submits accusation (evidence: `README.md`)
- Front-door accusation → Case setup: checks culprit (evidence: `README.md`)
