master
GammelJan 6 years ago
parent 863a220ff2
commit c71591876b

@ -39,6 +39,7 @@ public class Controller extends ApplicationAdapter implements InputProcessor{
@Override @Override
public void create(){ public void create(){
ts = new Titlescreen(); ts = new Titlescreen();
ls = null; ls = null;
gs = null; gs = null;
@ -47,7 +48,7 @@ public class Controller extends ApplicationAdapter implements InputProcessor{
batch = new SpriteBatch(); batch = new SpriteBatch();
Gdx.input.setInputProcessor(this); Gdx.input.setInputProcessor(this);
level = new Level(new Goal(1300,700,200,80), new Projectile(0,0,0),400,400); level = new Level(new Goal(700,400,200,80), new Projectile(0,0,0),200,200);
stepTimer = new Timer(); stepTimer = new Timer();
stepTimer.scheduleTask(new Timer.Task() { stepTimer.scheduleTask(new Timer.Task() {

@ -9,8 +9,8 @@ public class DesktopLauncher {
public static void main (String[] arg) { public static void main (String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
//config.fullscreen = true; //config.fullscreen = true;
config.height = 900; config.height = 720;
config.width = 1600; config.width = 1280;
new LwjglApplication(new Controller(), config); new LwjglApplication(new Controller(), config);
} }
} }

Loading…
Cancel
Save