# garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106 architecture

> Architecture diagram of the GitHub repository garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106
- Repository: https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106

## Overview

Echoes of Luma is a Java Swing beast-trainer RPG. The documented player journey moves from the opening story and trainer/partner choices to regional stage selection, ethics-based battles, catching and team growth, then inventory, storage and Beast Dex management. The graph includes the main launch path and the documented presentation helpers. Some major wiring is supported by README descriptions rather than sampled call sites; the two root-level source files are included as indexed core modules, but their relationship to the src/ versions is unclear.

Main entry points: [`src/echoesofluma/BattleDemo.java`](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java) (Game coordinator), [`src/echoesofluma/WorldMapPanel.java`](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/WorldMapPanel.java) (World map), [`src/Main.java`](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/Main.java) (Main entry), [`src/echoesofluma/CreaturePC.java`](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/CreaturePC.java) (Party and storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_journey["Adventure flow"]
  node_entry["Main entry<br/>[Main.java]"]
  node_game["Game coordinator<br/>[BattleDemo.java]"]
  node_story["Opening story"]
  node_trainer["Trainer choice<br/>[BattleDemo.java]"]
  node_starter["Starter choice"]
  node_map["World map<br/>[WorldMapPanel.java]"]
  node_stages["Stage progression<br/>[WorldMapPanel.java]"]
  node_legacyworld["Root map source<br/>[WorldMapPanel.java]"]
end

subgraph group_gameplay["Battle and progression"]
  node_battle["Battle encounters<br/>[BattleDemo.java]"]
  node_ethics["Ethics questions<br/>[BattleDemo.java]"]
  node_catching["Beast catching<br/>[BattleDemo.java]"]
  node_growth["XP and leveling<br/>[BattleDemo.java]"]
  node_legacybattle["Root battle source<br/>[BattleDemo.java]"]
end

subgraph group_collection["Team and items"]
  node_party["Party and storage<br/>[CreaturePC.java]"]
  node_bag["Bag and shop<br/>[BagPanel.java]"]
  node_dex["Beast Dex<br/>[CreaturePC.java]"]
end

subgraph group_presentation["Game presentation"]
  node_audio["Sound cues<br/>[GameAudio.java]"]
  node_art["Beast artwork"]
  node_animation["Beast animation<br/>[BeastAnimator.java]"]
  node_font["Pixel text"]
end

node_player(("Player"))

node_player -->|"starts"| node_entry
node_entry -->|"launches"| node_game
node_game -->|"presents"| node_story
node_game -->|"coordinates"| node_trainer
node_game -->|"coordinates"| node_starter
node_game -->|"coordinates"| node_map
node_map -->|"offers"| node_stages
node_game -->|"coordinates"| node_battle
node_battle -->|"asks"| node_ethics
node_battle -->|"supports"| node_catching
node_battle -->|"awards"| node_growth
node_game -->|"coordinates"| node_party
node_game -->|"coordinates"| node_bag
node_party -->|"records"| node_dex
node_battle -->|"plays cues"| node_audio
node_battle -->|"loads artwork"| node_art
node_map -->|"loads artwork"| node_art
node_battle -->|"draws text"| node_font

click node_entry "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/Main.java"
click node_game "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java"
click node_story "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/StoryIntroPanel.java"
click node_trainer "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java"
click node_starter "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/StarterChoicePanel.java"
click node_map "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/WorldMapPanel.java"
click node_stages "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/WorldMapPanel.java"
click node_battle "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java"
click node_ethics "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java"
click node_catching "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java"
click node_growth "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java"
click node_party "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/CreaturePC.java"
click node_bag "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BagPanel.java"
click node_dex "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/CreaturePC.java"
click node_audio "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/GameAudio.java"
click node_art "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BeastIllustrations.java"
click node_animation "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BeastAnimator.java"
click node_font "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/PixelBitmapFont.java"
click node_legacybattle "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/BattleDemo.java"
click node_legacyworld "https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/WorldMapPanel.java"

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_entry,node_game,node_story,node_trainer,node_starter,node_map,node_stages,node_legacyworld toneBlue
class node_battle,node_ethics,node_catching,node_growth,node_legacybattle toneAmber
class node_party,node_bag,node_dex toneMint
class node_audio,node_art,node_animation,node_font toneRose
class node_player toneIndigo
```

## Components

### Adventure flow

- [Main entry](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/Main.java): `src/Main.java`
- [Game coordinator](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java): `src/echoesofluma/BattleDemo.java`
- [Opening story](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/StoryIntroPanel.java): `src/echoesofluma/StoryIntroPanel.java`
- [Trainer choice](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java): `src/echoesofluma/BattleDemo.java`
- [Starter choice](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/StarterChoicePanel.java): `src/echoesofluma/StarterChoicePanel.java`
- [World map](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/WorldMapPanel.java): `src/echoesofluma/WorldMapPanel.java`
- [Stage progression](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/WorldMapPanel.java): `src/echoesofluma/WorldMapPanel.java`
- [Root map source](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/WorldMapPanel.java): `WorldMapPanel.java`

### Battle and progression

- [Battle encounters](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java): `src/echoesofluma/BattleDemo.java`
- [Ethics questions](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java): `src/echoesofluma/BattleDemo.java`
- [Beast catching](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java): `src/echoesofluma/BattleDemo.java`
- [XP and leveling](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BattleDemo.java): `src/echoesofluma/BattleDemo.java`
- [Root battle source](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/BattleDemo.java): `BattleDemo.java`

### Team and items

- [Party and storage](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/CreaturePC.java): `src/echoesofluma/CreaturePC.java`
- [Bag and shop](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BagPanel.java): `src/echoesofluma/BagPanel.java`
- [Beast Dex](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/CreaturePC.java): `src/echoesofluma/CreaturePC.java`

### Game presentation

- [Sound cues](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/GameAudio.java): `src/echoesofluma/GameAudio.java`
- [Beast artwork](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BeastIllustrations.java): `src/echoesofluma/BeastIllustrations.java`
- [Beast animation](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/BeastAnimator.java): `src/echoesofluma/BeastAnimator.java`
- [Pixel text](https://github.com/garnaceleeuwenjustine-cpu/oop_project_tricode-group_bsit-2106/blob/main/src/echoesofluma/PixelBitmapFont.java): `src/echoesofluma/PixelBitmapFont.java`

### Other components

- **Player**

## Connections

- Player → Main entry: starts (evidence: `README.md`)
- Main entry → Game coordinator: launches (evidence: `src/Main.java`)
- Game coordinator → Opening story: presents (evidence: `README.md`)
- Game coordinator → Trainer choice: coordinates (evidence: `README.md`)
- Game coordinator → Starter choice: coordinates (evidence: `README.md`)
- Game coordinator → World map: coordinates (evidence: `README.md`)
- World map → Stage progression: offers (evidence: `README.md`)
- Game coordinator → Battle encounters: coordinates (evidence: `README.md`)
- Battle encounters → Ethics questions: asks (evidence: `README.md`)
- Battle encounters → Beast catching: supports (evidence: `README.md`)
- Battle encounters → XP and leveling: awards (evidence: `README.md`)
- Game coordinator → Party and storage: coordinates (evidence: `README.md`)
- Game coordinator → Bag and shop: coordinates (evidence: `README.md`)
- Party and storage → Beast Dex: records (evidence: `README.md`)
- Battle encounters → Sound cues: plays cues (evidence: `src/echoesofluma/BattleDemo.java`)
- Battle encounters → Beast artwork: loads artwork (evidence: `src/echoesofluma/BattleDemo.java`)
- World map → Beast artwork: loads artwork (evidence: `src/echoesofluma/WorldMapPanel.java`)
- Battle encounters → Pixel text: draws text (evidence: `src/echoesofluma/BattleDemo.java`)
