Start und Game Over Bildschirm
This commit is contained in:
@@ -16,6 +16,18 @@ public class GameOverWorld extends World
|
||||
public GameOverWorld()
|
||||
{
|
||||
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
|
||||
super(400, 600, 1);
|
||||
super(400, 600, 1);
|
||||
prepare();
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare the world for the start of the program.
|
||||
* That is: create the initial objects and add them to the world.
|
||||
*/
|
||||
private void prepare()
|
||||
{
|
||||
Button button = new Button();
|
||||
addObject(button,200,350);
|
||||
button.setImage("Neustart.png");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user