# opendcai/gamefactory-3a architecture

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

- Interactive diagram: https://gitdiagram.com/opendcai/gamefactory-3a
- Repository: https://github.com/opendcai/gamefactory-3a

## Overview

3AGameFactory is an agent-driven framework for turning game requirements into generated assets, gameplay/UI code, and engine-ready projects. The documented entry point routes an agent toward asset skills and engine API context; the major asset stages include image, 3D, motion, audio, and CG video, with scene and code generation also represented in the repository. Engine adapters provide support for five documented engines. The README establishes the high-level workflow, but sampled source is insufficient to verify most cross-package runtime calls, so those links are documented or left unasserted.

Main entry points: [`models`](https://github.com/opendcai/gamefactory-3a/tree/main/models) (Asset Generation), [`engine_adapters`](https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters) (Engine API Context), [`agent_skills`](https://github.com/opendcai/gamefactory-3a/tree/main/agent_skills) (Skill Entry), [`engine_adapters/browser_serving/gateway/app.py`](https://github.com/opendcai/gamefactory-3a/blob/main/engine_adapters/browser_serving/gateway/app.py) (Browser Gateway)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Agent Workflow"]
  node_requirement["Game Requirement"]
  node_skill_entry["Skill Entry"]
end

subgraph group_generation["Asset Generation"]
  node_asset_gen["Asset Generation"]
  node_image["Image Generation"]
  node_objects["3D Objects"]
  node_scenes["3D Scenes"]
  node_motion["Motion Generation"]
  node_audio["Audio Generation"]
  node_cg_video["CG Video"]
  node_operators["Generation Operators"]
end

subgraph group_construction["Game Construction"]
  node_pipeline["Code Pipelines"]
  node_engine_context["Engine API Context"]
end

subgraph group_engines["Engine Adapters"]
  node_blender["Blender Adapter"]
  node_ue5["UE5 Adapter"]
  node_unity["Unity Adapter"]
  node_godot["Godot Adapter"]
  node_threejs["three.js Adapter"]
end

subgraph group_serving["Browser Serving"]
  node_browser_gateway["Browser Gateway<br/>[app.py]"]
  node_browser_service["Serving Service<br/>[service.py]"]
  node_browser_client["Browser Client<br/>[client.py]"]
end

node_agent(("Coding Agent"))
node_web_user(("Browser User"))

node_agent -->|"receives"| node_requirement
node_agent -->|"reads first"| node_skill_entry
node_skill_entry -.->|"routes to"| node_asset_gen
node_skill_entry -.->|"routes to"| node_engine_context
node_asset_gen -.->|"covers"| node_image
node_asset_gen -.->|"covers"| node_objects
node_asset_gen -.->|"covers"| node_scenes
node_asset_gen -.->|"covers"| node_motion
node_asset_gen -.->|"covers"| node_audio
node_asset_gen -.->|"covers"| node_cg_video
node_agent -->|"calls pipelines"| node_operators
node_agent -->|"calls pipelines"| node_pipeline
node_engine_context -.->|"supports"| node_blender
node_engine_context -.->|"supports"| node_ue5
node_engine_context -.->|"supports"| node_unity
node_engine_context -.->|"supports"| node_godot
node_engine_context -.->|"supports"| node_threejs
node_web_user -.->|"requests"| node_browser_gateway
node_browser_gateway -->|"calls"| node_browser_service
node_browser_client -.->|"uses HTTP"| node_browser_gateway

click node_skill_entry "https://github.com/opendcai/gamefactory-3a/tree/main/agent_skills"
click node_asset_gen "https://github.com/opendcai/gamefactory-3a/tree/main/models"
click node_image "https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_image"
click node_objects "https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_3d_object"
click node_scenes "https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_3d_scene"
click node_motion "https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_motion"
click node_audio "https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_audio"
click node_cg_video "https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_cg_video"
click node_operators "https://github.com/opendcai/gamefactory-3a/tree/main/operators"
click node_pipeline "https://github.com/opendcai/gamefactory-3a/tree/main/pipeline"
click node_engine_context "https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters"
click node_blender "https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/blender"
click node_ue5 "https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/ue5"
click node_unity "https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/unity3d"
click node_godot "https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/godot"
click node_threejs "https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/three_js"
click node_browser_gateway "https://github.com/opendcai/gamefactory-3a/blob/main/engine_adapters/browser_serving/gateway/app.py"
click node_browser_service "https://github.com/opendcai/gamefactory-3a/blob/main/engine_adapters/browser_serving/service.py"
click node_browser_client "https://github.com/opendcai/gamefactory-3a/blob/main/engine_adapters/browser_serving/client/client.py"

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_requirement,node_skill_entry,node_web_user toneBlue
class node_asset_gen,node_image,node_objects,node_scenes,node_motion,node_audio,node_cg_video,node_operators toneAmber
class node_pipeline,node_engine_context toneMint
class node_blender,node_ue5,node_unity,node_godot,node_threejs toneRose
class node_browser_gateway,node_browser_service,node_browser_client,node_agent toneIndigo
```

## Components

### Agent Workflow

- **Game Requirement**
- [Skill Entry](https://github.com/opendcai/gamefactory-3a/tree/main/agent_skills): `agent_skills`

### Asset Generation

- [Asset Generation](https://github.com/opendcai/gamefactory-3a/tree/main/models): `models`
- [Image Generation](https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_image): `models/gen_image`
- [3D Objects](https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_3d_object): `models/gen_3d_object`
- [3D Scenes](https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_3d_scene): `models/gen_3d_scene`
- [Motion Generation](https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_motion): `models/gen_motion`
- [Audio Generation](https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_audio): `models/gen_audio`
- [CG Video](https://github.com/opendcai/gamefactory-3a/tree/main/models/gen_cg_video): `models/gen_cg_video`
- [Generation Operators](https://github.com/opendcai/gamefactory-3a/tree/main/operators): `operators`

### Game Construction

- [Code Pipelines](https://github.com/opendcai/gamefactory-3a/tree/main/pipeline): `pipeline`
- [Engine API Context](https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters): `engine_adapters`

### Engine Adapters

- [Blender Adapter](https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/blender): `engine_adapters/blender`
- [UE5 Adapter](https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/ue5): `engine_adapters/ue5`
- [Unity Adapter](https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/unity3d): `engine_adapters/unity3d`
- [Godot Adapter](https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/godot): `engine_adapters/godot`
- [three.js Adapter](https://github.com/opendcai/gamefactory-3a/tree/main/engine_adapters/three_js): `engine_adapters/three_js`

### Browser Serving

- [Browser Gateway](https://github.com/opendcai/gamefactory-3a/blob/main/engine_adapters/browser_serving/gateway/app.py): `engine_adapters/browser_serving/gateway/app.py`
- [Serving Service](https://github.com/opendcai/gamefactory-3a/blob/main/engine_adapters/browser_serving/service.py): `engine_adapters/browser_serving/service.py`
- [Browser Client](https://github.com/opendcai/gamefactory-3a/blob/main/engine_adapters/browser_serving/client/client.py): `engine_adapters/browser_serving/client/client.py`

### Other components

- **Coding Agent**
- **Browser User**

## Connections

- Coding Agent → Game Requirement: receives (evidence: `README.md`)
- Coding Agent → Skill Entry: reads first (evidence: `README.md`)
- Skill Entry → Asset Generation: routes to (evidence: `README.md`)
- Skill Entry → Engine API Context: routes to (evidence: `README.md`)
- Asset Generation → Image Generation: covers (evidence: `README.md`)
- Asset Generation → 3D Objects: covers (evidence: `README.md`)
- Asset Generation → 3D Scenes: covers (evidence: `README.md`)
- Asset Generation → Motion Generation: covers (evidence: `README.md`)
- Asset Generation → Audio Generation: covers (evidence: `README.md`)
- Asset Generation → CG Video: covers (evidence: `README.md`)
- Coding Agent → Generation Operators: calls pipelines (evidence: `README.md`)
- Coding Agent → Code Pipelines: calls pipelines (evidence: `README.md`)
- Engine API Context → Blender Adapter: supports (evidence: `README.md`)
- Engine API Context → UE5 Adapter: supports (evidence: `README.md`)
- Engine API Context → Unity Adapter: supports (evidence: `README.md`)
- Engine API Context → Godot Adapter: supports (evidence: `README.md`)
- Engine API Context → three.js Adapter: supports (evidence: `README.md`)
- Browser User → Browser Gateway: requests
- Browser Gateway → Serving Service: calls (evidence: `engine_adapters/browser_serving/gateway/app.py`)
- Browser Client → Browser Gateway: uses HTTP
