-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnderwater.java
More file actions
37 lines (29 loc) · 805 Bytes
/
Copy pathUnderwater.java
File metadata and controls
37 lines (29 loc) · 805 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
34
35
36
37
import greenfoot.GreenfootImage;
import greenfoot.GreenfootSound;
public class Underwater extends Theme
{
private Champion champion;
private Enemy enemiesClass;
private GreenfootImage image;
private GreenfootSound sound;
public Underwater() {
// Set the Actor Image
setImage(TypingMaster.BUTTON_UNDERWATER);
image = new GreenfootImage("images/underwater/background.jpg");
sound = new GreenfootSound("sounds/Ocean.mp3");
champion = new Diver();
enemiesClass = new Oceanmies();
}
public GreenfootImage getBackground() {
return image;
}
public Champion getChampion() {
return champion;
}
public Enemy getEnemiesClass() {
return enemiesClass;
}
public GreenfootSound getBackgroundSound() {
return sound;
}
}