# maaszd/projekt-labor-03 architecture

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

- Interactive diagram: https://gitdiagram.com/maaszd/projekt-labor-03
- Repository: https://github.com/maaszd/projekt-labor-03

## Overview

This repository contains a small PySide6 fantasy-game prototype plus a separate terminal menu/loading-animation script. The GUI workflow starts the game window, lets the player navigate its menu and dungeon map, equips sample items, and runs a timed encounter. Core gameplay behavior and UI wiring are in main.py, with ui_menu.py supplying the generated interface. The terminal script is present, but the excerpts do not establish a connection to the GUI. No README documents further capabilities; unsampled behavior is not inferred.

Main entry points: [`main/main_app/main.py`](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py) (Game window), [`main/main_app/ui_menu.py`](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/ui_menu.py) (Game interface), [`main/main_app/assets`](https://github.com/maaszd/projekt-labor-03/tree/main/main/main_app/assets) (Game assets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game["Game GUI"]
  node_window["Game window<br/>[main.py]"]
  node_ui["Game interface<br/>[ui_menu.py]"]
  node_console["Console output<br/>[main.py]"]
end

subgraph group_gameplay["Gameplay"]
  node_map["Dungeon map<br/>[main.py]"]
  node_movement["Dungeon movement<br/>[main.py]"]
  node_encounter["Monster encounter<br/>[main.py]"]
  node_combat["Timed combat<br/>[main.py]"]
  node_equipment["Equipment list<br/>[main.py]"]
  node_assets["Game assets"]
end

subgraph group_terminal["Terminal menu"]
  node_terminal_menu["Terminal menu<br/>[Menu_app.py]"]
end

node_player(("Player"))

node_player -->|"starts"| node_window
node_window -->|"sets up"| node_ui
node_window -->|"redirects output"| node_console
node_player -->|"selects views"| node_window
node_window -->|"initializes"| node_map
node_player -->|"moves"| node_movement
node_movement -->|"updates cells"| node_map
node_movement -->|"detects"| node_encounter
node_encounter -->|"loads image"| node_assets
node_encounter -->|"switches view"| node_ui
node_player -->|"equips items"| node_equipment
node_equipment -->|"loads icons"| node_assets
node_player -->|"starts fight"| node_combat
node_combat -->|"updates health"| node_ui

click node_window "https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py"
click node_ui "https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/ui_menu.py"
click node_console "https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py"
click node_map "https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py"
click node_movement "https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py"
click node_encounter "https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py"
click node_combat "https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py"
click node_equipment "https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py"
click node_assets "https://github.com/maaszd/projekt-labor-03/tree/main/main/main_app/assets"
click node_terminal_menu "https://github.com/maaszd/projekt-labor-03/blob/main/Menu/Menu_app/Menu_app.py"

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_window,node_ui,node_console toneBlue
class node_map,node_movement,node_encounter,node_combat,node_equipment,node_assets toneAmber
class node_terminal_menu toneMint
class node_player toneIndigo
```

## Components

### Game GUI

- [Game window](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py): `main/main_app/main.py`
- [Game interface](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/ui_menu.py): `main/main_app/ui_menu.py`
- [Console output](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py): `main/main_app/main.py`

### Gameplay

- [Dungeon map](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py): `main/main_app/main.py`
- [Dungeon movement](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py): `main/main_app/main.py`
- [Monster encounter](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py): `main/main_app/main.py`
- [Timed combat](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py): `main/main_app/main.py`
- [Equipment list](https://github.com/maaszd/projekt-labor-03/blob/main/main/main_app/main.py): `main/main_app/main.py`
- [Game assets](https://github.com/maaszd/projekt-labor-03/tree/main/main/main_app/assets): `main/main_app/assets`

### Terminal menu

- [Terminal menu](https://github.com/maaszd/projekt-labor-03/blob/main/Menu/Menu_app/Menu_app.py): `Menu/Menu_app/Menu_app.py`

### Other components

- **Player**

## Connections

- Player → Game window: starts (evidence: `main/main_app/main.py`)
- Game window → Game interface: sets up (evidence: `main/main_app/main.py`)
- Game window → Console output: redirects output (evidence: `main/main_app/main.py`)
- Player → Game window: selects views (evidence: `main/main_app/main.py`)
- Game window → Dungeon map: initializes (evidence: `main/main_app/main.py`)
- Player → Dungeon movement: moves (evidence: `main/main_app/main.py`)
- Dungeon movement → Dungeon map: updates cells (evidence: `main/main_app/main.py`)
- Dungeon movement → Monster encounter: detects (evidence: `main/main_app/main.py`)
- Monster encounter → Game assets: loads image (evidence: `main/main_app/main.py`)
- Monster encounter → Game interface: switches view (evidence: `main/main_app/main.py`)
- Player → Equipment list: equips items (evidence: `main/main_app/main.py`)
- Equipment list → Game assets: loads icons (evidence: `main/main_app/main.py`)
- Player → Timed combat: starts fight (evidence: `main/main_app/main.py`)
- Timed combat → Game interface: updates health (evidence: `main/main_app/main.py`)
