# isidorn/le-chaton-platformer architecture

> Architecture diagram of the GitHub repository isidorn/le-chaton-platformer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/isidorn/le-chaton-platformer
- Repository: https://github.com/isidorn/le-chaton-platformer

## Overview

Fat Cat Climb is a browser-based pixel platformer. The player controls a cat that jumps between generated platforms, collects stars, and earns score; falling ends the run, and the best score is persisted. The game loop and most gameplay/rendering responsibilities are concentrated in js/game.js, with optional sprite, sound, and particle-effect modules. The HTML and CSS are present in the tree but were not sampled, so their wiring and presentation details are not inferred.

Main entry points: [`js/game.js`](https://github.com/isidorn/le-chaton-platformer/blob/main/js/game.js) (Game loop), [`js/art.js`](https://github.com/isidorn/le-chaton-platformer/blob/main/js/art.js) (Pixel art assets), [`js/audio.js`](https://github.com/isidorn/le-chaton-platformer/blob/main/js/audio.js) (Sound effects), [`js/juice.js`](https://github.com/isidorn/le-chaton-platformer/blob/main/js/juice.js) (Particles and shake)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Gameplay"]
  node_game_loop["Game loop<br/>[game.js]"]
  node_platforms["Platforms and collisions<br/>[game.js]"]
  node_score["Score and best<br/>[game.js]"]
end

subgraph group_presentation["Presentation"]
  node_canvas["Canvas rendering<br/>[game.js]"]
  node_pixel_art["Pixel art assets<br/>[art.js]"]
end

subgraph group_feedback["Game feedback"]
  node_sound["Sound effects<br/>[audio.js]"]
  node_juice["Particles and shake<br/>[juice.js]"]
end

node_player(("Player"))
node_best_store[("Browser best-score storage")]

node_player -->|"provides input"| node_game_loop
node_game_loop -->|"updates and checks"| node_platforms
node_game_loop -->|"updates score"| node_score
node_game_loop -->|"renders frame"| node_canvas
node_game_loop -->|"reads and writes"| node_best_store
node_game_loop -->|"plays effects"| node_sound
node_game_loop -->|"triggers effects"| node_juice
node_canvas -.->|"uses sprites"| node_pixel_art

click node_game_loop "https://github.com/isidorn/le-chaton-platformer/blob/main/js/game.js"
click node_platforms "https://github.com/isidorn/le-chaton-platformer/blob/main/js/game.js"
click node_score "https://github.com/isidorn/le-chaton-platformer/blob/main/js/game.js"
click node_canvas "https://github.com/isidorn/le-chaton-platformer/blob/main/js/game.js"
click node_pixel_art "https://github.com/isidorn/le-chaton-platformer/blob/main/js/art.js"
click node_sound "https://github.com/isidorn/le-chaton-platformer/blob/main/js/audio.js"
click node_juice "https://github.com/isidorn/le-chaton-platformer/blob/main/js/juice.js"

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_loop,node_platforms,node_score toneBlue
class node_canvas,node_pixel_art,node_best_store toneAmber
class node_sound,node_juice toneMint
class node_player toneIndigo
```

## Components

### Gameplay

- [Game loop](https://github.com/isidorn/le-chaton-platformer/blob/main/js/game.js): `js/game.js`
- [Platforms and collisions](https://github.com/isidorn/le-chaton-platformer/blob/main/js/game.js): `js/game.js`
- [Score and best](https://github.com/isidorn/le-chaton-platformer/blob/main/js/game.js): `js/game.js`

### Presentation

- [Canvas rendering](https://github.com/isidorn/le-chaton-platformer/blob/main/js/game.js): `js/game.js`
- [Pixel art assets](https://github.com/isidorn/le-chaton-platformer/blob/main/js/art.js): `js/art.js`

### Game feedback

- [Sound effects](https://github.com/isidorn/le-chaton-platformer/blob/main/js/audio.js): `js/audio.js`
- [Particles and shake](https://github.com/isidorn/le-chaton-platformer/blob/main/js/juice.js): `js/juice.js`

### Other components

- **Player**
- **Browser best-score storage**

## Connections

- Player → Game loop: provides input (evidence: `js/game.js`)
- Game loop → Platforms and collisions: updates and checks (evidence: `js/game.js`)
- Game loop → Score and best: updates score (evidence: `js/game.js`)
- Game loop → Canvas rendering: renders frame (evidence: `js/game.js`)
- Game loop → Browser best-score storage: reads and writes (evidence: `js/game.js`)
- Game loop → Sound effects: plays effects (evidence: `js/game.js`)
- Game loop → Particles and shake: triggers effects (evidence: `js/game.js`)
- Canvas rendering → Pixel art assets: uses sprites (evidence: `js/game.js`)
