For now, the game can only be built on Linux. Building for Windows is planned in the future.
- GLEW
- glfw
- freetype
- X11
mkdir build && cd build
cmake ..
cd ..
cmake --build build -j./build/falling-sandThe dimensions of the gameboard can be specified as an integer:
./build/falling-sand 256This would cause the board to be 256x256 cells large. If no dimensions are supplied, it defaults to 128.
- Move the cursor using the mouse
- Draw with the selected material using left click
- Change brush material by hovering over the selected material in the top right corner and then clicking the desired material
- Change between square and circle brush using the spacebar
- Change brush size by scrolling up and down on the scroll wheel
- Press
wto toggle between single-step mode and normal mode - When in single-step mode, press
rto advance the simulation by a single step - Press
Shift+f1to create a savestate - Press
F1to load the currently stored savestate if one exists - Press
fto generate the prologue for a Catch2 test case setting up the current world state and copy it to the clipboard. This should only be used for small worlds as otherwise the setup code becomes very long. - Press
gto enable or disable the debug overlay