# garze05/testshot-remake architecture

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

- Interactive diagram: https://gitdiagram.com/garze05/testshot-remake
- Repository: https://github.com/garze05/testshot-remake

## Overview

This is a GameMaker Studio 2 remake of the author’s earlier videogame. The tree suggests a multi-room action game with player/enemy combat, weapons, keys and doors, alongside substantial input and Scribble text systems. The README provides little workflow detail, and sampled native-extension code does not show how the game invokes it; those relationships are therefore not asserted. The extension-to-Windows API links reflect the sampled code, not a complete runtime integration map.

Main entry points: [`extensions/window_frame/window_frame.cpp`](https://github.com/garze05/testshot-remake/blob/master/extensions/window_frame/window_frame.cpp) (Window frame extension), [`extensions/gamepad_force_focus/gamepad_force_focus.cpp`](https://github.com/garze05/testshot-remake/blob/master/extensions/gamepad_force_focus/gamepad_force_focus.cpp) (Gamepad focus hook), [`rooms`](https://github.com/garze05/testshot-remake/tree/master/rooms) (Game rooms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Game world"]
  node_player["Player controls"]
  node_combat["Combat and weapons"]
  node_enemies["Enemy behavior"]
  node_items["Keys and items"]
  node_doors["Doors and blocks"]
  node_hud["HUD"]
  node_levels["Game rooms"]
end

subgraph group_input["Input framework"]
  node_input_core["Input runtime"]
  node_input_bindings["Bindings and verbs"]
  node_input_players["Players and profiles"]
  node_input_gamepads["Gamepad support"]
  node_input_config["Input configuration"]
end

subgraph group_text["Text and rendering"]
  node_scribble["Scribble text system"]
  node_text_layout["Text layout and drawing"]
  node_text_shaders["Text shaders"]
end

subgraph group_native["Native extensions"]
  node_window_frame["Window frame extension<br/>[window_frame.cpp]"]
  node_focus_hook["Gamepad focus hook"]
end

node_windows["Windows APIs"]
node_player_actor(("Player"))

node_player_actor -->|"plays"| node_levels
node_window_frame -->|"calls APIs"| node_windows
node_focus_hook -->|"hooks API"| node_windows

click node_player "https://github.com/garze05/testshot-remake/tree/master/objects/obj_player"
click node_combat "https://github.com/garze05/testshot-remake/tree/master/objects/obj_bullet"
click node_enemies "https://github.com/garze05/testshot-remake/tree/master/objects/obj_enemyParent"
click node_items "https://github.com/garze05/testshot-remake/tree/master/objects/obj_itemParent"
click node_doors "https://github.com/garze05/testshot-remake/tree/master/objects/obj_doorParent"
click node_hud "https://github.com/garze05/testshot-remake/tree/master/objects/obj_hud"
click node_levels "https://github.com/garze05/testshot-remake/tree/master/rooms"
click node_input_core "https://github.com/garze05/testshot-remake/tree/master/scripts/__input_system_tick"
click node_input_bindings "https://github.com/garze05/testshot-remake/tree/master/scripts/input_binding_set"
click node_input_players "https://github.com/garze05/testshot-remake/tree/master/scripts/input_player_import"
click node_input_gamepads "https://github.com/garze05/testshot-remake/tree/master/scripts/__input_class_gamepad"
click node_input_config "https://github.com/garze05/testshot-remake/tree/master/scripts/__input_config_general"
click node_scribble "https://github.com/garze05/testshot-remake/tree/master/scripts/__scribble_system"
click node_text_layout "https://github.com/garze05/testshot-remake/tree/master/scripts/__scribble_gen_2_parser"
click node_text_shaders "https://github.com/garze05/testshot-remake/tree/master/shaders/__shd_scribble"
click node_window_frame "https://github.com/garze05/testshot-remake/blob/master/extensions/window_frame/window_frame.cpp"
click node_focus_hook "https://github.com/garze05/testshot-remake/blob/master/extensions/gamepad_force_focus/gamepad_force_focus.cpp"

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_combat,node_enemies,node_items,node_doors,node_hud,node_levels toneBlue
class node_input_core,node_input_bindings,node_input_players,node_input_gamepads,node_input_config toneAmber
class node_scribble,node_text_layout,node_text_shaders,node_windows toneMint
class node_window_frame,node_focus_hook toneRose
class node_player_actor toneIndigo
```

## Components

### Game world

- [Player controls](https://github.com/garze05/testshot-remake/tree/master/objects/obj_player): `objects/obj_player`
- [Combat and weapons](https://github.com/garze05/testshot-remake/tree/master/objects/obj_bullet): `objects/obj_bullet`
- [Enemy behavior](https://github.com/garze05/testshot-remake/tree/master/objects/obj_enemyParent): `objects/obj_enemyParent`
- [Keys and items](https://github.com/garze05/testshot-remake/tree/master/objects/obj_itemParent): `objects/obj_itemParent`
- [Doors and blocks](https://github.com/garze05/testshot-remake/tree/master/objects/obj_doorParent): `objects/obj_doorParent`
- [HUD](https://github.com/garze05/testshot-remake/tree/master/objects/obj_hud): `objects/obj_hud`
- [Game rooms](https://github.com/garze05/testshot-remake/tree/master/rooms): `rooms`

### Input framework

- [Input runtime](https://github.com/garze05/testshot-remake/tree/master/scripts/__input_system_tick): `scripts/__input_system_tick`
- [Bindings and verbs](https://github.com/garze05/testshot-remake/tree/master/scripts/input_binding_set): `scripts/input_binding_set`
- [Players and profiles](https://github.com/garze05/testshot-remake/tree/master/scripts/input_player_import): `scripts/input_player_import`
- [Gamepad support](https://github.com/garze05/testshot-remake/tree/master/scripts/__input_class_gamepad): `scripts/__input_class_gamepad`
- [Input configuration](https://github.com/garze05/testshot-remake/tree/master/scripts/__input_config_general): `scripts/__input_config_general`

### Text and rendering

- [Scribble text system](https://github.com/garze05/testshot-remake/tree/master/scripts/__scribble_system): `scripts/__scribble_system`
- [Text layout and drawing](https://github.com/garze05/testshot-remake/tree/master/scripts/__scribble_gen_2_parser): `scripts/__scribble_gen_2_parser`
- [Text shaders](https://github.com/garze05/testshot-remake/tree/master/shaders/__shd_scribble): `shaders/__shd_scribble`

### Native extensions

- [Window frame extension](https://github.com/garze05/testshot-remake/blob/master/extensions/window_frame/window_frame.cpp): `extensions/window_frame/window_frame.cpp`
- [Gamepad focus hook](https://github.com/garze05/testshot-remake/blob/master/extensions/gamepad_force_focus/gamepad_force_focus.cpp): `extensions/gamepad_force_focus/gamepad_force_focus.cpp`

### Other components

- **Windows APIs**
- **Player**

## Connections

- Player → Game rooms: plays
- Window frame extension → Windows APIs: calls APIs (evidence: `extensions/window_frame/window_frame.cpp`)
- Gamepad focus hook → Windows APIs: hooks API (evidence: `extensions/gamepad_force_focus/gamepad_force_focus.cpp`)
