GameSprint1Done, little bug. When aiming right down not possible to hit with button 1 and 3 :S
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user