# ambariz/fractured architecture

> Architecture diagram of the GitHub repository ambariz/fractured, 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/ambariz/fractured
- Repository: https://github.com/ambariz/fractured

## Overview

FRACTURED is a Godot 2D platformer. The player moves through a level, collects keys and money, navigates obstacles and hidden paths, then passes the main exit to complete the level; completion and restart are also documented. The tree identifies scripts for these gameplay roles, but their source was not excerpted, so the graph uses README evidence only for documented feature relationships and omits unverified implementation-level calls.

Main entry points: [`player.gd`](https://github.com/ambariz/fractured/blob/main/player.gd) (Player Controls), [`gate.gd`](https://github.com/ambariz/fractured/blob/main/gate.gd) (Exit Gate), [`game_manager.gd`](https://github.com/ambariz/fractured/blob/main/game_manager.gd) (Game Manager), [`money_bag.gd`](https://github.com/ambariz/fractured/blob/main/money_bag.gd) (Money Collection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_play["Player and Level"]
  node_player["Player Controls<br/>[player.gd]"]
  node_level["Level 01<br/>[level_01_life.tscn]"]
  node_game["Game Manager<br/>[game_manager.gd]"]
  node_ui["Completion UI<br/>[ui.gd]"]
end

subgraph group_progress["Progression"]
  node_keys["Key Collection<br/>[key.gd]"]
  node_exit["Exit Gate<br/>[gate.gd]"]
  node_money["Money Collection<br/>[money_bag.gd]"]
  node_counter["Money Counter<br/>[money_counter.gd]"]
end

subgraph group_world["World Mechanics"]
  node_door["Doors<br/>[door.gd]"]
  node_platforms["Moving Platforms<br/>[moving_platform.gd]"]
  node_brick_platform["Brick Platforms"]
  node_speed_platform["Speed Platforms"]
  node_teleporters["Teleporters<br/>[teleporter.gd]"]
  node_hidden["Hidden Areas<br/>[hidden_area.gd]"]
  node_hidden_room["Hidden Rooms<br/>[hidden_room.gd]"]
  node_normal_area["Normal Areas<br/>[normal_area.gd]"]
  node_underground["Underground Areas"]
end

subgraph group_feedback["Game Feedback"]
  node_audio["Audio Manager<br/>[audio_manager.gd]"]
end

node_player_actor(("Player"))

node_player_actor -->|"controls"| node_player
node_player -->|"moves through"| node_level
node_player -->|"collects"| node_keys
node_player -->|"collects"| node_money
node_player -->|"overcomes"| node_platforms
node_player -->|"discovers"| node_hidden
node_player -->|"uses"| node_teleporters
node_keys -->|"required for"| node_exit
node_money -->|"opens gates"| node_exit
node_player -->|"passes through"| node_exit
node_exit -->|"completes level"| node_game
node_game -->|"shows overlay"| node_ui
node_player -.->|"navigates"| node_door
node_player -.->|"navigates"| node_brick_platform
node_player -.->|"navigates"| node_speed_platform
node_hidden -.->|"reveals"| node_hidden_room
node_player -.->|"enters"| node_normal_area
node_player -.->|"enters"| node_underground
node_money -.->|"updates"| node_counter
node_game -.->|"coordinates"| node_audio

click node_player "https://github.com/ambariz/fractured/blob/main/player.gd"
click node_level "https://github.com/ambariz/fractured/blob/main/level_01_life.tscn"
click node_game "https://github.com/ambariz/fractured/blob/main/game_manager.gd"
click node_ui "https://github.com/ambariz/fractured/blob/main/ui.gd"
click node_keys "https://github.com/ambariz/fractured/blob/main/key.gd"
click node_exit "https://github.com/ambariz/fractured/blob/main/gate.gd"
click node_money "https://github.com/ambariz/fractured/blob/main/money_bag.gd"
click node_counter "https://github.com/ambariz/fractured/blob/main/money_counter.gd"
click node_door "https://github.com/ambariz/fractured/blob/main/door.gd"
click node_platforms "https://github.com/ambariz/fractured/blob/main/moving_platform.gd"
click node_brick_platform "https://github.com/ambariz/fractured/blob/main/moving_platform_brick.gd"
click node_speed_platform "https://github.com/ambariz/fractured/blob/main/moving_platform_speed.gd"
click node_teleporters "https://github.com/ambariz/fractured/blob/main/teleporter.gd"
click node_hidden "https://github.com/ambariz/fractured/blob/main/hidden_area.gd"
click node_hidden_room "https://github.com/ambariz/fractured/blob/main/hidden_room.gd"
click node_normal_area "https://github.com/ambariz/fractured/blob/main/normal_area.gd"
click node_underground "https://github.com/ambariz/fractured/blob/main/underground_area.gd"
click node_audio "https://github.com/ambariz/fractured/blob/main/audio_manager.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_player,node_level,node_game,node_ui toneBlue
class node_keys,node_exit,node_money,node_counter toneAmber
class node_door,node_platforms,node_brick_platform,node_speed_platform,node_teleporters,node_hidden,node_hidden_room,node_normal_area,node_underground toneMint
class node_audio toneRose
class node_player_actor toneIndigo
```

## Components

### Player and Level

- [Player Controls](https://github.com/ambariz/fractured/blob/main/player.gd): `player.gd`
- [Level 01](https://github.com/ambariz/fractured/blob/main/level_01_life.tscn): `level_01_life.tscn`
- [Game Manager](https://github.com/ambariz/fractured/blob/main/game_manager.gd): `game_manager.gd`
- [Completion UI](https://github.com/ambariz/fractured/blob/main/ui.gd): `ui.gd`

### Progression

- [Key Collection](https://github.com/ambariz/fractured/blob/main/key.gd): `key.gd`
- [Exit Gate](https://github.com/ambariz/fractured/blob/main/gate.gd): `gate.gd`
- [Money Collection](https://github.com/ambariz/fractured/blob/main/money_bag.gd): `money_bag.gd`
- [Money Counter](https://github.com/ambariz/fractured/blob/main/money_counter.gd): `money_counter.gd`

### World Mechanics

- [Doors](https://github.com/ambariz/fractured/blob/main/door.gd): `door.gd`
- [Moving Platforms](https://github.com/ambariz/fractured/blob/main/moving_platform.gd): `moving_platform.gd`
- [Brick Platforms](https://github.com/ambariz/fractured/blob/main/moving_platform_brick.gd): `moving_platform_brick.gd`
- [Speed Platforms](https://github.com/ambariz/fractured/blob/main/moving_platform_speed.gd): `moving_platform_speed.gd`
- [Teleporters](https://github.com/ambariz/fractured/blob/main/teleporter.gd): `teleporter.gd`
- [Hidden Areas](https://github.com/ambariz/fractured/blob/main/hidden_area.gd): `hidden_area.gd`
- [Hidden Rooms](https://github.com/ambariz/fractured/blob/main/hidden_room.gd): `hidden_room.gd`
- [Normal Areas](https://github.com/ambariz/fractured/blob/main/normal_area.gd): `normal_area.gd`
- [Underground Areas](https://github.com/ambariz/fractured/blob/main/underground_area.gd): `underground_area.gd`

### Game Feedback

- [Audio Manager](https://github.com/ambariz/fractured/blob/main/audio_manager.gd): `audio_manager.gd`

### Other components

- **Player**

## Connections

- Player → Player Controls: controls (evidence: `README.md`)
- Player Controls → Level 01: moves through (evidence: `README.md`)
- Player Controls → Key Collection: collects (evidence: `README.md`)
- Player Controls → Money Collection: collects (evidence: `README.md`)
- Player Controls → Moving Platforms: overcomes (evidence: `README.md`)
- Player Controls → Hidden Areas: discovers (evidence: `README.md`)
- Player Controls → Teleporters: uses (evidence: `README.md`)
- Key Collection → Exit Gate: required for (evidence: `README.md`)
- Money Collection → Exit Gate: opens gates (evidence: `README.md`)
- Player Controls → Exit Gate: passes through (evidence: `README.md`)
- Exit Gate → Game Manager: completes level (evidence: `README.md`)
- Game Manager → Completion UI: shows overlay (evidence: `README.md`)
- Player Controls → Doors: navigates
- Player Controls → Brick Platforms: navigates
- Player Controls → Speed Platforms: navigates
- Hidden Areas → Hidden Rooms: reveals
- Player Controls → Normal Areas: enters
- Player Controls → Underground Areas: enters
- Money Collection → Money Counter: updates
- Game Manager → Audio Manager: coordinates
