# shinlyan/rpg architecture

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

- Interactive diagram: https://gitdiagram.com/shinlyan/rpg
- Repository: https://github.com/shinlyan/rpg

## Overview

The repository appears to be a Godot RPG project, based on its game scripts, scenes, and assets. Its tree shows character combat, skills, inventory, menus, save data, and multiple worlds, but the README only says this is the author's first project and no source excerpts were provided. The graph therefore maps these recognizable subsystems without asserting runtime calls or a user-to-result sequence that the available evidence cannot verify.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_world["Worlds and navigation"]
  node_worldentry["World startup<br/>[StartWorld.gd]"]
  node_scenechange["Scene navigation<br/>[SceneChanger.gd]"]
  node_root["Game root<br/>[Root.gd]"]
end

subgraph group_gameplay["Characters and combat"]
  node_player["Player<br/>[Player.gd]"]
  node_character["Character base<br/>[Character.gd]"]
  node_ai["Character AI<br/>[AI.gd]"]
  node_enemy["Enemy types<br/>[EnemyHuman.gd]"]
  node_damage["Damage area<br/>[DamageArea.gd]"]
  node_aoe["Area skills"]
  node_targetskills["Target skills"]
  node_heal["Healing skill"]
  node_shield["Shield skill"]
end

subgraph group_items["Items and skills"]
  node_inventory["Inventory<br/>[Inventory.gd]"]
  node_item["Item<br/>[Item.gd]"]
  node_itemdata["Skill data"]
end

subgraph group_interface["Interface and persistence"]
  node_menu["Game menu<br/>[GameMenu.gd]"]
  node_savepanel["Save and load UI<br/>[Save_panel.gd]"]
  node_savedata["Save data<br/>[SaveData.gd]"]
  node_savefiles[("Saved games")]
end

node_gamer(("Player"))

click node_player "https://github.com/shinlyan/rpg/blob/main/Scripts/Characters/Player.gd"
click node_character "https://github.com/shinlyan/rpg/blob/main/Scripts/Characters/Character.gd"
click node_ai "https://github.com/shinlyan/rpg/blob/main/Scripts/Characters/AI.gd"
click node_enemy "https://github.com/shinlyan/rpg/blob/main/Scripts/Characters/EnemyHuman.gd"
click node_damage "https://github.com/shinlyan/rpg/blob/main/Scripts/DamageArea.gd"
click node_aoe "https://github.com/shinlyan/rpg/blob/main/Scripts/ExpandingAOESkill.gd"
click node_targetskills "https://github.com/shinlyan/rpg/blob/main/Scripts/RangedSingleTargetSkill.gd"
click node_heal "https://github.com/shinlyan/rpg/blob/main/Scripts/SingleTargetHeal.gd"
click node_shield "https://github.com/shinlyan/rpg/blob/main/Scripts/SingleTargetShield.gd"
click node_inventory "https://github.com/shinlyan/rpg/blob/main/Scripts/Inventory.gd"
click node_item "https://github.com/shinlyan/rpg/blob/main/Scripts/Item.gd"
click node_itemdata "https://github.com/shinlyan/rpg/blob/main/Data/SkillData%20-%20Sheet1.json"
click node_worldentry "https://github.com/shinlyan/rpg/blob/main/Scripts/StartWorld.gd"
click node_scenechange "https://github.com/shinlyan/rpg/blob/main/Scripts/SceneChanger.gd"
click node_root "https://github.com/shinlyan/rpg/blob/main/Scripts/Root.gd"
click node_menu "https://github.com/shinlyan/rpg/blob/main/Scripts/GameMenu/GameMenu.gd"
click node_savepanel "https://github.com/shinlyan/rpg/blob/main/Scripts/GameMenu/Save_panel.gd"
click node_savedata "https://github.com/shinlyan/rpg/blob/main/Resources/SaveData.gd"
click node_savefiles "https://github.com/shinlyan/rpg/tree/main/Saves"

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_worldentry,node_scenechange,node_root toneBlue
class node_player,node_character,node_ai,node_enemy,node_damage,node_aoe,node_targetskills,node_heal,node_shield toneAmber
class node_inventory,node_item,node_itemdata toneMint
class node_menu,node_savepanel,node_savedata,node_savefiles toneRose
class node_gamer toneIndigo
```

## Components

### Worlds and navigation

- [World startup](https://github.com/shinlyan/rpg/blob/main/Scripts/StartWorld.gd): `Scripts/StartWorld.gd`
- [Scene navigation](https://github.com/shinlyan/rpg/blob/main/Scripts/SceneChanger.gd): `Scripts/SceneChanger.gd`
- [Game root](https://github.com/shinlyan/rpg/blob/main/Scripts/Root.gd): `Scripts/Root.gd`

### Characters and combat

- [Player](https://github.com/shinlyan/rpg/blob/main/Scripts/Characters/Player.gd): `Scripts/Characters/Player.gd`
- [Character base](https://github.com/shinlyan/rpg/blob/main/Scripts/Characters/Character.gd): `Scripts/Characters/Character.gd`
- [Character AI](https://github.com/shinlyan/rpg/blob/main/Scripts/Characters/AI.gd): `Scripts/Characters/AI.gd`
- [Enemy types](https://github.com/shinlyan/rpg/blob/main/Scripts/Characters/EnemyHuman.gd): `Scripts/Characters/EnemyHuman.gd`
- [Damage area](https://github.com/shinlyan/rpg/blob/main/Scripts/DamageArea.gd): `Scripts/DamageArea.gd`
- [Area skills](https://github.com/shinlyan/rpg/blob/main/Scripts/ExpandingAOESkill.gd): `Scripts/ExpandingAOESkill.gd`
- [Target skills](https://github.com/shinlyan/rpg/blob/main/Scripts/RangedSingleTargetSkill.gd): `Scripts/RangedSingleTargetSkill.gd`
- [Healing skill](https://github.com/shinlyan/rpg/blob/main/Scripts/SingleTargetHeal.gd): `Scripts/SingleTargetHeal.gd`
- [Shield skill](https://github.com/shinlyan/rpg/blob/main/Scripts/SingleTargetShield.gd): `Scripts/SingleTargetShield.gd`

### Items and skills

- [Inventory](https://github.com/shinlyan/rpg/blob/main/Scripts/Inventory.gd): `Scripts/Inventory.gd`
- [Item](https://github.com/shinlyan/rpg/blob/main/Scripts/Item.gd): `Scripts/Item.gd`
- [Skill data](https://github.com/shinlyan/rpg/blob/main/Data/SkillData%20-%20Sheet1.json): `Data/SkillData - Sheet1.json`

### Interface and persistence

- [Game menu](https://github.com/shinlyan/rpg/blob/main/Scripts/GameMenu/GameMenu.gd): `Scripts/GameMenu/GameMenu.gd`
- [Save and load UI](https://github.com/shinlyan/rpg/blob/main/Scripts/GameMenu/Save_panel.gd): `Scripts/GameMenu/Save_panel.gd`
- [Save data](https://github.com/shinlyan/rpg/blob/main/Resources/SaveData.gd): `Resources/SaveData.gd`
- [Saved games](https://github.com/shinlyan/rpg/tree/main/Saves): `Saves`

### Other components

- **Player**
