PImage myPerson; PImage redPerson; PImage deadPerson; PImage city; PImage title; boolean preGameFlag; //true=preGame (wait for mouseclick) , false=game in play Person[] People;//This describes what kimd of data the array contains. Animal[] Animal; Doctor[] Doctor; Undertaker[] Undertaker; int n = 100; //Number of people. int na = 100; //Number of animals. int nd = 10; //number of doctors int nu = 30; //number of undertakers int computeDelay = 0; int healthyCount = 0; int sickCount = 0; int deadCount = 0; void setup() { title = loadImage("title.gif"); city = loadImage("map.gif"); /*myPerson = loadImage("personwhite.gif"); redPerson = loadImage("redperson.gif"); deadPerson = loadImage("deadghost.gif");*/ preGameFlag = true; //starts with preGame text and waits for mouseclick size(800, 600, P3D);//Processing's 3 mode is being used to make it run faster. frameRate(30); noStroke(); //smooth(); PFont statusFont; statusFont = loadFont("Univers-Bold-48.vlw"); textFont(statusFont); People = new Person[n];//This is how large the array is. Animal = new Animal[na]; Doctor = new Doctor[nd]; Undertaker = new Undertaker[nu]; for(int J = 0;J