class SpaceBlob extends Goon{ ///////////////////////////////// SpaceBlob ////////////////////////////////////////////////////////////// int speed=2; ArrayList points = new ArrayList(); int pointCount=65; float[] radCoef=new float[pointCount]; float radmin=.93; float radmax=1.07; ArrayList spawn=new ArrayList(); int counter=0; int rate=100; int baddieLevel=0; int deathCountdown=10; SpaceBlob(Vector3D p){ mass=40; pos= p.copy(); pos.x+=pos.x/abs(pos.x)*250; pos.y+=pos.y/abs(pos.y)*250; acc=new Vector3D(); vel=new Vector3D(speed,PI/4,true); rad=650; type = SPACEBLOB; SpaceBlobDot f=new SpaceBlobDot(pos.copy(),this); for(int i=0; i0&&random(0,1)<.3){ Goon g=(Goon)spawn.get(0); g.inBoss=false; monsters.add(g); spawn.remove(g); } } } void unique(){ if(rad<80){ for(int i =0; irad*rad/4){ v.mult(.02); g.vel.sub(v); } } } void drawPoints(){ Vector3D v=new Vector3D(); fill(150,150,60); //stroke(255); // noSmooth(); beginShape(); for(int i=0;i