# bemxio/epicki-twoj-stary-nes architecture

> Architecture diagram of the GitHub repository bemxio/epicki-twoj-stary-nes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bemxio/epicki-twoj-stary-nes
- Repository: https://github.com/bemxio/epicki-twoj-stary-nes

## Overview

Epicki Twój Stary is an NES game port. Its intended user workflow is to run the ROM in an NES emulator or on compatible hardware; the README identifies MMC1/SGROM compatibility. The tree shows assembly code and graphics/audio assets, but the assembly sources were not excerpted, so their runtime calls and asset-loading relationships cannot be verified. The graph preserves those game components without inferring a control-flow pipeline.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game["Game code"]
  node_main["Game entry<br/>[main.asm]"]
  node_constants["Game constants<br/>[constants.asm]"]
  node_subroutines["Game routines<br/>[subroutines.asm]"]
  node_samples["Audio samples<br/>[samples.asm]"]
end

subgraph group_assets["Game assets"]
  node_bgm["Background music<br/>[bgm.dmc]"]
  node_palette["Color palette<br/>[palette.pal]"]
  node_tiles["Graphics tiles<br/>[tiles.chr]"]
  node_title["Title screen<br/>[title_screen.nam]"]
end

node_player(("Player"))

click node_main "https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/src/main.asm"
click node_constants "https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/src/constants.asm"
click node_subroutines "https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/src/subroutines.asm"
click node_samples "https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/src/samples.asm"
click node_bgm "https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/assets/bgm.dmc"
click node_palette "https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/assets/palette.pal"
click node_tiles "https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/assets/tiles.chr"
click node_title "https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/assets/title_screen.nam"

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_main,node_constants,node_subroutines,node_samples toneBlue
class node_bgm,node_palette,node_tiles,node_title toneAmber
class node_player toneIndigo
```

## Components

### Game code

- [Game entry](https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/src/main.asm): `src/main.asm`
- [Game constants](https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/src/constants.asm): `src/constants.asm`
- [Game routines](https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/src/subroutines.asm): `src/subroutines.asm`
- [Audio samples](https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/src/samples.asm): `src/samples.asm`

### Game assets

- [Background music](https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/assets/bgm.dmc): `assets/bgm.dmc`
- [Color palette](https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/assets/palette.pal): `assets/palette.pal`
- [Graphics tiles](https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/assets/tiles.chr): `assets/tiles.chr`
- [Title screen](https://github.com/bemxio/epicki-twoj-stary-nes/blob/main/assets/title_screen.nam): `assets/title_screen.nam`

### Other components

- **Player**
