-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLevel5.java
29 lines (25 loc) · 1.14 KB
/
Level5.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
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Level5 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Level5 extends World
{
Score scoreObj=null;
public Level5()
{
super(1200, 600, 1);
addObject( new Coin1(),Greenfoot.getRandomNumber(965)+20,Greenfoot.getRandomNumber(560)+20 );
addObject( new Coin1(),Greenfoot.getRandomNumber(965)+20,Greenfoot.getRandomNumber(560)+20 );
addObject( new Coin1(),Greenfoot.getRandomNumber(965)+20,Greenfoot.getRandomNumber(560)+20 );
addObject( new Coin1(),Greenfoot.getRandomNumber(965)+20,Greenfoot.getRandomNumber(560)+20 );
addObject( new Coin1(),Greenfoot.getRandomNumber(965)+20,Greenfoot.getRandomNumber(560)+20 );
addObject( new Coin1(),Greenfoot.getRandomNumber(965)+20,Greenfoot.getRandomNumber(560)+20 );
addObject( new Fire(), Greenfoot.getRandomNumber(965)+20,Greenfoot.getRandomNumber(560)+20 );
scoreObj = new Score();
addObject( scoreObj, 1100,300);
addObject( new Ram(),200,200);
}
}