error says "unexpected token: int" the line of code that it highlights is "int c = mask.get(position.x, position.y;" what can i do to fix this? here's my code thus far.
PFont font;
PImage img; // Image variable here
int state = 1; // Start with the car on the track
int timer=25;
int timeLast = 0;
PVector position, velocity;
float angle, steerAngle;
boolean[] keys = new boolean[256];
So im trying to get the timer to appear and it wont, i have an image i uploaded that i made in "paint" for my backdrop, that comes up fine, but the car is slower than normal and you cant see the timer anymore ever since i made the background. I want the car to have to follow my backgound, a racetrack, and get to the end by the time 20 sec are up or you lose.
heres my code so far.
I was wondering if anyone could help me with a timer that counts down from 20 seconds in which if it runs out you lose the game. I also what to create red blocks and blue blocks for my car to pick up. once my car picks up all the blocks u win the game unless u dont make it under 20 seconds. If you hit a blue block u lose and if you get all the red ones without hitting a blue before the time runs out then you win. Anything you guys can give me would help. thanks!