Simple simulation for the spread of a virus. 

Controls:

  • TAB to toggle variables UI menu
  • SPACE to toggle pause/ play 
  • ESCAPE to toggle settings menu
  • R to restart simulation
  • Click individual tabs to change pages


Legend:

Legend for unit colours

  • White dots are "susceptible/ uninfected" people 
  • Yellow dots are "infected" people
  • The red dot is patient zero (first infect)
  • Grey dots are removed (recovered/ dead/ etc)


Mechanics and explanation of tabs:

  • People move around the area randomly in a fixed area.
Patient zero infecting the susceptible

GENERAL

  • Proximity is how close the infected have to be to get infected.
  • Movement restrictions (aka speed) depend on the situation (Eg Circuit Breaker, Heightened phase 2). 
  • Recovery Rate determines how many weeks it takes to be removed (recover/ die/ etc) (0 weeks = can never recover). 


INFECTION

  • The susceptible within the range of an infected person has a certain probability of getting infected.

VACCINATION

  • A percentage of people are vaccinated, hence having a different probability of getting infected.

DEBUGGING

  • Spawn new units (ranging from 1-20 units).
  • Gizmos button reveals range of infection proximity.  



Video Showcase

v2.0:


v1.0:


Source code:

https://github.com/iptcyq/Virus-Spread-Simulation

Competition Premise:

https://sms.math.nus.edu.sg/index.php/sms-essay-competition-2021/


Leave a comment

Log in with itch.io to leave a comment.