A falling sand simulation using JANGL, my graphics library.
If you receive an error when running this program on Mac, make sure to include the following VM argument:
-XstartOnFirstThread
Your window may be too large (or small) on your display. To fix this, modify the WindowOptions class. Set the WINDOW_HEIGHT
value to whatever feels comfortable for your monitor's resolution. I have noticed that a value of 1200 pixels is good for 1440p monitors and a value of 900 pixels is good for 1080p monitors.
Below are all the controls for the game. They are also explained on the top bar of the window.
Key | Action |
---|---|
S | Select the sand particle. |
W | Select the water particle. |
Z | Select the stone particle. |
B | Select the barrier particle. |
A | Select the air particle. It deletes particles you click on. |
Click | Create the currently selected particle. |