Package de.swagner.piratesbigsea

Source Code of de.swagner.piratesbigsea.DesktopStarter

package de.swagner.piratesbigsea;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.Graphics.DisplayMode;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;

public class DesktopStarter extends Game {

  public static void main(String[] args) {
   
    DisplayMode displayMode = LwjglApplicationConfiguration.getDesktopDisplayMode();
   
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();

    config.setFromDisplayMode(displayMode);

    config.width = 800;
    config.height = 480;
    config.title = "Backyard Pirates - ld23 entry by bompo";

    config.fullscreen = false;
    config.samples = 4;
    config.useGL20 = true;
    config.vSyncEnabled = true;
    config.useCPUSynch = true;
    new LwjglApplication(new DesktopStarter(), config);
  }

  @Override
  public void create() {
    Configuration.getInstance().setConfiguration();
    setScreen(new MenuScreen(this))
  }

}
TOP

Related Classes of de.swagner.piratesbigsea.DesktopStarter

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.