# jhdev2006/super-mario-bros.-remastered-public architecture

> Architecture diagram of the GitHub repository jhdev2006/super-mario-bros.-remastered-public, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jhdev2006/super-mario-bros.-remastered-public
- Repository: https://github.com/jhdev2006/super-mario-bros.-remastered-public
- Video tour (about a minute): https://gitdiagram.com/jhdev2006/super-mario-bros.-remastered-public/video

## Overview

Super Mario Bros. Remastered is a Godot platform game and level-creation ecosystem. The principal workflow is: a player selects a mode, the runtime loads built-in or custom level content, gameplay updates the player and entities under game rules, and the UI presents the resulting run. The graph also preserves documented variants, resource packs, custom characters, localization, level editing, terrain tooling, and level sharing. Wiring is inferred from the documented product structure and tree; only the BetterTerrain wrapper was directly sampled.

Main entry points: [`Scenes`](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes) (Game Flow), [`Scripts/UI`](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/UI) (Game UI), [`Scripts/Classes/Entities`](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/Classes/Entities) (Player Controller), [`Scenes/Prefabs/Editor`](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes/Prefabs/Editor) (Level Editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Game Experience"]
  node_ui["Game UI"]
  node_game_flow["Game Flow"]
  node_results["Run Results"]
end

subgraph group_gameplay["Gameplay Runtime"]
  node_player_controller["Player Controller"]
  node_entities["Game Entities"]
  node_game_rules["Game Rules"]
  node_audio["Audio System"]
end

subgraph group_content["Game Content"]
  node_built_in_levels["Built-in Levels"]
  node_game_variants["Game Variants"]
  node_custom_levels["Custom Levels"]
  node_resource_packs["Resource Packs"]
  node_custom_characters["Custom Characters"]
  node_localization[("Localization")]
end

subgraph group_creation["Creation Tools"]
  node_level_editor["Level Editor"]
  node_terrain_editing["Terrain Editing<br/>[BetterTerrain.cs]"]
end

node_player(("Player"))
node_level_author(("Level Author"))
node_level_share["Level Share Square"]

node_player -->|"selects modes"| node_ui
node_ui -->|"starts game"| node_game_flow
node_game_flow -->|"loads variant"| node_game_variants
node_game_flow -->|"loads levels"| node_built_in_levels
node_game_flow -.->|"loads custom"| node_custom_levels
node_game_flow -->|"starts play"| node_player_controller
node_player_controller -->|"updates entities"| node_entities
node_player_controller -->|"checks actions"| node_game_rules
node_game_rules -->|"returns outcome"| node_game_flow
node_game_flow -->|"shows results"| node_results
node_game_flow -->|"plays feedback"| node_audio
node_ui -->|"reads strings"| node_localization
node_resource_packs -.->|"customizes assets"| node_game_flow
node_custom_characters -.->|"adds characters"| node_game_flow
node_level_author -->|"creates levels"| node_level_editor
node_level_editor -->|"writes levels"| node_custom_levels
node_level_editor -->|"edits terrain"| node_terrain_editing
node_custom_levels -.->|"shares levels"| node_level_share

click node_ui "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/UI"
click node_game_flow "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes"
click node_results "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/Classes/UI"
click node_player_controller "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/Classes/Entities"
click node_entities "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/Classes/Entities"
click node_game_rules "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/Classes/States"
click node_audio "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Assets/Audio"
click node_built_in_levels "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes/Levels"
click node_game_variants "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes/Levels/SMB1"
click node_custom_levels "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes/Levels"
click node_resource_packs "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Resources/ThemedResources"
click node_custom_characters "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Resources/SpriteFrames/Player"
click node_localization "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Assets/Locale"
click node_level_editor "https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes/Prefabs/Editor"
click node_terrain_editing "https://github.com/jhdev2006/super-mario-bros.-remastered-public/blob/main/addons/better-terrain/BetterTerrain.cs"

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_ui,node_game_flow,node_results toneBlue
class node_player_controller,node_entities,node_game_rules,node_audio toneAmber
class node_built_in_levels,node_game_variants,node_custom_levels,node_resource_packs,node_custom_characters,node_localization toneMint
class node_level_editor,node_terrain_editing toneRose
class node_player,node_level_author,node_level_share toneIndigo
```

## Components

### Game Experience

- [Game UI](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/UI): `Scripts/UI`
- [Game Flow](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes): `Scenes`
- [Run Results](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/Classes/UI): `Scripts/Classes/UI`

### Gameplay Runtime

- [Player Controller](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/Classes/Entities): `Scripts/Classes/Entities`
- [Game Entities](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/Classes/Entities): `Scripts/Classes/Entities`
- [Game Rules](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scripts/Classes/States): `Scripts/Classes/States`
- [Audio System](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Assets/Audio): `Assets/Audio`

### Game Content

- [Built-in Levels](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes/Levels): `Scenes/Levels`
- [Game Variants](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes/Levels/SMB1): `Scenes/Levels/SMB1`
- [Custom Levels](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes/Levels): `Scenes/Levels`
- [Resource Packs](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Resources/ThemedResources): `Resources/ThemedResources`
- [Custom Characters](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Resources/SpriteFrames/Player): `Resources/SpriteFrames/Player`
- [Localization](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Assets/Locale): `Assets/Locale`

### Creation Tools

- [Level Editor](https://github.com/jhdev2006/super-mario-bros.-remastered-public/tree/main/Scenes/Prefabs/Editor): `Scenes/Prefabs/Editor`
- [Terrain Editing](https://github.com/jhdev2006/super-mario-bros.-remastered-public/blob/main/addons/better-terrain/BetterTerrain.cs): `addons/better-terrain/BetterTerrain.cs`

### Other components

- **Player**
- **Level Author**
- **Level Share Square**

## Connections

- Player → Game UI: selects modes
- Game UI → Game Flow: starts game
- Game Flow → Game Variants: loads variant
- Game Flow → Built-in Levels: loads levels
- Game Flow → Custom Levels: loads custom
- Game Flow → Player Controller: starts play
- Player Controller → Game Entities: updates entities
- Player Controller → Game Rules: checks actions
- Game Rules → Game Flow: returns outcome
- Game Flow → Run Results: shows results
- Game Flow → Audio System: plays feedback
- Game UI → Localization: reads strings
- Resource Packs → Game Flow: customizes assets
- Custom Characters → Game Flow: adds characters
- Level Author → Level Editor: creates levels
- Level Editor → Custom Levels: writes levels
- Level Editor → Terrain Editing: edits terrain
- Custom Levels → Level Share Square: shares levels
