v0.8.0: fixed various errors with resized enemy sprites
This commit is contained in:
@@ -138,12 +138,12 @@ public class Visual extends Gizmo {
|
||||
}
|
||||
|
||||
public PointF center() {
|
||||
return new PointF( x + width / 2, y + height / 2 );
|
||||
return new PointF( x + width() / 2, y + height() / 2 );
|
||||
}
|
||||
|
||||
public PointF center( PointF p ) {
|
||||
x = p.x - width / 2;
|
||||
y = p.y - height / 2;
|
||||
x = p.x - width() / 2;
|
||||
y = p.y - height() / 2;
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user