# ciahotnyl/tamz_moorhuhn architecture

> Architecture diagram of the GitHub repository ciahotnyl/tamz_moorhuhn, 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/ciahotnyl/tamz_moorhuhn
- Repository: https://github.com/ciahotnyl/tamz_moorhuhn

## Overview

Moorhuhn is a single-player Android shooting game. The documented workflow is menu and difficulty selection, play across increasingly difficult levels, then game-over scoring and high-score recording. The README supports these user-facing stages, but no application source was excerpted, so internal call relationships are not asserted; peripheral runtime modules are shown without guessed connections.

Main entry points: [`app/src/main/java/com/example/school/moorhuhn/GameActivity.java`](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameActivity.java) (Game screen), [`app/src/main/java/com/example/school/moorhuhn/GameView.java`](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameView.java) (Game view), [`app/src/main/java/com/example/school/moorhuhn/ScoreActivity.java`](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/ScoreActivity.java) (Game over), [`app/src/main/java/com/example/school/moorhuhn/MainActivity.java`](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/MainActivity.java) (Main menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Screens"]
  node_menu["Main menu<br/>[MainActivity.java]"]
  node_game["Game screen<br/>[GameActivity.java]"]
  node_maps["Maps screen<br/>[MapsActivity.java]"]
end

subgraph group_gameplay["Gameplay"]
  node_gameview["Game view<br/>[GameView.java]"]
  node_gamethread["Game thread<br/>[GameThread.java]"]
  node_sprite["Game sprites<br/>[Sprite.java]"]
  node_levels["Level progression<br/>[GameActivity.java]"]
  node_shooting["Shooting and hits<br/>[GameView.java]"]
end

subgraph group_support["Game Support"]
  node_timer["Countdown timer"]
  node_sound["Sound playback<br/>[SoundPlayer.java]"]
end

subgraph group_results["Results"]
  node_gameover["Game over<br/>[ScoreActivity.java]"]
  node_highscore["High score<br/>[ScoreActivity.java]"]
end

node_player(("Player"))

node_player -->|"opens"| node_menu
node_player -->|"chooses difficulty"| node_game
node_player -->|"clicks to shoot"| node_shooting
node_game -->|"plays levels"| node_levels
node_levels -->|"ends at zero lives"| node_gameover
node_gameover -->|"checks and records"| node_highscore
node_gameview -.-> node_gamethread
node_gameview -.-> node_sprite
node_game -.-> node_timer
node_game -.-> node_sound

click node_menu "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/MainActivity.java"
click node_game "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameActivity.java"
click node_maps "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/MapsActivity.java"
click node_gameview "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameView.java"
click node_gamethread "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameThread.java"
click node_sprite "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/Sprite.java"
click node_levels "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameActivity.java"
click node_shooting "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameView.java"
click node_timer "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/CountDownTimer.java"
click node_sound "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/SoundPlayer.java"
click node_gameover "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/ScoreActivity.java"
click node_highscore "https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/ScoreActivity.java"

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_game,node_maps toneBlue
class node_gameview,node_gamethread,node_sprite,node_levels,node_shooting toneAmber
class node_timer,node_sound toneMint
class node_gameover,node_highscore toneRose
class node_player toneIndigo
```

## Components

### Screens

- [Main menu](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/MainActivity.java): `app/src/main/java/com/example/school/moorhuhn/MainActivity.java`
- [Game screen](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameActivity.java): `app/src/main/java/com/example/school/moorhuhn/GameActivity.java`
- [Maps screen](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/MapsActivity.java): `app/src/main/java/com/example/school/moorhuhn/MapsActivity.java`

### Gameplay

- [Game view](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameView.java): `app/src/main/java/com/example/school/moorhuhn/GameView.java`
- [Game thread](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameThread.java): `app/src/main/java/com/example/school/moorhuhn/GameThread.java`
- [Game sprites](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/Sprite.java): `app/src/main/java/com/example/school/moorhuhn/Sprite.java`
- [Level progression](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameActivity.java): `app/src/main/java/com/example/school/moorhuhn/GameActivity.java`
- [Shooting and hits](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/GameView.java): `app/src/main/java/com/example/school/moorhuhn/GameView.java`

### Game Support

- [Countdown timer](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/CountDownTimer.java): `app/src/main/java/com/example/school/moorhuhn/CountDownTimer.java`
- [Sound playback](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/SoundPlayer.java): `app/src/main/java/com/example/school/moorhuhn/SoundPlayer.java`

### Results

- [Game over](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/ScoreActivity.java): `app/src/main/java/com/example/school/moorhuhn/ScoreActivity.java`
- [High score](https://github.com/ciahotnyl/tamz_moorhuhn/blob/master/app/src/main/java/com/example/school/moorhuhn/ScoreActivity.java): `app/src/main/java/com/example/school/moorhuhn/ScoreActivity.java`

### Other components

- **Player**

## Connections

- Player → Main menu: opens (evidence: `README.md`)
- Player → Game screen: chooses difficulty (evidence: `README.md`)
- Player → Shooting and hits: clicks to shoot (evidence: `README.md`)
- Game screen → Level progression: plays levels (evidence: `README.md`)
- Level progression → Game over: ends at zero lives (evidence: `README.md`)
- Game over → High score: checks and records (evidence: `README.md`)
- Game view → Game thread
- Game view → Game sprites
- Game screen → Countdown timer
- Game screen → Sound playback
