Jonathan Hager 6 years ago
parent d3763e0f06
commit 3a463b0003

@ -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

@ -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;

Loading…
Cancel
Save