Falling Sand (mestiez)
About
A very simple customisable falling sand game.
I made this to test a game engine a friend and I have been working on. I fixed many bugs in the engine while making this, which was one of the goals.
Controls
LMB - Place
RMB - Remove
R - Reset grid
Scroll - Select powder
F1 - Normal view
F2 - Temperature view
F3 - Sleeping particle view
config.json
The config.json file defines a few settings and all the element presets that appear in the game. Each will be explained here.
Version Application version
WindowWidth The horizontal size of the window in pixels
WindowHeight The vertical size of the window in pixels
GridResolution Resolution of the simulation grid
Iterations Number of simulation steps per frame
SleepThreshold Constant that determines when a particle can sleep
Elements The list of element presets
An element is defined by a set of different parameters:
IsNothing Is the element considered empty? Will ignore all other parameters if set to true
Temperature The starting temperature of the element when placed
Density The density of the element in its solid state
MovementType Type of movement in its solid state
0 Standard powder movement 1 Concrete movement (currently not implemented) 2 Static movementBaseColor RGBA values for the solid colour of the element
HeatGlow Does the element glow when in its liquid state?
MeltingPoint Temperature at which the element turns to liquid
BoilingPoint Temperature at which the element turns to gas