# kazuto-neves/gameme architecture

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

- Interactive diagram: https://gitdiagram.com/kazuto-neves/gameme
- Repository: https://github.com/kazuto-neves/gameme

## Overview

Gameme is a Portuguese text-based interactive story game: the player enters basic details, chooses among road, bank-queue, and restaurant situations, and follows branching choices to story endings accompanied by meme audio. The two scripts each contain a gameplay flow and audio playback helpers; the excerpts show audio calls within the stories but do not establish that one script launches or imports the other. The README also describes adding situations and audios, with a graphical interface only as a future idea. Audio paths are hard-coded in the sampled code, so runtime availability may depend on the local environment.

Main entry points: [`Game/game.py`](https://github.com/kazuto-neves/gameme/blob/master/Game/game.py) (Story game), [`Game/game2.py`](https://github.com/kazuto-neves/gameme/blob/master/Game/game2.py) (Story game variant), [`Game/audio`](https://github.com/kazuto-neves/gameme/tree/master/Game/audio) (Meme audio files)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_play["Interactive stories"]
  node_game1["Story game<br/>[game.py]"]
  node_game2["Story game variant<br/>[game2.py]"]
end

subgraph group_audio["Audio playback"]
  node_audiofiles["Meme audio files"]
  node_pygame["Pygame mixer"]
  node_playsound["Playsound library"]
end

node_player(("Player"))

node_player -->|"plays choices"| node_game1
node_player -->|"plays choices"| node_game2
node_game1 -->|"plays audio"| node_pygame
node_game2 -->|"calls playback"| node_playsound
node_game1 -->|"loads tracks"| node_audiofiles
node_game2 -->|"names tracks"| node_audiofiles

click node_game1 "https://github.com/kazuto-neves/gameme/blob/master/Game/game.py"
click node_game2 "https://github.com/kazuto-neves/gameme/blob/master/Game/game2.py"
click node_audiofiles "https://github.com/kazuto-neves/gameme/tree/master/Game/audio"

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_game1,node_game2 toneBlue
class node_audiofiles,node_pygame,node_playsound toneAmber
class node_player toneIndigo
```

## Components

### Interactive stories

- [Story game](https://github.com/kazuto-neves/gameme/blob/master/Game/game.py): `Game/game.py`
- [Story game variant](https://github.com/kazuto-neves/gameme/blob/master/Game/game2.py): `Game/game2.py`

### Audio playback

- [Meme audio files](https://github.com/kazuto-neves/gameme/tree/master/Game/audio): `Game/audio`
- **Pygame mixer**
- **Playsound library**

### Other components

- **Player**

## Connections

- Player → Story game: plays choices (evidence: `Game/game.py`)
- Player → Story game variant: plays choices (evidence: `Game/game2.py`)
- Story game → Pygame mixer: plays audio (evidence: `Game/game.py`)
- Story game variant → Playsound library: calls playback (evidence: `Game/game2.py`)
- Story game → Meme audio files: loads tracks (evidence: `Game/game.py`)
- Story game variant → Meme audio files: names tracks (evidence: `Game/game2.py`)
