Ejemplo n.º 1
0
  public static void main(String[] args) {
    Main app = new Main();

    // All the settings. Can be changed when the game starts
    AppSettings cfg = new AppSettings(true);
    cfg.setFrameRate(60); // Frame Rate
    cfg.setVSync(true); // Prevents page tearing
    cfg.setFrequency(cfg.getFrequency()); // Set to screen refresh rate
    cfg.setResolution(1920, 1080);
    cfg.setFullscreen(true);
    cfg.setSamples(2); // Anti-aliasing
    cfg.setTitle("Ghosts®"); // Window name

    //        try {
    //            cfg.setIcons(new BufferedImage[]{ImageIO.read(new
    // File("assets/Interface/icon.gif"))}); // Window Icon
    //        } catch (IOException ex) {
    //            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, "Icon missing.", ex);
    //        }

    cfg.setSettingsDialogImage(
        "Interface/Images/SplashScreens/SettingsSplash.png"); // Splash screen

    // Hiding the stats
    app.setDisplayFps(false);
    app.setDisplayStatView(false);

    app.setSettings(cfg); // Add settings to the program
    app.start();
  }
Ejemplo n.º 2
0
 public static void main(String[] args) {
   Main app = new Main();
   AppSettings settings = new AppSettings(true);
   settings.setResolution(1280, 720);
   app.setShowSettings(false); // splashscreen
   app.setSettings(settings);
   app.start();
 }
Ejemplo n.º 3
0
 public static void main(String[] args) {
   AppSettings settings = new AppSettings(true);
   settings.setResolution(800, 600);
   settings.setUseInput(true);
   settings.setTitle("Bionicle Showdown");
   settings.setSettingsDialogImage("Textures/Menu/ShowdownLogo.png");
   Main app = new Main();
   app.setSettings(settings);
   app.start();
 }
Ejemplo n.º 4
0
 public static void main(String[] args) {
   Main app = new Main();
   app.start();
 }
Ejemplo n.º 5
0
 public static void main(String[] args) {
   Main app = new Main();
   app.setShowSettings(false);
   app.start();
 }
Ejemplo n.º 6
0
 public void setPosition(float x, float z) {
   float y = game.getYAtPosition(z, x);
   model.setLocalTranslation(z, y, x);
 }
Ejemplo n.º 7
0
 public Tree(Main g) {
   game = g;
   model = game.ohSantaBringMeATree();
   //        model.scale(10f, 30f, 10f);
   model.scale(1f, 3f, 1f);
 }
Ejemplo n.º 8
0
 public Gumball(Main app) {
   this.app = app;
   assetManager = app.getAssetManager();
   rootNode = app.getRootNode();
   guiFont = app.getBitmapFont();
 }