-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLose.java
34 lines (31 loc) · 793 Bytes
/
Lose.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Lose here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Lose extends World
{
/**
* Constructor for objects of class Lose.
*
*/
public Lose()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(600, 400, 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()
{
restart restart = new restart();
addObject(restart,59,342);
menu menu = new menu();
addObject(menu,540,345);
}
}