Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Build and review bracket-lib style Rust 2D game loops, state structs, game modes, input handling, rendering calls, and restart flow. Use when creating a small Rust game with bracket-lib, porting a tutorial loop, or debugging tick/update/render state behavior.
.claude/skills/hashgraph-online-rust-bracket-game-loop/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -14% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -7% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -18% | 0% |
Use this skill to create or review a small Rust game loop, especially one built with bracket-lib and an explicit game state. Keep tick as a coordinator: read input, advance state, render, and dispatch to small helper functions.
Cargo.toml, edition, engine, and existingarchitecture before changing dependencies.
Read references/game-loop-patterns.md for setup patterns, code skeletons, mode routing, and review checks.
Guidance is transformed and paraphrased from Hands-On Rust Chapter 3 and the official companion source repository. Current crate context was checked against bracket-lib documentation on docs.rs and the bracket-lib example repository. Verify the target project's dependency versions before copying API details.
Other measured skills in the registry, with their headline benchmark lift.