mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-14 22:15:01 +01:00
start physics
This commit is contained in:
parent
35c47c50b8
commit
843d30eb47
9 changed files with 61 additions and 2 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue