# euloge-szn/la-traque architecture

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

- Interactive diagram: https://gitdiagram.com/euloge-szn/la-traque
- Repository: https://github.com/euloge-szn/la-traque

## Overview

La Traque is a self-contained browser chase game opened directly from `index.html`. The documented player journey is to start a run, use keyboard or mobile controls to evade obstacles and collect embers, then see the result and local ranking. Embers also fund sprinting and upgrades from the menu. The README documents local-only storage, themes, audio, vibration, and accessibility, but no source excerpts were provided; the links below therefore reflect documented behavior, not inspected implementation calls.

Main entry points: [`index.html`](https://github.com/euloge-szn/la-traque/blob/main/index.html) (Chase run)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_play["Game and controls"]
  node_game["Browser game<br/>[index.html]"]
  node_controls["Input controls<br/>[index.html]"]
  node_menu["Game menu<br/>[index.html]"]
end

subgraph group_systems["Run systems"]
  node_run["Chase run<br/>[index.html]"]
  node_obstacles["Obstacles<br/>[index.html]"]
  node_chase["Chaser and lead<br/>[index.html]"]
  node_embers["Ember pickups<br/>[index.html]"]
  node_sprint["Ember sprint<br/>[index.html]"]
  node_upgrades["Fugitive camp<br/>[index.html]"]
end

subgraph group_support["Progress and presentation"]
  node_themes["Themes<br/>[index.html]"]
  node_scores["Best escapes<br/>[index.html]"]
  node_storage[("Player save<br/>[index.html]")]
  node_feedback["Sound and vibration<br/>[index.html]"]
  node_accessibility["Motion and color settings<br/>[index.html]"]
end

node_player(("Player"))

node_player -->|"opens"| node_game
node_player -->|"uses"| node_controls
node_controls -->|"control"| node_run
node_player -->|"visits"| node_menu
node_run -->|"evades"| node_obstacles
node_obstacles -->|"affect lead"| node_chase
node_run -->|"drives pursuit"| node_chase
node_run -->|"collects"| node_embers
node_menu -->|"offers"| node_sprint
node_menu -->|"offers"| node_upgrades
node_embers -->|"updates purse"| node_storage
node_upgrades -->|"updates upgrades"| node_storage
node_run -->|"produces result"| node_scores
node_scores -->|"stores rankings"| node_storage
node_menu -->|"shows ranking"| node_scores
node_player -->|"selects"| node_themes
node_themes -->|"styles scenery"| node_game
node_game -->|"provides effects"| node_feedback
node_game -->|"respects preferences"| node_accessibility
node_player -->|"can erase"| node_storage

click node_game "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_controls "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_menu "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_run "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_obstacles "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_chase "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_embers "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_sprint "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_upgrades "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_themes "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_scores "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_storage "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_feedback "https://github.com/euloge-szn/la-traque/blob/main/index.html"
click node_accessibility "https://github.com/euloge-szn/la-traque/blob/main/index.html"

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_game,node_controls,node_menu toneBlue
class node_run,node_obstacles,node_chase,node_embers,node_sprint,node_upgrades toneAmber
class node_themes,node_scores,node_storage,node_feedback,node_accessibility toneMint
class node_player toneIndigo
```

## Components

### Game and controls

- [Browser game](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Input controls](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Game menu](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`

### Run systems

- [Chase run](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Obstacles](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Chaser and lead](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Ember pickups](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Ember sprint](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Fugitive camp](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`

### Progress and presentation

- [Themes](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Best escapes](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Player save](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Sound and vibration](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`
- [Motion and color settings](https://github.com/euloge-szn/la-traque/blob/main/index.html): `index.html`

### Other components

- **Player**

## Connections

- Player → Browser game: opens (evidence: `README.md`)
- Player → Input controls: uses (evidence: `README.md`)
- Input controls → Chase run: control (evidence: `README.md`)
- Player → Game menu: visits (evidence: `README.md`)
- Chase run → Obstacles: evades (evidence: `README.md`)
- Obstacles → Chaser and lead: affect lead (evidence: `README.md`)
- Chase run → Chaser and lead: drives pursuit (evidence: `README.md`)
- Chase run → Ember pickups: collects (evidence: `README.md`)
- Game menu → Ember sprint: offers (evidence: `README.md`)
- Game menu → Fugitive camp: offers (evidence: `README.md`)
- Ember pickups → Player save: updates purse (evidence: `README.md`)
- Fugitive camp → Player save: updates upgrades (evidence: `README.md`)
- Chase run → Best escapes: produces result (evidence: `README.md`)
- Best escapes → Player save: stores rankings (evidence: `README.md`)
- Game menu → Best escapes: shows ranking (evidence: `README.md`)
- Player → Themes: selects (evidence: `README.md`)
- Themes → Browser game: styles scenery (evidence: `README.md`)
- Browser game → Sound and vibration: provides effects (evidence: `README.md`)
- Browser game → Motion and color settings: respects preferences (evidence: `README.md`)
- Player → Player save: can erase (evidence: `README.md`)
