Hi guys i am Razmy i am very new to this forum last night i was working on my final project my project is a mobile game its a small game
when i try to write a new methode the illegal start of expression error
this is the method that i wrote
public void level() {
g.setColor(255, 255, 255); // white
g.setFont(Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD, Font.SIZE_LARGE));
g.drawString("Leve 2", 90, 40, Graphics.TOP | Graphics.HCENTER);
int keyState = getKeyStates();
if ((keyState & FIRE_PRESSED)!=0) {
fishSprite.setPosition(2,77);
}
for (int i = 0; i < 3; i++) {
x_enemySprite[i].move(x_enemyXSpeed[i],0);
checkBounds(x_enemySprite[i], true);
x_enemySprite[i].paint(g);
}
}
if any one know plz help me
thank you