package lilWorld; import java.util.ArrayList; import java.util.List; import processing.core.PApplet; import processing.core.PFont; import processing.core.PImage; import processing.core.PVector; public class RunWorld extends PApplet{ public float creeperGrav; public float drifterGrav; public static CreeperSystem cs; public static DrifterSystem ds; PFont font; Scrollbar scrolly; //public static SprigSystem sps; public static void main(String[] args){ PApplet.main(new String[] {"RunWorld"}); } public void setup() { size(600,600); frameRate(24); scrolly = new Scrollbar(this); scrolly.setupScrollbars(); cs = new CreeperSystem(this,35,12,20); ds = new DrifterSystem(this,6, 30, 90); Creeper c = cs.allCreepers.get(0); c.setCreeperSketch(); Drifter d= ds.allDrifters.get(0); d.setDrifterSketch(); //sps = new SprigSystem(this,7,10,90); } public void draw() { background(132,211,235); //sps.showAllCreatures(); cs.pushCreepers(); //cs.huntDrifters(ds); cs.moveCreepers(); cs.showCreepers(); cs.eatOthers(ds); cs.meetReaper(); ds.pushDrifters(); ds.moveAllDrifters(); ds.showAllDrifters(); scrolly.drawScrollbars(); ds.growUp(); ds.meetReaper(); ds.eatCreepers(cs); //System.out.println(Vars.drifterGrav + " DG"); //System.out.println(Vars.drifterBabies + " DB"); //System.out.println(Vars.creeperGrav + " CG"); //System.out.println(Vars.creeperBabies + " CB"); // System.out.println(Vars.creeperSpeed + " CS"); // } }