Every PR that adds or changes engine functionality must include:
-
Feature sample — Create or update a sample in
samples/features/feature-<name>/that demonstrates the new feature in isolation. This should be a minimal, focused demo. -
Kitchen-sink integration — Update the kitchen-sink demo (
samples/games/game-everything/) to exercise the new feature alongside existing ones. Wire it into the demo flow so automated--demo --headlessruns hit it. -
Roadmap update — Mark the feature as completed in
ROADMAP.mdwith a one-line summary of what was shipped. -
Architecture update — Add or revise the relevant section in
ARCHITECTURE.mddescribing the new subsystem, data structures, and public API.
- No comments. No doc comments (
///), no inline comments, no section dividers. The code should be self-explanatory.ARCHITECTURE.md,ROADMAP.md, andCONTRIBUTING.mdare exceptions. - No conventional commit prefixes (
feat:,fix:,chore:, etc). Commit messages should be casual and human-readable. - Run
cargo fmtbefore submitting. - Run
cargo check(andcargo testif tests exist) before pushing.
- Create a feature branch off
master. - Develop and commit on the feature branch.
- Open a PR against
master. - Request a review (Copilot or human).
- Address review comments, then the maintainer merges manually.
engine/ Main engine crate
src/
app.rs Entry points, game loop, Engine/Engine3D structs
lib.rs Public re-exports
ui.rs Immediate-mode UI widget system
canvas/ Canvas overlay rendering, GPU clipping
input/ Keyboard, mouse, gamepad, action mapping
math/ Rect, Rng, Time, Timer, Tween, Easing
renderer/ 2D sprite renderer, camera, nine-slice, post-fx
renderer3d/ 3D mesh renderer, camera, viewmodel
scene/ Scene traits, scene stack, globals, 2D scene data
world/ Tilemap, AABB collision, triggers, isometric helpers
assets/ Asset pipeline, audio, spritesheets, color, pixelart
text.rs Font atlas, text measurement
particle.rs Particle emitter system
save.rs Slot-based JSON save/load
samples/
features/ One directory per engine feature demo
games/ Larger sample games (platformer, top-down, etc.)
- Implement the feature in
engine/src/. - Re-export public types from
engine/src/lib.rs. - Create
samples/features/feature-<name>/with aCargo.tomlandsrc/main.rs. - Add the sample to the workspace
Cargo.tomlmembers list. - Wire the feature into
samples/games/game-everything/so it's exercised in demo mode. - Update
ROADMAP.md(mark done, add to progress section). - Update
ARCHITECTURE.md(add subsystem docs). cargo fmt && cargo checkacross the workspace.