Android Open Source - GravityShip Main






From Project

Back to project page GravityShip.

License

The source code is released under:

GNU General Public License

If you think the Android project GravityShip listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.hajnar.GravityShip;
//from   w w  w . ja v a2s .  co m
import com.badlogic.gdx.Graphics;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;

public class Main {
  public static void main(String[] args) {
    LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
       Graphics.DisplayMode displayMode = LwjglApplicationConfiguration.getDesktopDisplayMode();
       System.out.println("render resolution : " + displayMode.width + "x" + displayMode.height);
    cfg.title = "GravityShip";
    cfg.stencil = 0;
    cfg.useGL20 = true;
    cfg.useCPUSynch = false;
    cfg.vSyncEnabled = true;
    
    if (args.length >= 2)
    {
      cfg.width = Integer.parseInt(args[0]);
      cfg.height = Integer.parseInt(args[1]);
      if (args.length >= 3)
        cfg.fullscreen = Boolean.parseBoolean(args[2]);
    }
    else
    {
      cfg.width = displayMode.width;
      cfg.height = displayMode.height; 
      cfg.fullscreen = true;    
    }
    
    new LwjglApplication(new GravityShip(), cfg);
  }
}




Java Source Code List

com.hajnar.GravityShip.Assets.java
com.hajnar.GravityShip.CollisionProcessor.java
com.hajnar.GravityShip.GameSettings.java
com.hajnar.GravityShip.GameWorldRenderGL2.java
com.hajnar.GravityShip.GameWorld.java
com.hajnar.GravityShip.GravityShip.java
com.hajnar.GravityShip.Helper.java
com.hajnar.GravityShip.MainActivity.java
com.hajnar.GravityShip.Main.java
com.hajnar.GravityShip.ScrollingBackground.java
com.hajnar.GravityShip.GameObjects.BlackHole.java
com.hajnar.GravityShip.GameObjects.Bullet.java
com.hajnar.GravityShip.GameObjects.Canon.java
com.hajnar.GravityShip.GameObjects.GameCamera.java
com.hajnar.GravityShip.GameObjects.GameObject.java
com.hajnar.GravityShip.GameObjects.LandingZone.java
com.hajnar.GravityShip.GameObjects.Player.java
com.hajnar.GravityShip.GameObjects.Star.java
com.hajnar.GravityShip.GameObjects.Terrain.java
com.hajnar.GravityShip.Screens.GameScreen.java
com.hajnar.GravityShip.Screens.MenuScreen.java
com.hajnar.GravityShip.Screens.SettingsScreen.java
com.hajnar.GravityShip.Screens.SplashScreen.java