-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial.java
More file actions
32 lines (29 loc) · 733 Bytes
/
tutorial.java
File metadata and controls
32 lines (29 loc) · 733 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
30
31
32
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class tutorial here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class tutorial extends World
{
/**
* Constructor for objects of class tutorial.
*
*/
public tutorial()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(1200, 675, 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()
{
back back = new back();
addObject(back,84,586);
}
}