Green = Sus Red = Infected Blue = Recovered Gray = Dead (fades off screen) Click "Config" in the bottom right to change your settings for your simulation, then click "Start Simulation" at the bottom to start the simulation. Click "Config" again to close the varibles. It is recommended to not mess with the varibles during the simulation itself, and only change stats before you start. Click the vaccine button on the right to drastically reduce transmission chance for 5 seconds. Now contacts only have a chance of spreading the disease. Transmission rate: Increases speed, simulates increased virus infectivity. Higher is more spread Recovery speed: How long it takes for a infected to become uninfected Population: Amount of dots you see in the simulation Size: How big the dots are. Bigger dots means they will collide more often, thus increasing transmission rate Immunity Duration: How long a "blue dot" stays immune to the virus for (i.e recovered stat). Shorter means the blue dot loses immunity faster, changing back into green in a short period of time, and longer is vice versa. Mortality: The percentage rate of where a infected dot dies. Deaths happen exactly halfway through the infection, if they do happen. Recommended to have on low percentages if you want to run longer. Healthcare: A bit complicated, but the higher number would lead to better healthcare capacity. When a dot is about to die, having a 33% of saving its life. However, healthcare only activates when there is a low percentage of infected to total population, with the exact ratio calculated by its healthcare capacity (the slider) ^^ If you don't understand, thats normal. Its a bit gimmicky, so leave on 0 if you're not sure.
Thanks for orginal poster for basic code. I added every stat as well as sprites.