This commit is contained in:
jancoow
2015-06-02 11:26:46 +02:00
parent 0e62a2e2b0
commit ab827600b1
6 changed files with 18 additions and 225 deletions
+4 -2
View File
@@ -4,20 +4,22 @@ import image.Images;
import java.awt.Graphics2D;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.image.BufferedImage;
public class Player extends Person {
public class Player extends DrawObject {
private BufferedImage img;
private AffineTransform transform;
private int lastindex;
private Point2D middlePoint;
public Player(int x, int y){
super(x,y);
img = Images.getImage(Images.ImageType.player2);
width = img.getWidth();
height = img.getHeight();
lastindex = -10;
middlePoint = new Point2D.Double(x,y);
}
public void draw(Graphics2D g2){//