I've created a simple game for an assignment, i'm new to programming so its not the best coded for efficiency etc and i can't figure out why the score won't update? The code is below, I would appreciate it a lot if someone could point me in the right direction.
Thanks
Block standardBlock; // Declare block object as a global variable
Block standardBlock2;
Block standardBlock3;
float count = 0;
float count2 = 1;
int scorestandard;
int scorequick;
int scoretotal = (scorestandard + (scorequick*10));
float yposBlock1;
float xposBlock1;
float yposBlock2;
float xposBlock2;
float xuplimit = (mouseX + 20);
float xlowlimit = (mouseX - 20);
void setup() {
size(900,500);
standardBlock = new Block(color (0), random (10,890), 0, 5); //Initialises blocks object by calling constructor
standardBlock2 = new Block(color (150), random (10, 890), -20, 7.5);
standardBlock3 = new Block (color (0), mouseX, 500, 0);
}