right now thats all i have
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
public class Win extends Actor
{
private int score;
private String input ("yes");
private String input ("no");
public Win () {
setImage(new GreenfootImage("YOU WON! " + score + " score " + " . ", 35, Color.WHITE, Color.BLACK));
Greenfoot.playSound("hooray.wav");
}
public void act()
{
newGame();
}
public void newGame() {
String input = Greenfoot.ask("New Game?");
if (input = "yes") {
addObject(new Star());
Greenfoot.setWorld(new Spielfeld());
}
}
}
