diff --git a/core/src/controller/Controller.java b/core/src/controller/Controller.java index c451998..ed7bbc0 100644 --- a/core/src/controller/Controller.java +++ b/core/src/controller/Controller.java @@ -8,6 +8,8 @@ package controller; import com.badlogic.gdx.Game; import com.badlogic.gdx.InputProcessor; import com.badlogic.gdx.Screen; +import com.badlogic.gdx.utils.Timer; + import view.AbstractScreen; import view.Titlescreen; @@ -17,9 +19,19 @@ import view.Titlescreen; */ public class Controller extends Game{ + Timer stepTimer; + @Override public void create() { setScreen(new Titlescreen(this)); + + stepTimer = new Timer(); + stepTimer.scheduleTask(new Timer.Task() { + @Override + public void run() { + + } + }, 0, 0.1f); } @Override diff --git a/core/src/model/Level.java b/core/src/model/Level.java index 4bba4f3..94b3774 100644 --- a/core/src/model/Level.java +++ b/core/src/model/Level.java @@ -15,7 +15,7 @@ import com.throwgame.main.ThrowMath; */ public class Level { private final double G = 9.81; - private final int RADIUS = 5; + private final int RADIUS = 50; private Goal goal; private Projectile projectile; @@ -29,6 +29,8 @@ public class Level { public Level(Goal goal, Projectile projectile, int xPosPivot, int yPosPivot){ this.goal = goal; this.projectile = projectile; + this.projectile.setxPos(xPosPivot + RADIUS); + this.projectile.setyPos(yPosPivot); this.math = new ThrowMath(); this.isReleased = false;