Zombie Infection Simulation
vMFF-1.9 (030904) by Markleford Friedman
Based on the work of Kevan Davis



Zombies are green, move very slowly and change direction randomly and frequently unless they can see something living moving in front of them, in which case they lunge towards it. After a while they get bored and wander randomly again. If a zombie finds a human directly in front of it, it has a 50% chance of infecting them; the human immediately becomes a zombie.

Humans are pink and walk twice as fast as zombies, occasionally changing direction at random. If they see a zombie directly in front of them, they turn around and panic.

Panicked humans are bright pink and run twice as fast as other humans. If a human sees another panicked human, it starts panicking as well.

Hunters are white and walk twice as fast as zombies, occasionally changing direction at random. A hunter is sometimes created when a zombie attacks a human: the human gets pissed off and fights back! If they see a zombie directly in front of them, they run at it at double speed.

Corpses are blue. If a hunter finds a zombie directly in front of him, he kills it; the zombie then becomes a corpse


Operation:
  • Press space to uninfect all but one zombie.
  • Press 'z' to draw and populate a new city.
  • Press '+' and '-' to increase and decrease population.
  • Press 's' to alter the simulation speed.
(You'll need to click on the Java window before it'll accept keypresses.)

Built with Processing

View source code

Original version: Kevan Davis

See also: Matt Cordes' version

Back to Menu

Back to www.DeathTech.com