# ethanespar/farming-game-hw6 architecture

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

- Interactive diagram: https://gitdiagram.com/ethanespar/farming-game-hw6
- Repository: https://github.com/ethanespar/farming-game-hw6

## Overview

This Unity project appears to be a farm-game prototype organized around intro, farming, shop, and crop-simulation scenes. Its likely player workflow is navigating the farm, interacting with tiles and plants, and using seed/fund counters alongside scene transitions. The tree also shows crop assets, camera following, and a day/night controller. No README content or source excerpts were provided, so runtime relationships are not verifiable; dashed, uncited edges indicate only tentative connections inferred from names and layout.

Main entry points: [`Assets/Level0/LoadScene.cs`](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level0/LoadScene.cs) (Scene Loader), [`Assets/Level1/FarmTile/FarmTileControl.cs`](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/FarmTile/FarmTileControl.cs) (Tile Control), [`Assets/Level1/Player/PlayerMove.cs`](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/Player/PlayerMove.cs) (Player Movement), [`Assets/Level1/Player/PlayerInteractPoint.cs`](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/Player/PlayerInteractPoint.cs) (Interaction Point)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_flow["Scene Flow"]
  node_intro["Intro Scene<br/>[Scene0-Intro.unity]"]
  node_farm_scene["Farming Scene"]
  node_shop_scene["Shop Scene<br/>[Scene2-Shop.unity]"]
  node_crop_scene["Crop Simulation"]
  node_scene_loader["Scene Loader<br/>[LoadScene.cs]"]
end

subgraph group_farm["Farming Gameplay"]
  node_player["Player Movement<br/>[PlayerMove.cs]"]
  node_interact["Interaction Point"]
  node_tile_manager["Tile Manager<br/>[FarmTIleManager.cs]"]
  node_tile_control["Tile Control<br/>[FarmTileControl.cs]"]
  node_plant_manager["Plant Manager<br/>[plantManager.cs]"]
  node_plant["Plant State<br/>[Plant.cs]"]
  node_seed_counter["Seed Counter<br/>[seedCounter.cs]"]
  node_fund_counter["Fund Counter<br/>[fundCounter.cs]"]
  node_shop_economy["Shop Economy"]
end

subgraph group_world["World Presentation"]
  node_camera["Camera Follow<br/>[CameraFollow.cs]"]
  node_daynight["Day Night Cycle<br/>[DayNightControl.cs]"]
  node_crop_assets["Crop Assets"]
end

node_player -.->|"uses"| node_interact
node_interact -.->|"interacts with"| node_tile_control
node_tile_manager -.->|"manages"| node_tile_control
node_plant_manager -.->|"manages"| node_plant
node_tile_control -.->|"dispatches to"| node_plant_manager
node_seed_counter -.->|"tracks seeds for"| node_shop_economy
node_fund_counter -.->|"tracks funds for"| node_shop_economy
node_scene_loader -.->|"loads"| node_intro
node_scene_loader -.->|"loads"| node_farm_scene
node_scene_loader -.->|"loads"| node_shop_scene
node_scene_loader -.->|"loads"| node_crop_scene
node_camera -.->|"follows"| node_player
node_plant -.->|"may use"| node_crop_assets

click node_player "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/Player/PlayerMove.cs"
click node_interact "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/Player/PlayerInteractPoint.cs"
click node_tile_manager "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/FarmTile/FarmTIleManager.cs"
click node_tile_control "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/FarmTile/FarmTileControl.cs"
click node_plant_manager "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/plantManager.cs"
click node_plant "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/Plant/Plant.cs"
click node_seed_counter "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/seedCounter.cs"
click node_fund_counter "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/fundCounter.cs"
click node_shop_economy "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/SeedsMoneyScene2.cs"
click node_intro "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/FarmGameScenes/Scene0-Intro.unity"
click node_farm_scene "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/FarmGameScenes/Scene1-FarmingSim.unity"
click node_shop_scene "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/FarmGameScenes/Scene2-Shop.unity"
click node_crop_scene "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/FarmGameScenes/Scene3-Crop%20Sim.unity"
click node_scene_loader "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level0/LoadScene.cs"
click node_camera "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Camera/CameraFollow.cs"
click node_daynight "https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/DayNightCycle/DayNightControl.cs"
click node_crop_assets "https://github.com/ethanespar/farming-game-hw6/tree/main/Assets/Cartoon_Farm_Crops/Prefabs/Standard"

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_intro,node_farm_scene,node_shop_scene,node_crop_scene,node_scene_loader toneBlue
class node_player,node_interact,node_tile_manager,node_tile_control,node_plant_manager,node_plant,node_seed_counter,node_fund_counter,node_shop_economy toneAmber
class node_camera,node_daynight,node_crop_assets toneMint
```

## Components

### Scene Flow

- [Intro Scene](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/FarmGameScenes/Scene0-Intro.unity): `Assets/FarmGameScenes/Scene0-Intro.unity`
- [Farming Scene](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/FarmGameScenes/Scene1-FarmingSim.unity): `Assets/FarmGameScenes/Scene1-FarmingSim.unity`
- [Shop Scene](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/FarmGameScenes/Scene2-Shop.unity): `Assets/FarmGameScenes/Scene2-Shop.unity`
- [Crop Simulation](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/FarmGameScenes/Scene3-Crop%20Sim.unity): `Assets/FarmGameScenes/Scene3-Crop Sim.unity`
- [Scene Loader](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level0/LoadScene.cs): `Assets/Level0/LoadScene.cs`

### Farming Gameplay

- [Player Movement](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/Player/PlayerMove.cs): `Assets/Level1/Player/PlayerMove.cs`
- [Interaction Point](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/Player/PlayerInteractPoint.cs): `Assets/Level1/Player/PlayerInteractPoint.cs`
- [Tile Manager](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/FarmTile/FarmTIleManager.cs): `Assets/Level1/FarmTile/FarmTIleManager.cs`
- [Tile Control](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/FarmTile/FarmTileControl.cs): `Assets/Level1/FarmTile/FarmTileControl.cs`
- [Plant Manager](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/plantManager.cs): `Assets/Level1/plantManager.cs`
- [Plant State](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/Plant/Plant.cs): `Assets/Level1/Plant/Plant.cs`
- [Seed Counter](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/seedCounter.cs): `Assets/Level1/seedCounter.cs`
- [Fund Counter](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/fundCounter.cs): `Assets/Level1/fundCounter.cs`
- [Shop Economy](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Level1/SeedsMoneyScene2.cs): `Assets/Level1/SeedsMoneyScene2.cs`

### World Presentation

- [Camera Follow](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/Camera/CameraFollow.cs): `Assets/Camera/CameraFollow.cs`
- [Day Night Cycle](https://github.com/ethanespar/farming-game-hw6/blob/main/Assets/DayNightCycle/DayNightControl.cs): `Assets/DayNightCycle/DayNightControl.cs`
- [Crop Assets](https://github.com/ethanespar/farming-game-hw6/tree/main/Assets/Cartoon_Farm_Crops/Prefabs/Standard): `Assets/Cartoon_Farm_Crops/Prefabs/Standard`

## Connections

- Player Movement → Interaction Point: uses
- Interaction Point → Tile Control: interacts with
- Tile Manager → Tile Control: manages
- Plant Manager → Plant State: manages
- Tile Control → Plant Manager: dispatches to
- Seed Counter → Shop Economy: tracks seeds for
- Fund Counter → Shop Economy: tracks funds for
- Scene Loader → Intro Scene: loads
- Scene Loader → Farming Scene: loads
- Scene Loader → Shop Scene: loads
- Scene Loader → Crop Simulation: loads
- Camera Follow → Player Movement: follows
- Plant State → Crop Assets: may use
