diff --git a/core/src/controller/Controller.java b/core/src/controller/Controller.java index 7232006..f9abb83 100644 --- a/core/src/controller/Controller.java +++ b/core/src/controller/Controller.java @@ -6,11 +6,8 @@ package controller; import com.badlogic.gdx.ApplicationAdapter; -import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; -import com.badlogic.gdx.Input; import com.badlogic.gdx.InputProcessor; -import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import model.Goal; @@ -18,6 +15,7 @@ import model.Level; import model.Projectile; import view.Gamescreen; import view.Levelscreen; +import com.badlogic.gdx.utils.Timer; import view.Titlescreen; /** @@ -31,6 +29,7 @@ public class Controller extends ApplicationAdapter implements InputProcessor{ Gamescreen gs; int levelAmount; SpriteBatch batch; + Timer stepTimer; @Override public void create(){ @@ -40,6 +39,14 @@ public class Controller extends ApplicationAdapter implements InputProcessor{ levelAmount = 10; batch = new SpriteBatch(); Gdx.input.setInputProcessor(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 8197641..54dd608 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;