Package com.mygdx.utils
Class Constants
- java.lang.Object
-
- com.mygdx.utils.Constants
-
public final class Constants extends java.lang.Object
creates game constants and is updated when appropriate (I know some aren't technically constants)
-
-
Field Summary
Fields Modifier and Type Field Description static float
ASPECT_RATIO
static com.badlogic.gdx.math.Vector3
BACKGROUND_COLOUR
static float
BUILDING_SCALE
static com.badlogic.gdx.math.Vector2
DIMENSIONS
static boolean
FULLSCREEN
static com.badlogic.gdx.math.Vector2
HALF_DIMENSIONS
static int
HALF_VIEWPORT_HEIGHT
static int
HALF_VIEWPORT_WIDTH
static java.lang.String
OPERATING_SYSTEM
static float
PHYSICS_TIME_STEP
static int
SCREEN_HEIGHT
static int
SCREEN_WIDTH
static float
TILE_SIZE
static int
VIEWPORT_HEIGHT
static java.lang.String
VIEWPORT_TITLE
static int
VIEWPORT_WIDTH
static boolean
VSYNC
static float
ZOOM
-
Constructor Summary
Constructors Constructor Description Constants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
INIT_CONSTANTS()
Create constants needed so it can properly source screen dimensionsstatic void
UPDATE_VIEWPORT(int x, int y)
Update viewport data on resize
-
-
-
Field Detail
-
SCREEN_WIDTH
public static int SCREEN_WIDTH
-
SCREEN_HEIGHT
public static int SCREEN_HEIGHT
-
FULLSCREEN
public static boolean FULLSCREEN
-
ASPECT_RATIO
public static float ASPECT_RATIO
-
VIEWPORT_HEIGHT
public static int VIEWPORT_HEIGHT
-
VIEWPORT_WIDTH
public static int VIEWPORT_WIDTH
-
HALF_VIEWPORT_HEIGHT
public static int HALF_VIEWPORT_HEIGHT
-
HALF_VIEWPORT_WIDTH
public static int HALF_VIEWPORT_WIDTH
-
DIMENSIONS
public static com.badlogic.gdx.math.Vector2 DIMENSIONS
-
HALF_DIMENSIONS
public static com.badlogic.gdx.math.Vector2 HALF_DIMENSIONS
-
VIEWPORT_TITLE
public static java.lang.String VIEWPORT_TITLE
-
PHYSICS_TIME_STEP
public static float PHYSICS_TIME_STEP
-
ZOOM
public static final float ZOOM
- See Also:
- Constant Field Values
-
VSYNC
public static final boolean VSYNC
- See Also:
- Constant Field Values
-
BUILDING_SCALE
public static final float BUILDING_SCALE
- See Also:
- Constant Field Values
-
TILE_SIZE
public static float TILE_SIZE
-
BACKGROUND_COLOUR
public static com.badlogic.gdx.math.Vector3 BACKGROUND_COLOUR
-
OPERATING_SYSTEM
public static java.lang.String OPERATING_SYSTEM
-
-