This commit is contained in:
Max
2026-09-16 17:10:54 +02:00
parent 4d98573c7c
commit 700eef1064
18 changed files with 552 additions and 277 deletions
+5 -4
View File
@@ -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());
}
}
}