start physics

This commit is contained in:
nora 2020-12-11 23:04:08 +01:00
parent 35c47c50b8
commit 843d30eb47
9 changed files with 61 additions and 2 deletions

View file

@ -32,6 +32,10 @@ public abstract class GameObject {
public abstract void draw(Graphics2D g2d, int w, Master master);
public abstract void update(Master master);
public void moveTo(Vector2D target){
this.position = target;
}
public double getMapCoords(double value, boolean isX){
if (isX){