# genizy/cc3d-source architecture

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

- Interactive diagram: https://gitdiagram.com/genizy/cc3d-source
- Repository: https://github.com/genizy/cc3d-source

## Overview

Crazy Cattle 3D is a Godot game. Its likely player journey is from the menu into a playable map, with in-game pause and persistent progress/settings, plus credits and trophy-room screens. The tree identifies these scenes and scripts, but no source excerpts document their calls or transitions; consequently, the diagram shows only likely flow as unverified dashed links. The readme describes the game and its distribution, not gameplay mechanics.

Main entry points: [`menu.tscn`](https://github.com/genizy/cc3d-source/blob/main/menu.tscn) (Main menu), [`worldmap.gd`](https://github.com/genizy/cc3d-source/blob/main/worldmap.gd) (World map), [`characternode.tscn`](https://github.com/genizy/cc3d-source/blob/main/characternode.tscn) (Player character), [`global.gd`](https://github.com/genizy/cc3d-source/blob/main/global.gd) (Global state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Menus and navigation"]
  node_menu["Main menu<br/>[menu.tscn]"]
  node_worldmap["World map<br/>[worldmap.gd]"]
  node_options["Options<br/>[options.gd]"]
  node_pause["Pause screen<br/>[pause.gd]"]
end

subgraph group_gameplay["Gameplay"]
  node_cattle["Player character<br/>[characternode.tscn]"]
  node_vehicle["Vehicle physics<br/>[vehicle_body_3d.gd]"]
  node_game_node["Gameplay node<br/>[node.gd]"]
  node_egypt["Egypt map<br/>[egypt.gd]"]
  node_sweden["Sweden map<br/>[sweden.gd]"]
end

subgraph group_state["Game state"]
  node_global["Global state<br/>[global.gd]"]
  node_save["Save state<br/>[save.gd]"]
end

subgraph group_support["Supporting screens"]
  node_credits["Credits<br/>[credits.gd]"]
  node_trophy["Trophy room<br/>[trophyroom.tscn]"]
end

node_player(("Player"))

node_player -.->|"starts at"| node_menu
node_menu -.->|"opens"| node_worldmap
node_worldmap -.->|"selects map"| node_egypt
node_worldmap -.->|"selects map"| node_sweden
node_player -.->|"controls"| node_cattle
node_cattle -.->|"uses physics"| node_vehicle
node_player -.->|"opens"| node_pause
node_menu -.->|"opens"| node_options
node_global -.->|"persists state"| node_save
node_menu -.->|"opens"| node_credits
node_menu -.->|"opens"| node_trophy

click node_menu "https://github.com/genizy/cc3d-source/blob/main/menu.tscn"
click node_worldmap "https://github.com/genizy/cc3d-source/blob/main/worldmap.gd"
click node_options "https://github.com/genizy/cc3d-source/blob/main/options.gd"
click node_cattle "https://github.com/genizy/cc3d-source/blob/main/characternode.tscn"
click node_vehicle "https://github.com/genizy/cc3d-source/blob/main/vehicle_body_3d.gd"
click node_game_node "https://github.com/genizy/cc3d-source/blob/main/node.gd"
click node_egypt "https://github.com/genizy/cc3d-source/blob/main/egypt.gd"
click node_sweden "https://github.com/genizy/cc3d-source/blob/main/sweden.gd"
click node_pause "https://github.com/genizy/cc3d-source/blob/main/pause.gd"
click node_global "https://github.com/genizy/cc3d-source/blob/main/global.gd"
click node_save "https://github.com/genizy/cc3d-source/blob/main/save.gd"
click node_credits "https://github.com/genizy/cc3d-source/blob/main/credits.gd"
click node_trophy "https://github.com/genizy/cc3d-source/blob/main/trophyroom.tscn"

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_menu,node_worldmap,node_options,node_pause toneBlue
class node_cattle,node_vehicle,node_game_node,node_egypt,node_sweden toneAmber
class node_global,node_save toneMint
class node_credits,node_trophy toneRose
class node_player toneIndigo
```

## Components

### Menus and navigation

- [Main menu](https://github.com/genizy/cc3d-source/blob/main/menu.tscn): `menu.tscn`
- [World map](https://github.com/genizy/cc3d-source/blob/main/worldmap.gd): `worldmap.gd`
- [Options](https://github.com/genizy/cc3d-source/blob/main/options.gd): `options.gd`
- [Pause screen](https://github.com/genizy/cc3d-source/blob/main/pause.gd): `pause.gd`

### Gameplay

- [Player character](https://github.com/genizy/cc3d-source/blob/main/characternode.tscn): `characternode.tscn`
- [Vehicle physics](https://github.com/genizy/cc3d-source/blob/main/vehicle_body_3d.gd): `vehicle_body_3d.gd`
- [Gameplay node](https://github.com/genizy/cc3d-source/blob/main/node.gd): `node.gd`
- [Egypt map](https://github.com/genizy/cc3d-source/blob/main/egypt.gd): `egypt.gd`
- [Sweden map](https://github.com/genizy/cc3d-source/blob/main/sweden.gd): `sweden.gd`

### Game state

- [Global state](https://github.com/genizy/cc3d-source/blob/main/global.gd): `global.gd`
- [Save state](https://github.com/genizy/cc3d-source/blob/main/save.gd): `save.gd`

### Supporting screens

- [Credits](https://github.com/genizy/cc3d-source/blob/main/credits.gd): `credits.gd`
- [Trophy room](https://github.com/genizy/cc3d-source/blob/main/trophyroom.tscn): `trophyroom.tscn`

### Other components

- **Player**

## Connections

- Player → Main menu: starts at
- Main menu → World map: opens
- World map → Egypt map: selects map
- World map → Sweden map: selects map
- Player → Player character: controls
- Player character → Vehicle physics: uses physics
- Player → Pause screen: opens
- Main menu → Options: opens
- Global state → Save state: persists state
- Main menu → Credits: opens
- Main menu → Trophy room: opens
