-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGhost.java
More file actions
26 lines (23 loc) · 778 Bytes
/
Copy pathGhost.java
File metadata and controls
26 lines (23 loc) · 778 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
import javax.swing.ImageIcon;
@SuppressWarnings("serial")
public class Ghost extends Mover{
//Costumes TODO
public static final ImageIcon[] IMAGE =
{
new ImageIcon("./images/Ghost0.png"),
new ImageIcon("./images/Ghost1.png"),
new ImageIcon("./images/Ghost2.png"),
new ImageIcon("./images/Ghost3.png"),
new ImageIcon("./images/GhostWeak.png"),
new ImageIcon("./images/GhostApple.png"),
new ImageIcon("./images/GhostBert.png"),
new ImageIcon("./images/GhostErnie.png"),
new ImageIcon("./images/GhostHelloKitty.png"),
new ImageIcon("./images/GhostHomer.png"),
new ImageIcon("./images/GhostR2-D2.png"),
new ImageIcon("./images/GhostRocker.png")
};
public Ghost (int gNum){
this.setIcon(IMAGE[gNum]);
}
}