-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHome.java
More file actions
29 lines (28 loc) · 713 Bytes
/
Home.java
File metadata and controls
29 lines (28 loc) · 713 Bytes
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
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Home here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Home extends World
{
/**
* Constructor for objects of class Home.
*
*/
public Home()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(600, 400, 1);
addObject(new birdhome(),300, 200);
addObject(new opening(),300, 100);
addObject(new information(), 567,370);
prepare();
}
private void prepare()
{
start start = new start();
addObject(start, 300, 293);
}
}