Contributing to Ultimate MUGEN
English · Português (BR)
Thanks for helping. This page gets you from a fresh clone to a merged pull request. The full documentation is the wiki at https://juninmd.github.io/ultimate-mugen/wiki/.
Where to start
- Pick an issue labelled
good first issue, or open one describing what you want to change before writing large code. - Read the architecture overview and the file layout rules once; they explain where code belongs.
- Characters, stages and data changes need no Rust: see Make a character and Make a stage.
Build and run
git clone https://github.com/juninmd/ultimate-mugen
cd ultimate-mugen
cargo run --release
On Linux install libudev-dev libasound2-dev libx11-dev libxi-dev libgl1-mesa-dev pkg-config first. The browser build is ./scripts/build-web.sh, served from web/dist.
Checks to run before a pull request
| Check | Command |
|---|---|
| Rust tests | cargo test --workspace --release |
| File size ceiling (250 lines) | node scripts/file-size.mjs |
| Crate boundaries | node scripts/crate-boundaries.mjs |
| Script tests | node --test scripts/*.test.mjs |
| Wiki book | ./scripts/build-wiki.sh (needs mdbook) |
| Browser smoke | ./scripts/build-web.sh then node scripts/web-smoke.js web/dist (Playwright) |
Do not run cargo fmt --all: the tree is not rustfmt-clean and it rewrites unrelated files. Format only files you created with rustfmt --edition 2021 <file>.
Rules
- No comments in code; names must explain intent. Explanations go to the wiki.
- English is the default language for code, commits, issues and docs. Portuguese lives in
*.pt-BR.mdfiles anddocs/wiki/pt-BR/; keep both in sync. - A source file stays under 250 lines. Files already over the ceiling may not grow; see File layout.
crates/engineis deterministic: no clocks, threads, randomness or allocation insideMatch::tick.- Respect the crate boundaries in Architecture;
scripts/crate-boundaries.mjsenforces them in CI. - Update
docs/wiki/whenever a format, controller, trigger, flag or folder layout changes. - Significant design changes get an ADR in
docs/wiki/adr/.
Pull requests
- Title must be
type(scope)?: descriptionwith type infeat|fix|perf|refactor|docs|test|build|ci|chore|style|revert;commit-lintrejects anything else. - Keep a PR to one concern. Put new logic in a new file and wire it with one line in shared files, so parallel PRs do not collide.
- Include screenshots or GIFs (before and after) for anything visible, and a browser smoke result for gameplay, rendering, loading or input changes.
- Releases are automatic from
mastercommit types;featis minor,fixandperfare patch.
Acknowledgments
Ultimate MUGEN is inspired by Elecbyte's M.U.G.E.N and Ikemen GO. Please keep that credit respectful in docs and discussions.