//GLOBAL VARS : available to all methods in all tabs final int noCars = 30; //no of vehicles. the keyword 'final' indicates that it is a constant. MyVehicle[] v = new MyVehicle[noCars]; //vehicle array of the size 'noCars' float safeDistance = 15.0; //distance below which collision is detected PFont smallFont, lightFont, boldFont; //declare font MyImage terrain; ArrayList myShapes = new ArrayList(); //terrain dimensions int trnWidth = 300; int trnHeight = 300; //world World w; //The SETUP method is called once when the applet/application starts off. //Consider this a 'point or method of entry' void setup() { //size method declares the size of the applet window and to use the 3d //libraries (P3D or OPENGL it must be declared in this size method size (800,700,P3D); w = new World(this,trnWidth,trnHeight,0); w.setupCamera(this,150); terrain = new MyImage("me.jpg", 10); for (int i = 0; i