Hey everyone,
I'm having a problem with this expecting RCURLY, found 'else' error. Usually, this seems to pop up when there's a syntax problem, but I can't see anything wrong with this block of code. If anyone could help out, I'd appreciate it.
I'm having a problem with this expecting RCURLY, found 'else' error. Usually, this seems to pop up when there's a syntax problem, but I can't see anything wrong with this block of code. If anyone could help out, I'd appreciate it.
- void setup() {
size(920, 1080);
smooth();
img5= loadImage("spacewall2.jpg");
//img6= loadImage("spacewall2.jpg");
music = new Minim(this);
song1 = music.loadFile("spacetheme.mp3");
song1.loop();
clr = color(255, 0, 0);
frameRate(60);
font = loadFont("Monospaced-48.vlw");
b = loadImage("player.png");
e = loadImage("enemy.png");
// create enemys
for (int i = 0; i < num_enemys; i++) {
enemies[i] = new Enemy();
}
// create player
player = new PlayerNew(width, height);
}
1