Zombie Infection Simulation v2
Kevan Davis, Aug 03
Click here for an advanced version by Matt Cordes.



Zombies are grey, move very slowly and change direction randomly and frequently unless they can see something moving in front of them, in which case they start walking towards it. After a while they get bored and wander randomly again.

If a zombie finds a human directly in front of it, it infects them; the human immediately becomes a zombie.

Humans are pink and run five times 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.


  • Press space to uninfect all but one zombie.
  • Press 'z' to draw and populate a new city.
  • Press 'p' to toggle complete panic (as in v1).
  • 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
)