# keeguri/artstudiosimulator architecture

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

- Interactive diagram: https://gitdiagram.com/keeguri/artstudiosimulator
- Repository: https://github.com/keeguri/artstudiosimulator

## Overview

#### Purpose and Runtime
This is a Godot game project, apparently shipped as **Art Studio Simulator** for Linux and Windows. The repository contains gameplay scenes, 3D assets, custom shaders, localizable text, and bundled editor/runtime addons. Built artifacts are present in `exports/linux/Art Studio Simulator.x86_64` and `exports/windows/Art Studio Simulator.exe`.

#### Application Entry and Scene Routing
Godot project metadata and startup configuration are centralized in `project.godot`. Main scene-level entry points appear to be the menu, game world, and statue-creation flow:
- `scenes/menu.tscn`
- `scenes/game.tscn`
- `scenes/statue_maker.tscn`

Menu/UI control is implemented in `scripts/menu_ui.gd`; global game-state coordination likely belongs to `scripts/game_manager.gd`.

#### Player and World Interaction
The playable 3D character is composed from a player prefab and gameplay controller, with spawning separated into a reusable component:
- `prefabs/player.tscn`
- `scripts/player.gd`
- `scripts/player_spawner.gd`

World objects are scene-prefab based—boxes, statues, pedestals, ladders, and effects—allowing the game scene to compose interactions rather than instantiate raw models directly. Interaction logic includes laptop and statue activation paths:
- `scripts/laptop_interact.gd`
- `scripts/statue_activator.gd`
- `prefabs/statue_activator.tscn`

#### Statue Creation and Persistence Model
The statue-maker domain is represented by typed Godot resources rather than hard-coded scene-only state. `statue_resource.gd` defines the data representation, while `statue_maker.gd` drives construction or selection; saved/example content is stored as `.tres` resources.
- `statue_data/statue_resource.gd`
- `statue_data/statue_maker.gd`
- `statue_data/moai.tres`

This forms a boundary between authored/saved statue data and its in-world presentation through statue-related prefabs such as `prefabs/moai.tscn` and `prefabs/cat_statue.tscn`.

#### UI, Settings, and Localization
UI behavior is split into focused controllers for menus, pause flow, laptop HUD, and settings:
- `scripts/pause_screen.gd`
- `scripts/laptop_hud.gd`
- `scripts/settings_manager.gd`

Translations are packaged through Godot translation resources for English and Russian: `translations.en.translation` and `translations.ru.translation`. `scripts/netvar.gd` suggests a shared observable/value abstraction, but no network service or backend is visible in the tree.

#### Visual Effects and Asset Pipeline
The 3D world draws from imported glTF/GLB assets, Godot material resources, and custom spatial shaders. Highlight, outline, and voxel effects likely support object selection and destruction feedback:
- `models/scene.gltf`
- `shaders/highlight.gdshader`
- `shaders/outline.gdshader`

Destruction is prefab-driven, connecting likely gameplay triggers to particle effects and timed cleanup:
- `prefabs/voxel_destruction_particles.tscn`
- `scripts/destroy_after_time_component.gd`
- `materials/shader_materials/voxel_highlight.tres`

#### Addon Boundaries and Platform Infrastructure
Two third-party-style Godot addons are vendored. Debug Draw 3D is a native GDExtension with platform binaries, including WebAssembly, macOS frameworks, and iOS libraries:
- `addons/debug_draw_3d/debug_draw_3d.gdextension`
- `addons/debug_draw_3d/libs/libdd3d.web.template_debug.wasm32.wasm`

Shaker provides editor and runtime components for 2D/3D shake effects, using emitters, receivers, presets, and waveform/noise type resources:
- `addons/shaker/plugin.cfg`
- `addons/shaker/src/shaker_plugin.gd`
- `addons/shaker/src/Vector3/ShakerEmitter3D.gd`

No external APIs, databases, authentication providers, or server infrastructure are represented.

Main entry points: [`scenes/game.tscn`](https://github.com/keeguri/artstudiosimulator/blob/main/scenes/game.tscn) (Game World), [`project.godot`](https://github.com/keeguri/artstudiosimulator/blob/main/project.godot) (Godot Project), [`scripts/menu_ui.gd`](https://github.com/keeguri/artstudiosimulator/blob/main/scripts/menu_ui.gd) (Menu UI Controller), [`scripts/laptop_interact.gd`](https://github.com/keeguri/artstudiosimulator/blob/main/scripts/laptop_interact.gd) (World Interactions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Game Runtime"]
  node_project["Godot Project<br/>startup config<br/>[project.godot]"]
  node_menu["Menu Scene<br/>scene entry<br/>[menu.tscn]"]
  node_game["Game World<br/>3D scene<br/>[game.tscn]"]
  node_menu_ui["Menu UI Controller<br/>[menu_ui.gd]"]
  node_game_manager["Game Manager<br/>state coordinator<br/>[game_manager.gd]"]
  node_player["Player<br/>playable prefab<br/>[player.tscn]"]
  node_player_controller["Player Controller<br/>gameplay controller<br/>[player.gd]"]
  node_player_spawner["Player Spawner<br/>spawn component<br/>[player_spawner.gd]"]
  node_interaction["World Interactions<br/>interaction scripts<br/>[laptop_interact.gd]"]
  node_ui_settings["Pause, HUD &amp; Settings<br/>UI controllers<br/>[pause_screen.gd]"]
  node_translations["Translations<br/>locale resources"]
  node_exports["Desktop Exports<br/>built artifacts"]
end

subgraph group_statues["Statue Creation"]
  node_statue_scene["Statue Maker Scene<br/>creation scene<br/>[statue_maker.tscn]"]
  node_statue_maker["Statue Maker<br/>creation controller<br/>[statue_maker.gd]"]
  node_statue_resource["Statue Resource<br/>typed resource<br/>[statue_resource.gd]"]
  node_moai_data["Moai Data<br/>statue resource<br/>[moai.tres]"]
end

subgraph group_content["World Content &amp; Effects"]
  node_statue_activator["Statue Activator<br/>interaction prefab"]
  node_statue_prefabs["Statue Prefabs<br/>world presentation<br/>[moai.tscn]"]
  node_visual_pipeline["3D Visual Pipeline<br/>models, materials &amp; shaders<br/>[scene.gltf]"]
  node_destruction["Voxel Destruction<br/>effect prefab"]
end

subgraph group_addons["Vendored Addons"]
  node_debug_draw{{"Debug Draw 3D<br/>native GDExtension"}}
  node_shaker{{"Shaker<br/>editor/runtime addon<br/>[shaker_plugin.gd]"}}
end

node_project -->|"starts"| node_menu
node_menu -->|"controlled by"| node_menu_ui
node_menu_ui -->|"enters"| node_game
node_menu_ui -->|"opens"| node_statue_scene
node_game_manager -->|"coordinates"| node_game
node_game -->|"uses"| node_player_spawner
node_player_spawner -->|"spawns"| node_player
node_player -->|"controlled by"| node_player_controller
node_game -->|"hosts"| node_interaction
node_interaction -->|"activates"| node_statue_activator
node_interaction -->|"opens creation flow"| node_statue_scene
node_statue_scene -->|"driven by"| node_statue_maker
node_statue_maker -->|"creates or selects"| node_statue_resource
node_moai_data -->|"instance of"| node_statue_resource
node_statue_resource -->|"presented in world"| node_statue_prefabs
node_game -->|"shows"| node_ui_settings
node_project -->|"loads locales"| node_translations
node_game -->|"renders with"| node_visual_pipeline
node_game -->|"triggers"| node_destruction
node_project -.->|"loads extension"| node_debug_draw
node_project -.->|"includes addon"| node_shaker
node_project -->|"builds"| node_exports

click node_project "https://github.com/keeguri/artstudiosimulator/blob/main/project.godot"
click node_menu "https://github.com/keeguri/artstudiosimulator/blob/main/scenes/menu.tscn"
click node_game "https://github.com/keeguri/artstudiosimulator/blob/main/scenes/game.tscn"
click node_statue_scene "https://github.com/keeguri/artstudiosimulator/blob/main/scenes/statue_maker.tscn"
click node_menu_ui "https://github.com/keeguri/artstudiosimulator/blob/main/scripts/menu_ui.gd"
click node_game_manager "https://github.com/keeguri/artstudiosimulator/blob/main/scripts/game_manager.gd"
click node_player "https://github.com/keeguri/artstudiosimulator/blob/main/prefabs/player.tscn"
click node_player_controller "https://github.com/keeguri/artstudiosimulator/blob/main/scripts/player.gd"
click node_player_spawner "https://github.com/keeguri/artstudiosimulator/blob/main/scripts/player_spawner.gd"
click node_interaction "https://github.com/keeguri/artstudiosimulator/blob/main/scripts/laptop_interact.gd"
click node_statue_activator "https://github.com/keeguri/artstudiosimulator/blob/main/prefabs/statue_activator.tscn"
click node_statue_maker "https://github.com/keeguri/artstudiosimulator/blob/main/statue_data/statue_maker.gd"
click node_statue_resource "https://github.com/keeguri/artstudiosimulator/blob/main/statue_data/statue_resource.gd"
click node_moai_data "https://github.com/keeguri/artstudiosimulator/blob/main/statue_data/moai.tres"
click node_statue_prefabs "https://github.com/keeguri/artstudiosimulator/blob/main/prefabs/moai.tscn"
click node_ui_settings "https://github.com/keeguri/artstudiosimulator/blob/main/scripts/pause_screen.gd"
click node_translations "https://github.com/keeguri/artstudiosimulator/blob/main/translations.en.translation"
click node_visual_pipeline "https://github.com/keeguri/artstudiosimulator/blob/main/models/scene.gltf"
click node_destruction "https://github.com/keeguri/artstudiosimulator/blob/main/prefabs/voxel_destruction_particles.tscn"
click node_debug_draw "https://github.com/keeguri/artstudiosimulator/blob/main/addons/debug_draw_3d/debug_draw_3d.gdextension"
click node_shaker "https://github.com/keeguri/artstudiosimulator/blob/main/addons/shaker/src/shaker_plugin.gd"
click node_exports "https://github.com/keeguri/artstudiosimulator/blob/main/exports/linux/Art%20Studio%20Simulator.x86_64"

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_project,node_menu,node_game,node_menu_ui,node_game_manager,node_player,node_player_controller,node_player_spawner,node_interaction,node_ui_settings,node_translations,node_exports toneBlue
class node_statue_scene,node_statue_maker,node_statue_resource,node_moai_data toneAmber
class node_statue_activator,node_statue_prefabs,node_visual_pipeline,node_destruction toneMint
class node_debug_draw,node_shaker toneRose
```

## Components

### Game Runtime

- [Godot Project](https://github.com/keeguri/artstudiosimulator/blob/main/project.godot): startup config · Configures startup and packaged game runtime. · `project.godot`
- [Menu Scene](https://github.com/keeguri/artstudiosimulator/blob/main/scenes/menu.tscn): scene entry · `scenes/menu.tscn`
- [Game World](https://github.com/keeguri/artstudiosimulator/blob/main/scenes/game.tscn): 3D scene · `scenes/game.tscn`
- [Menu UI Controller](https://github.com/keeguri/artstudiosimulator/blob/main/scripts/menu_ui.gd): UI controller · `scripts/menu_ui.gd`
- [Game Manager](https://github.com/keeguri/artstudiosimulator/blob/main/scripts/game_manager.gd): state coordinator · `scripts/game_manager.gd`
- [Player](https://github.com/keeguri/artstudiosimulator/blob/main/prefabs/player.tscn): playable prefab · `prefabs/player.tscn`
- [Player Controller](https://github.com/keeguri/artstudiosimulator/blob/main/scripts/player.gd): gameplay controller · `scripts/player.gd`
- [Player Spawner](https://github.com/keeguri/artstudiosimulator/blob/main/scripts/player_spawner.gd): spawn component · `scripts/player_spawner.gd`
- [World Interactions](https://github.com/keeguri/artstudiosimulator/blob/main/scripts/laptop_interact.gd): interaction scripts · Laptop and statue activation paths. · `scripts/laptop_interact.gd`
- [Pause, HUD & Settings](https://github.com/keeguri/artstudiosimulator/blob/main/scripts/pause_screen.gd): UI controllers · `scripts/pause_screen.gd`
- [Translations](https://github.com/keeguri/artstudiosimulator/blob/main/translations.en.translation): locale resources · English and Russian localized text. · `translations.en.translation`
- [Desktop Exports](https://github.com/keeguri/artstudiosimulator/blob/main/exports/linux/Art%20Studio%20Simulator.x86_64): built artifacts · Linux and Windows game binaries. · `exports/linux/Art Studio Simulator.x86_64`

### Statue Creation

- [Statue Maker Scene](https://github.com/keeguri/artstudiosimulator/blob/main/scenes/statue_maker.tscn): creation scene · `scenes/statue_maker.tscn`
- [Statue Maker](https://github.com/keeguri/artstudiosimulator/blob/main/statue_data/statue_maker.gd): creation controller · `statue_data/statue_maker.gd`
- [Statue Resource](https://github.com/keeguri/artstudiosimulator/blob/main/statue_data/statue_resource.gd): typed resource · Defines authored and saved statue data. · `statue_data/statue_resource.gd`
- [Moai Data](https://github.com/keeguri/artstudiosimulator/blob/main/statue_data/moai.tres): statue resource · `statue_data/moai.tres`

### World Content & Effects

- [Statue Activator](https://github.com/keeguri/artstudiosimulator/blob/main/prefabs/statue_activator.tscn): interaction prefab · `prefabs/statue_activator.tscn`
- [Statue Prefabs](https://github.com/keeguri/artstudiosimulator/blob/main/prefabs/moai.tscn): world presentation · Includes Moai and cat statue scenes. · `prefabs/moai.tscn`
- [3D Visual Pipeline](https://github.com/keeguri/artstudiosimulator/blob/main/models/scene.gltf): models, materials & shaders · Imported models and custom highlight/outline effects. · `models/scene.gltf`
- [Voxel Destruction](https://github.com/keeguri/artstudiosimulator/blob/main/prefabs/voxel_destruction_particles.tscn): effect prefab · Particle feedback with timed cleanup. · `prefabs/voxel_destruction_particles.tscn`

### Vendored Addons

- [Debug Draw 3D](https://github.com/keeguri/artstudiosimulator/blob/main/addons/debug_draw_3d/debug_draw_3d.gdextension): native GDExtension · Vendored cross-platform debug rendering addon. · `addons/debug_draw_3d/debug_draw_3d.gdextension`
- [Shaker](https://github.com/keeguri/artstudiosimulator/blob/main/addons/shaker/src/shaker_plugin.gd): editor/runtime addon · 2D/3D shake emitters, receivers, and presets. · `addons/shaker/src/shaker_plugin.gd`

## Connections

- Godot Project → Menu Scene: starts
- Menu Scene → Menu UI Controller: controlled by
- Menu UI Controller → Game World: enters
- Menu UI Controller → Statue Maker Scene: opens
- Game Manager → Game World: coordinates
- Game World → Player Spawner: uses
- Player Spawner → Player: spawns
- Player → Player Controller: controlled by
- Game World → World Interactions: hosts
- World Interactions → Statue Activator: activates
- World Interactions → Statue Maker Scene: opens creation flow
- Statue Maker Scene → Statue Maker: driven by
- Statue Maker → Statue Resource: creates or selects
- Moai Data → Statue Resource: instance of
- Statue Resource → Statue Prefabs: presented in world
- Game World → Pause, HUD & Settings: shows
- Godot Project → Translations: loads locales
- Game World → 3D Visual Pipeline: renders with
- Game World → Voxel Destruction: triggers
- Godot Project → Debug Draw 3D: loads extension
- Godot Project → Shaker: includes addon
- Godot Project → Desktop Exports: builds
