# dhairyamishra70-hash/operation-overwatch architecture

> Architecture diagram of the GitHub repository dhairyamishra70-hash/operation-overwatch, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dhairyamishra70-hash/operation-overwatch
- Repository: https://github.com/dhairyamishra70-hash/operation-overwatch

## Overview

Operation: Overwatch is a Pygame tower-defense game. The player enters through an intro and menu, starts a match, and defends a base through escalating enemy waves using deployable and upgradeable archers, tactical funds, and a killstreak volley. The main gameplay and menu appear in main.py; Game window.py and Game_systems.py contain overlapping implementations, and Enemy.py is a separate enemy-related source file. Relationships among those files are not shown, so they are represented separately rather than as an assumed pipeline.

Main entry points: [`main.py`](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py) (Intro and menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Game interface"]
  node_intro_menu["Intro and menu<br/>[main.py]"]
  node_game_loop["Game loop<br/>[main.py]"]
  node_battle_display["Battle display<br/>[main.py]"]
end

subgraph group_battle["Battle gameplay"]
  node_wave_control["Wave control<br/>[main.py]"]
  node_enemy_units["Enemy units<br/>[main.py]"]
  node_base_defense["Base health<br/>[main.py]"]
  node_archers["Archer deployment<br/>[main.py]"]
  node_upgrades["Archer upgrades<br/>[main.py]"]
  node_funds["Tactical funds<br/>[main.py]"]
  node_arrows["Arrows<br/>[main.py]"]
  node_killstreak["Killstreak volley<br/>[main.py]"]
end

subgraph group_alternate["Other implementations"]
  node_alternate_game["Alternate game systems<br/>[Game_systems.py]"]
  node_alternate_window["Alternate window<br/>[Game window.py]"]
  node_enemy_module["Enemy module<br/>[Enemy.py]"]
end

node_player(("Player"))

node_player -->|"chooses mode"| node_intro_menu
node_intro_menu -->|"starts match"| node_game_loop
node_player -->|"deploys"| node_archers
node_player -->|"upgrades"| node_upgrades
node_player -->|"uses ability"| node_killstreak
node_player -->|"defends waves"| node_wave_control
node_player -->|"manages"| node_funds
node_game_loop -->|"routes input"| node_intro_menu

click node_intro_menu "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_game_loop "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_wave_control "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_enemy_units "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_base_defense "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_archers "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_upgrades "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_funds "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_arrows "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_killstreak "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_battle_display "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py"
click node_alternate_game "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/Game_systems.py"
click node_alternate_window "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/Game%20window.py"
click node_enemy_module "https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/Enemy.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_intro_menu,node_game_loop,node_battle_display toneBlue
class node_wave_control,node_enemy_units,node_base_defense,node_archers,node_upgrades,node_funds,node_arrows,node_killstreak toneAmber
class node_alternate_game,node_alternate_window,node_enemy_module toneMint
class node_player toneIndigo
```

## Components

### Game interface

- [Intro and menu](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`
- [Game loop](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`
- [Battle display](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`

### Battle gameplay

- [Wave control](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`
- [Enemy units](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`
- [Base health](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`
- [Archer deployment](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`
- [Archer upgrades](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`
- [Tactical funds](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`
- [Arrows](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`
- [Killstreak volley](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/main.py): `main.py`

### Other implementations

- [Alternate game systems](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/Game_systems.py): `Game_systems.py`
- [Alternate window](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/Game%20window.py): `Game window.py`
- [Enemy module](https://github.com/dhairyamishra70-hash/operation-overwatch/blob/main/Enemy.py): `Enemy.py`

### Other components

- **Player**

## Connections

- Player → Intro and menu: chooses mode (evidence: `main.py`)
- Intro and menu → Game loop: starts match (evidence: `main.py`)
- Player → Archer deployment: deploys (evidence: `README.md`)
- Player → Archer upgrades: upgrades (evidence: `README.md`)
- Player → Killstreak volley: uses ability (evidence: `README.md`)
- Player → Wave control: defends waves (evidence: `README.md`)
- Player → Tactical funds: manages (evidence: `README.md`)
- Game loop → Intro and menu: routes input (evidence: `main.py`)
