A "slime" simulation "game" that runs on the GPU able to simulate thousands of agents with configurable parameters leading to very stunning simulations.
- Width - Simulation width in pixels
- Height - Simulation height in pixels
- Update Count - The amount of times the simulation runs in one frame
- Decay Rate - Global pixel fade out rate
- Diffuse Rate - Global pixel diffuse rate
- Spawn Type - Different ways to spawn agents upon restarting the simulation
- Border Type - Different ways tho handle borders. Repeating - agents teleport, Contained - agents bounce off
- Base Color (HEX) - The background color of the simulation
- Speed - The species speed
- Turn Speed - How fast the agents turn
- Sensor Angle - The spacing between the three different sensing zones (Visualization below)
- Sensor Distance - How far away the agents sense trails
- Sensor Size - How big of an area the agent senses (!!Keep this at one unless you have a beefy GPU!!)
- Trail Weight - How strong of a trail the species leave
- Color (HEX) - Color of the species
Helps visualize how Sensor Angle, Sensor Distance and Sensor Size impact the agents behavior.
I did not draw this. Source
- Left Click - Spawn Agents
- Right Click - Delete Agents
- Escape - Toggle full screen view
- E - Reset agent positions
- R - Reset simulation
- Space - Pause simulation
- Right Arrow - Advance one frame
- F11 - Take screenshot
Simulation tested only on Windows with a GTX 660 gpu.
There is a save load system implemented so you can save your configurations aswell as the ability to screenshot! (For Windows they save under AppData/LocalLow/AllInTw0/SlimeSim)
There are a maximum of three species at a time.
The project was inspired by a Video made by Sebastian Lague.



