# ghaztly97/able-atelier-3ds architecture

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

- Interactive diagram: https://gitdiagram.com/ghaztly97/able-atelier-3ds
- Repository: https://github.com/ghaztly97/able-atelier-3ds

## Overview

Able Atelier is a LÖVE Potion application for editing Animal Crossing: New Leaf Welcome Amiibo patterns on a 3DS. The documented user workflow is to open the pattern editor, manipulate its view by rotating, scaling, and panning, and swap pattern palettes. The tree also identifies input, UI, object, and save-handling modules, but no source excerpts show how they connect; those relationships are therefore left unverified. The README documents the product capabilities and LÖVE Potion usage, not the internal call flow.

Main entry points: [`main.lua`](https://github.com/ghaztly97/able-atelier-3ds/blob/main/main.lua) (Pattern Editor), [`nest/runner.lua`](https://github.com/ghaztly97/able-atelier-3ds/blob/main/nest/runner.lua) (NEST Runner), [`scripts/inputs.lua`](https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/inputs.lua) (Input Handling), [`scripts/settingsui.lua`](https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/settingsui.lua) (Settings UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Pattern Editor"]
  node_pattern_editor["Pattern Editor<br/>[main.lua]"]
  node_pattern_objects["Editor Objects<br/>[objects.lua]"]
  node_view_controls["View Controls<br/>[uiElements.lua]"]
  node_pattern_assets["Pattern Assets"]
  node_palette_swap["Palette Swap<br/>[objects.lua]"]
end

subgraph group_interaction["User Interaction"]
  node_input_handling["Input Handling<br/>[inputs.lua]"]
  node_settings_ui["Settings UI<br/>[settingsui.lua]"]
  node_save_handling["Save Handling<br/>[saveHandler.lua]"]
end

subgraph group_runtime["Application Runtime"]
  node_app_entry["App Entry<br/>[main.lua]"]
  node_nest_runner["NEST Runner<br/>[runner.lua]"]
  node_nest_input["NEST Input<br/>[input.lua]"]
  node_nest_video["NEST Video<br/>[video.lua]"]
end

subgraph group_libraries["Libraries"]
  node_camera["Camera<br/>[camera.lua]"]
  node_hexatonic["Hexatonic<br/>[hexatonic.lua]"]
end

node_user(("3DS User"))
node_love_potion["LÖVE Potion"]

node_user -->|"edits patterns"| node_pattern_editor
node_pattern_editor -.->|"offers view control"| node_view_controls
node_pattern_editor -.->|"swaps palettes"| node_palette_swap
node_pattern_editor -.->|"edits patterns"| node_pattern_objects
node_pattern_editor -.->|"uses assets"| node_pattern_assets
node_input_handling -.->|"controls editor"| node_pattern_editor
node_settings_ui -.->|"configures editor"| node_pattern_editor
node_pattern_editor -.->|"saves patterns"| node_save_handling
node_app_entry -.->|"starts runtime"| node_nest_runner
node_app_entry -.->|"runs editor"| node_pattern_editor
node_nest_runner -.->|"dispatches input"| node_nest_input
node_nest_runner -.->|"uses video"| node_nest_video
node_app_entry -->|"runs on"| node_love_potion

click node_pattern_editor "https://github.com/ghaztly97/able-atelier-3ds/blob/main/main.lua"
click node_pattern_objects "https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/objects.lua"
click node_view_controls "https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/uiElements.lua"
click node_pattern_assets "https://github.com/ghaztly97/able-atelier-3ds/tree/main/assets/images"
click node_palette_swap "https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/objects.lua"
click node_input_handling "https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/inputs.lua"
click node_settings_ui "https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/settingsui.lua"
click node_save_handling "https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/saveHandler.lua"
click node_app_entry "https://github.com/ghaztly97/able-atelier-3ds/blob/main/main.lua"
click node_nest_runner "https://github.com/ghaztly97/able-atelier-3ds/blob/main/nest/runner.lua"
click node_nest_input "https://github.com/ghaztly97/able-atelier-3ds/blob/main/nest/modules/input.lua"
click node_nest_video "https://github.com/ghaztly97/able-atelier-3ds/blob/main/nest/modules/video.lua"
click node_camera "https://github.com/ghaztly97/able-atelier-3ds/blob/main/libraries/camera.lua"
click node_hexatonic "https://github.com/ghaztly97/able-atelier-3ds/blob/main/libraries/hexatonic.lua"

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_pattern_editor,node_pattern_objects,node_view_controls,node_pattern_assets,node_palette_swap,node_user toneBlue
class node_input_handling,node_settings_ui,node_save_handling toneAmber
class node_app_entry,node_nest_runner,node_nest_input,node_nest_video toneMint
class node_camera,node_hexatonic toneRose
class node_love_potion toneIndigo
```

## Components

### Pattern Editor

- [Pattern Editor](https://github.com/ghaztly97/able-atelier-3ds/blob/main/main.lua): `main.lua`
- [Editor Objects](https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/objects.lua): `scripts/objects.lua`
- [View Controls](https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/uiElements.lua): `scripts/uiElements.lua`
- [Pattern Assets](https://github.com/ghaztly97/able-atelier-3ds/tree/main/assets/images): `assets/images`
- [Palette Swap](https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/objects.lua): `scripts/objects.lua`

### User Interaction

- [Input Handling](https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/inputs.lua): `scripts/inputs.lua`
- [Settings UI](https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/settingsui.lua): `scripts/settingsui.lua`
- [Save Handling](https://github.com/ghaztly97/able-atelier-3ds/blob/main/scripts/saveHandler.lua): `scripts/saveHandler.lua`

### Application Runtime

- [App Entry](https://github.com/ghaztly97/able-atelier-3ds/blob/main/main.lua): `main.lua`
- [NEST Runner](https://github.com/ghaztly97/able-atelier-3ds/blob/main/nest/runner.lua): `nest/runner.lua`
- [NEST Input](https://github.com/ghaztly97/able-atelier-3ds/blob/main/nest/modules/input.lua): `nest/modules/input.lua`
- [NEST Video](https://github.com/ghaztly97/able-atelier-3ds/blob/main/nest/modules/video.lua): `nest/modules/video.lua`

### Libraries

- [Camera](https://github.com/ghaztly97/able-atelier-3ds/blob/main/libraries/camera.lua): `libraries/camera.lua`
- [Hexatonic](https://github.com/ghaztly97/able-atelier-3ds/blob/main/libraries/hexatonic.lua): `libraries/hexatonic.lua`

### Other components

- **3DS User**
- **LÖVE Potion**

## Connections

- 3DS User → Pattern Editor: edits patterns (evidence: `README.md`)
- Pattern Editor → View Controls: offers view control
- Pattern Editor → Palette Swap: swaps palettes
- Pattern Editor → Editor Objects: edits patterns
- Pattern Editor → Pattern Assets: uses assets
- Input Handling → Pattern Editor: controls editor
- Settings UI → Pattern Editor: configures editor
- Pattern Editor → Save Handling: saves patterns
- App Entry → NEST Runner: starts runtime
- App Entry → Pattern Editor: runs editor
- NEST Runner → NEST Input: dispatches input
- NEST Runner → NEST Video: uses video
- App Entry → LÖVE Potion: runs on (evidence: `README.md`)
