int WIDTH=350; int HEIGHT=490; float ECOL=0.9; float EDRAG=0.999; float EG=0.5; int N; int NS; //long CT=0; int ITT=5; float[] PX = new float[8]; float[] PY = new float[8]; float[] PX_OLD = new float[8]; float[] PY_OLD = new float[8]; int STICKA[] = new int[9]; int STICKB[] = new int[9]; float STICKLENGTH[] = new float[9]; boolean PINNED[]= new boolean [8]; boolean RUNNING=true; boolean GRAVITY=true; void setup() { size(400, 550, P2D); reset(); for (int i=0;i<6;i++) {PINNED[i]=false;} PINNED[7]=true; } void draw() { background(0,0,0,0); noFill(); stroke(255); rect(0,0,WIDTH,HEIGHT); renderbuttons(); //if(CT++>3000) {reset(); RUNNING=false;} //fuze if (RUNNING) { updatepoints(); for (int i=0;iWIDTH) { PX[i]=WIDTH; PX_OLD[i]=(PX[i]+(VX*ECOL)); } else if (PX[i]<0) { PX[i]=0; PX_OLD[i]=(PX[i]+(VX*ECOL)); } if (PY[i]>HEIGHT) { PY[i]=HEIGHT; PY_OLD[i]=(PY[i]+(VY*ECOL)); } else if (PY[i]<0) { PY[i]=0; PY_OLD[i]=(PY[i]+(VY*ECOL)); } } } void updatepoints() { float VX,VY; for (int i=0;i=510 && mouseY<=540 && mouseX>0 && mouseX<100) {RUNNING=!RUNNING; if(!RUNNING) {reset();}} } void nickmouse() { if (mouseX