On this page
  1. For a game
    1. rmp run [sudo|windows]
    2. rmp build [release|windows]
    3. rmp web
    4. rmp package [desktop|windows|web|android]
    5. rmp android
    6. rmp test [stage]
    7. rmp fmt [check]
    8. rmp pack
    9. rmp text scan|check
    10. rmp yarn check|ysls
    11. rmp unpack
    12. rmp clean
    13. rmp push [force]
    14. rmp deploy VERSION
    15. rmp new DIR
    16. rmp install [force]
    17. rmp update
    18. rmp help [command]
  2. In the framework's own repository
    1. rmp lint [fix]
    2. rmp example [name]

Commands

Every rmp command, as rmp help describes it at the commit this site documents. rmp help <command> prints the same page in a terminal.

For a game

rmp run [sudo|windows]

Build the game in debug, then play it; only what changed is compiled again. On a Linux console with no desktop it builds for DRM/KMS (build/debug-drm/) and first checks that the game can open the screen and read the keyboard, saying what to do when it cannot; sudo builds as you and starts only the game as root. RMP_DRM=1 or 0 overrides what rmp decides.

rmp runbuild, then start the game
rmp run sudoon a console: the game as root, the build as you
rmp run windowson Linux: the Windows .exe, built and started under Wine
rmp cleanif a build goes strange, start from nothing

rmp build [release|windows]

Compile the game without running it: debug into build/debug/ by default, or release into build/release/ (optimised, reading ./resources/: the one next to the executable when there is one, as in a shipped package, and the working directory's otherwise — so run it from the project folder). Each has its folder: switching between them rebuilds nothing. On a Linux console with no desktop, build/debug-drm/ and build/release-drm/, for DRM/KMS. On Linux, windows builds the release .exe for Windows: with MinGW-w64 into build/windows/, or with windows clang-cl into build/windows-clang-cl/, against Microsoft's own C runtime, which xwin downloads into ~/.xwin (XWIN_DIR) the first time, once you accept Microsoft's licence.

rmp buildwrites build/debug/<name>
rmp build releasewrites build/release/<name>, as CI ships it
rmp build windowson Linux: build/windows/<name>.exe (MinGW-w64)
rmp build windows clang-clthe same with clang-cl and lld-link

rmp web

Build build/web/<name>.html with Emscripten; activate the emsdk first, so that EMSDK is set.

rmp webwrites build/web/<name>.html
python3 -m http.server -d build/webthen open localhost:8000/<name>.html

rmp package [desktop|windows|web|android]

Make, on this machine, the archive a release job would upload, into build/package/: the release binary, the resource pack and LICENSES.txt, packed with UPX where [upx] asks, zipped. desktop is this machine's own target; windows is the .exe made on Linux (add clang-cl for clang-cl); web is the page, zipped; android is the release .aab and .apk, signed with your upload key: set ANDROID_KEYSTORE_FILE, ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS and ANDROID_KEY_PASSWORD.

rmp packagebuild/package/<name>-<this machine's target>.zip
rmp package windowsbuild/package/<name>-windows-x64.zip, made on Linux
rmp package webbuild/package/<name>-web.zip, ready to upload
rmp package androidbuild/package/<name>-android.aab and .apk, signed

rmp android

Build a debug APK with Gradle; it needs the Android SDK and NDK.

rmp androidprints the APK it wrote
adb install -r <apk>puts it on a connected phone

rmp test [stage]

Check the project. With no stage, every one of them; name a stage to run only that one.

rmp testeverything
rmp test smokebuild, boot and see it draw
rmp test configthe .toml, the pinned versions, the licences

Its stages, in the order rmp test runs them:

StageChecksInIn rmp test
fmtevery file is clang-format cleanframeworkyes
configthe .toml, the pinned versions and every licencegame and frameworkyes
repothe index tracks sources, not build outputframeworkyes
seamnothing in src/rmp reads the clock, input or rand() itselfframeworkyes
workflowsevery reusable workflow gets what it asks forframeworkyes
portablethe scripts run on macOS's bash 3.2 and the BSDsframeworkyes
shellno A && B || C in the shellframeworkyes
namingthe names follow the convention, every #if branchframeworkyes
stylethe style rules clang-tidy cannot see, every #if branchframeworkyes
ownershipnothing owned by hand: new/delete, raylib's Load*/Unload*frameworkyes
pointersno raw pointer and no C string a game can nameframeworkyes
cppcheckcppcheck over src/rmp: no finding, each suppression says whyframeworkyes
headersevery public header stands aloneframeworkyes
costwhat each public header costs to includeframeworkyes
gateseach tools/*_check.sh seen red on a planted mistakeframeworkyes
textevery language [lang] ships has every textgame and frameworkyes
yarnevery Yarn script compiles, against what the C++ registersgame and frameworkyes
text-toolrmp text's and rmp yarn's tools, each mistake seenframeworkyes
configuretools/configure.py, every rejectionframeworkyes
rmpthis command itselfframeworkyes
apithe API-change gate: what a pull request changes of the APIframeworkyes
binariesthe readers that judge a shipped .exe and Mac binaryframeworkyes
sizeevery shipped binary has a size budget, and its reader worksframeworkyes
unitthe unit tests in two orders, and tests/game/frameworkyes
unityour tests in tests/game/, with no windowgameyes
layoutthe UI layout at four resolutions, headlessframeworkyes
propertyproperties: RapidCheck on the C++, Hypothesis on the Pythonframeworkyes
ui-renderthe UI on a real GPU: a hidden window, read backframeworkyes
renderdraw a frame in software and check itgame and frameworkyes
smokebuild the game, boot it, see it drawgame and frameworkyes
examplesboot every example, play the platformer and the e2e scriptsframeworkonly by name
sanitizethe unit and layout tests again, under gcc's ASan and UBSanframeworkonly by name
fuzzevery fuzz target built, and every committed input replayedframeworkonly by name
mutationMull and mutmut against every floor (build image, hours)frameworkonly by name
coveragewhat the tests run of src/rmp, against its floorsframeworkonly by name
render-updaterecord the frame as the new golden hashframeworkonly by name
e2e-updaterecord every e2e shot as its golden (inside the build image)frameworkonly by name

rmp fmt [check]

Format your C and C++ with clang-format — the version pinned in thirdparty/FROZEN_VERSIONS.md.

rmp fmtrewrite what needs it
rmp fmt checkonly report what it would change

rmp pack

Bundle resources/ into resources/resources.rres, encrypted, the way a release ships it.

rmp packthe game reads the pack from now on
rmp unpackback to the loose files while you add art

rmp text scan|check

scan reads src/ and include/ for every literal the framework translates — the first argument of rmp::ui's text functions and of rmp::Text, the .text, .placeholder and .items of a kept widget — the line ids of resources/**/*.yarn and what a debug build saw that the tables lack (build/debug/lang_seen.tsv), and adds a row to [lang] file for each that is not there. It never deletes a translation: a row nothing uses any more gets an x in its unused column. check fails on a text a language of [lang] languages lacks, a placeholder a translation lost or added, and a plural with the wrong number of forms; rmp test runs it.

rmp text scanadd the new texts to resources/lang.tsv
rmp text checkwhat a translation lacks or got wrong

rmp yarn check|ysls

check compiles every resources/**/*.yarn with the framework's own compiler (rmp_yarnc --check), each error as file:line:column, with the types of the functions the C++ registers (on_function("name", [&](std::string s) -> bool {...})) told to it; a function a script calls that nothing registers is an error, a command nothing handles a warning. Name files to check only those. rmp test runs it. ysls writes rmp.ysls.json beside resources/: the commands and functions the C++ registers, typed and with the comment above each, which the Yarn Spinner extension for VS Code reads to complete and check them.

rmp yarn checkevery script, against the game's C++
rmp yarn check resources/intro.yarnone script
rmp yarn yslsVS Code learns the C++ commands

rmp unpack

Delete resources/resources.rres, so that the game reads the loose files in resources/ again.

rmp unpackloose files again
rmp packbundle them again

rmp clean

Delete build/ — every build in it: debug, release, web and the rest — and every file generated from raylib_multiplatform.toml; the next build makes them again.

rmp cleaneverything, gone
rmp runrebuild from nothing, and play

rmp push [force]

Run git push — refused while a CI run is in flight, because the push would cancel it; with [ci] on_push = false a push starts no run, and nothing is checked. The first push of a branch sets its upstream on origin.

rmp pushpush, or say which run it would kill
rmp push forcepush anyway, and cancel the run

rmp deploy VERSION

Release a version: check it the way CI will, tag it, push the tag. CI builds every target and attaches them to the release.

rmp deploy 1.2.0tags v1.2.0 (the v is added)
rmp deploy 1.2.0-rc1a pre-release, marked as one
rmp pushfirst, if your last commit is not on GitHub yet

rmp new DIR

Make a new game in DIR: a copy of what a game needs from this framework, named after the folder, ready to build and to ship.

rmp new my_gamemakes my_game/, here
rmp new ~/games/space_rocksanywhere; the name is the folder's
rmp new --listwhat a new game gets, without making one

rmp install [force]

Put this framework's rmp on your PATH: a link in ~/.local/bin, and a line in your shell's startup file only when that folder is not on PATH yet. On Windows, a shim in %LOCALAPPDATA%\Programs\rmp and that folder on your user PATH. Running it again changes nothing; force replaces another rmp that is in the way. The installer runs it for you.

rmp installlink it, or say it already is
rmp install forcereplace a different rmp that is in the way
rmp helpthen, in a new terminal

rmp update

Update the framework that this rmp comes from: fetch origin and move main forward to it. A clone with changes of its own, on another branch or with commits origin does not have is refused, never merged. A game is not touched: it keeps the framework it was made with.

rmp updateprints the commit before and after
rmp new my_gamea new game gets the updated framework

rmp help [command]

Show the commands, or one command in detail.

rmp helpevery command
rmp help deployone of them
rmp help --jsonevery command and test stage, for a tool to read

In the framework's own repository

rmp lint [fix]

Run clang-tidy over src/, tests/ and examples/; a warning tools/lint_debt.txt does not owe fails.

rmp lintreport
rmp lint fixapply what clang-tidy is sure of, then format

rmp example [name]

Build and run one example from examples/, by name or by path.

rmp examplelist them
rmp example 01_ponga bare name, when it is unique
rmp example games/01_pongor the path under examples/