ALLES
This commit is contained in:
@@ -18,13 +18,14 @@ public class EndWorld extends World
|
||||
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
|
||||
super(600, 400, 1);
|
||||
|
||||
showText("GAME OVER", 300, 60);
|
||||
showText("the winner is " + pSieger, 300, 200);
|
||||
showText("Drücke R für einen Neustart", 300, 220);
|
||||
showText("GAME OVER", 300, 70);
|
||||
showText("the winner is " + pSieger, 300, 220);
|
||||
showText("Drücke R für einen Neustart", 300, 340);
|
||||
setBackground(new GreenfootImage("GameOverSreen.png"));
|
||||
}
|
||||
public void act(){
|
||||
if (Greenfoot.isKeyDown("r")){
|
||||
Greenfoot.setWorld(new StartWorld());
|
||||
Greenfoot.setWorld(new MenuWorld());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user