-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstructions.java
More file actions
33 lines (30 loc) · 792 Bytes
/
Copy pathinstructions.java
File metadata and controls
33 lines (30 loc) · 792 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
33
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class instructions here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class instructions extends World
{
/**
* Constructor for objects of class instructions.
*
*/
public instructions()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(1000, 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()
{
Voltar voltar = new Voltar();
addObject(voltar,50,520);
voltar.setLocation(0,560);
}
}