Master brain

Hippo

Coding terms, project outlines and standards.

Standards

AI-assisted dev architecture

Original: ~/.claude/backups/AI_Assisted_Dev_Architecture.md. Rules already in CODING_STANDARDS.md (naming, comments, folders, headers, ADRs, commits, branches,

Read more

Standards

Coding standards

Enforced by linter, pre-commit hooks, review. Original: ~/.claude/backups/CODING_STANDARDS.md.

Read more

Standards

Standards summary

Short form of ~/.claude/CODING_STANDARDS.md + ~/.claude/AI_Assisted_Dev_Architecture.md. Hard rules. Open a full doc only for the section the task touches. Proj

Read more

Game performance

Blit

Copy a baked image onto the screen (`ctx.drawImage`). Cheap.

Read more

Game performance

Cache

Keep a baked result; only rebuild when its input changes.

Read more

Game performance

Chunk

Level split into screen-sized baked pieces, so no single giant image.

Read more

Game performance

Culling

Skip anything off-screen.

Read more

Game performance

Draw call

One `drawImage` / `fillText` / `fillRect`. Fewer = faster.

Read more

Game performance

Fixed timestep

Physics steps in equal slices (e.g. 1/60 s) regardless of frame rate, so the game plays the same on slow and fast devices.

Read more

Game performance

Frame budget

Time allowed per frame. 60 fps = 16.7 ms, everything included.

Read more

Game performance

Glyph atlas

An atlas of pre-drawn letters (each glyph × color).

Read more

Game performance

Hot path

Code that runs every frame. Keep it tiny.

Read more

Game performance

Layer

Separate canvas per depth (sky, scenery, actors, HUD); static layers never redraw.

Read more

Game performance

Object pool

Reuse bullets/particles instead of creating new objects (avoids garbage-collection stutter).

Read more

Game performance

Offscreen canvas

Hidden canvas used for baking (`new OffscreenCanvas(w,h)` or an unattached `<canvas>`).

Read more

Game performance

Pixel snapping

Round positions to whole pixels or grid cells so sprites don't blur or smear.

Read more

Game performance

Pre-render / bake

Draw something once at load into a hidden image, reuse it every frame.

Read more