Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

1.1 KB
Raw Blame

harden

Notes like these: "it broke when I…", "what if two people press", "it gets stuck", "edge case". A game's or a tool's edges.

Assess

  • List the inputs nobody designed for: two keys at once, holding a key, pressing during a transition, losing focus, resizing, the very first frame and the last, a very long name, nothing at all.
  • Reproduce the note's case first, live, with real input.

Decide

  • Which edges matter here. For a game, that's input and timing. For a tool, that's data and its states.
  • What each case should do: ignore the input, queue it, or refuse with words that say why. Decide it in the step, once.

Change

  • Fix the cause in the pure step (useGameState), not a guard in the view.
  • Every state has a picture: empty, loading, error, won, lost.
  • Keep it deterministic, so a logged play renders back to the same pixels.

Verify

  • Play the case again live, then the cases next to it. Run the replay check.

When it goes wrong

  • A guard in the view hides the bug, and the replay no longer matches the play.
  • The fix for the reported case breaks the case next to it. Play the neighbours too.
  • An error state has no way out.