class Blocks { int xPos, yPos, bHeight, bWidth; Blocks (int xp, int yp) { xPos = xp; yPos = yp; bHeight = 10; bWidth = 10; } void display() { fill(255,0,0); noStroke(); rect(xPos, yPos, bWidth, bHeight); } } class SpecialBlocks { int xPos, yPos, bHeight, bWidth; float sspeed; SpecialBlocks (int xp, int yp) { xPos = xp; yPos = yp; bHeight = 20; bWidth = 20; } void display() { fill(randColor(),randColor(),randColor()); noStroke(); rect(xPos, yPos, bWidth, bHeight); } } class Player { float xPos = width/2; float yPos = height - 20; float xSpeed, ySpeed; float yAcceleration; int dia; int yCorrection; Player (int pSize) { xPos = mouseX; yPos = mouseY; dia = pSize; xSpeed = 3; yAcceleration = 0.25; yCorrection = 3; } void display() { for(int i=0; i < 25; i++) { int glow = (255 - i*10); fill(255, glow); noStroke(); ellipseMode(CENTER); ellipse(xPos, yPos, dia+i, dia+i); } } void movePlayer() { //Mouse Based Play xPos = mouseX; yPos = mouseY; //Arrow Based Play // if (rightPressed) playerPos += xSpeed; // if (leftPressed) playerPos -= xSpeed; // if (playerPos >= width){ // playerPos = width; // } // if (playerPos <= 0){ // playerPos = 0; // } } }