Back to project page TileArena.
The source code is released under:
MIT License
If you think the Android project TileArena listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package game.tile.arena; // w w w .j av a 2 s . c o m import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.OrthographicCamera; import java.util.LinkedList; import java.util.List; import game.tile.arena.entity.Entity; import game.tile.arena.entity.Player; import game.tile.arena.entity.projectile.Projectile; import game.tile.arena.util.Position; import game.tile.arena.util.controller.PlayerController; import game.tile.arena.util.input.InputManager; import game.tile.arena.util.controller.TouchController; import game.tile.arena.world.World; public class Game { public static final int FPS = 60; public static final boolean ALLY = true; public static final boolean ENEMY = false; public static final Position WORLD = new Position(Gdx.graphics.getWidth()*3, Gdx.graphics.getHeight()*3); public static final Position SCREEN = new Position(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); public static final OrthographicCamera camera = new OrthographicCamera(SCREEN.x, SCREEN.y); public static final OrthographicCamera hudCam = new OrthographicCamera(SCREEN.x, SCREEN.y); public static final World world = World.getInstance(); public static final InputManager rawInput = InputManager.getInstance(); public static final PlayerController input = PlayerController.getInstance(); public static final Player player = new Player(new Position(0, 0)); public static final List<Projectile> projectiles = new LinkedList<Projectile>(); public static final List<Entity> entities = new LinkedList<Entity>(); public static Position getCameraPos() { return new Position(camera.position.x, camera.position.y); } }