Package com.mygdx.utils
Class Constants
- java.lang.Object
-
- com.mygdx.utils.Constants
-
public final class Constants extends java.lang.Objectcreates game constants and is updated when appropriate (I know some aren't technically constants)
-
-
Field Summary
Fields Modifier and Type Field Description static floatASPECT_RATIOstatic com.badlogic.gdx.math.Vector3BACKGROUND_COLOURstatic floatBUILDING_SCALEstatic com.badlogic.gdx.math.Vector2DIMENSIONSstatic booleanFULLSCREENstatic com.badlogic.gdx.math.Vector2HALF_DIMENSIONSstatic intHALF_VIEWPORT_HEIGHTstatic intHALF_VIEWPORT_WIDTHstatic java.lang.StringOPERATING_SYSTEMstatic floatPHYSICS_TIME_STEPstatic intSCREEN_HEIGHTstatic intSCREEN_WIDTHstatic floatTILE_SIZEstatic intVIEWPORT_HEIGHTstatic java.lang.StringVIEWPORT_TITLEstatic intVIEWPORT_WIDTHstatic booleanVSYNCstatic floatZOOM
-
Constructor Summary
Constructors Constructor Description Constants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidINIT_CONSTANTS()Create constants need so it can properly source screen dimensionsstatic voidUPDATE_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
-
-