Unexpected token: Ball
in
Programming Questions
•
1 year ago
I do not understand why this error is coming up. I have everything defined in my class Ball
boolean animate = true;
Ball ball1;
//--------------------------------------------------------
void setup() {
size(400, 500);
smooth();
ball1 = new Ball();
}
//--------------------------------------------------------
void draw() {
background(64);
ball1.display();
ball1.fall();
}
boolean animate = true;
Ball ball1;
//--------------------------------------------------------
void setup() {
size(400, 500);
smooth();
ball1 = new Ball();
}
//--------------------------------------------------------
void draw() {
background(64);
ball1.display();
ball1.fall();
}
1