GameSprint1Done, little bug. When aiming right down not possible to hit with button 1 and 3 :S

This commit is contained in:
Remco
2015-05-26 22:14:44 +02:00
parent 2af16890d4
commit 3bc4f55f5a
18 changed files with 515 additions and 84 deletions
+8 -6
View File
@@ -2,19 +2,21 @@ package model.drawObjects;
import java.awt.Graphics2D;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
public abstract class DrawObject {
protected Point2D middlePoint;
protected AffineTransform transform;
protected int index = 0,width,height;
public DrawObject(int x, int y) {
middlePoint = new Point2D.Double(x, y);
protected AffineTransform transform;
protected double width,height;
protected int index = 0;
public DrawObject() {
transform = new AffineTransform();
}
public void setIndex(int index){
this.index = index;
}
public abstract void draw(Graphics2D g2);
public abstract void update();
}