Develop
AMFP Enhanced is the GPL v3 source of A Machine for Pigs (the HPL2 engine and the game code,
called Lux), with a small Rust library and Python tools around it. Everything builds with
pixi and CMake presets, the same way on a developer's machine and in CI.
| Page |
For |
| Build |
Building the game on Windows, Linux and macOS. |
| Tests |
The C++, Rust, Python and build tests. |
| Dev runner |
Starting a sandboxed game, driving it from scripts, screenshots and checks. |
| Architecture |
How the new code is laid out and why. |
| Screenshots |
Taking the screenshots in this guide. |
| This website |
Building and translating these pages. |
Repository layout
| Path |
What it is |
Game/src/game |
The game (Lux). New files and changes are marked AMFP-2026. |
HPL2/core |
The HPL2 engine. |
HPL2/dependencies |
Newton physics, AngelScript and OALWrapper, built from source. |
crates/ |
The Rust text library (CJK line breaking, text decoding) and its Python module. |
overlay/ |
The text of the new options (English) and our own textures. Translations live in their own mods. |
tools/ |
Installer, macOS app bundler, dev runner, tours and the documentation tools. |
tests/ |
C++, Python and build tests. |
guide/ |
This website (English and Traditional Chinese). |
PLAN.md |
Design decisions and the work log. |
Ground rules
- No game assets. The repository and its builds never contain the game's files, art, sound
or text. New text lives in our own language files; our own textures are generated.
- Original stays original. Every addition can be switched off, and the Original preset
must behave exactly like the shipped game.
- Small, tested pieces. New logic goes into small headers without engine types, unit tested
on their own; the engine glue that calls them stays thin.
- Unofficial. No Frictional trademarks or logos in branding; say the fork is unofficial.