-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRyanPark.java
More file actions
28 lines (28 loc) · 763 Bytes
/
Copy pathRyanPark.java
File metadata and controls
28 lines (28 loc) · 763 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
import greenfoot.*;
/**
* Write a description of class RyanPark here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class RyanPark extends Fighter
{
/**
* Constructor for objects of class RyanPark
*/
public RyanPark()
{
setImage("r5.png");
fileprefix = "r";
maxhp = 100;
hp = 100;
damage = 5;
name = "Ryan Park";
rightidle = new GreenfootImage(fileprefix + "idle.png");
leftidle = new GreenfootImage(fileprefix + "idle.png");
leftidle.mirrorHorizontally();
jumpright = new GreenfootImage(fileprefix + "jump.png");
jumpleft = new GreenfootImage(fileprefix + "jump.png");
jumpleft.mirrorHorizontally();
}
}