Package bytemusketeers.heslingtonhustle
Class DesktopLauncher
- java.lang.Object
-
- bytemusketeers.heslingtonhustle.DesktopLauncher
-
class DesktopLauncher extends java.lang.ObjectProvides the JVM system entry point to launch the desktopLwjgl3Applicationwith theHeslingtonHustleinstance, specifying certain fixed application configuration parameters.- Author:
- ENG1 Team 23 (Cohort 3)
-
-
Field Summary
Fields Modifier and Type Field Description private static intFPS_LIMITThe frames-per-second limit, fixed to ensure a consistentCharactermove-speed across differing monitor refresh rates.private static java.lang.StringGAME_TITLEThe title of the Java windowprivate static java.lang.StringICON_PATHThe file-path of the icon to be displayed on non-MacOS systemsprivate static intINITIAL_WINDOW_HEIGHTThe initial window width, in pixelsprivate static intINITIAL_WINDOW_WIDTHThe initial window height, in pixels
-
Constructor Summary
Constructors Constructor Description DesktopLauncher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfigurationgetDefaultConfiguration()Parameterises aLwjgl3ApplicationConfigurationinstance with sensible pre-determined defaults to be used when constructing theLwjgl3Applicationdesktop window.static voidmain(java.lang.String[] args)
-
-
-
Field Detail
-
INITIAL_WINDOW_WIDTH
private static final int INITIAL_WINDOW_WIDTH
The initial window height, in pixels- See Also:
- Constant Field Values
-
INITIAL_WINDOW_HEIGHT
private static final int INITIAL_WINDOW_HEIGHT
The initial window width, in pixels- See Also:
- Constant Field Values
-
FPS_LIMIT
private static final int FPS_LIMIT
The frames-per-second limit, fixed to ensure a consistentCharactermove-speed across differing monitor refresh rates.- See Also:
- Constant Field Values
-
GAME_TITLE
private static final java.lang.String GAME_TITLE
The title of the Java window- See Also:
- Constant Field Values
-
ICON_PATH
private static final java.lang.String ICON_PATH
The file-path of the icon to be displayed on non-MacOS systems- See Also:
Lwjgl3WindowConfiguration.setWindowIcon(String...), Constant Field Values
-
-
Method Detail
-
getDefaultConfiguration
private static com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration getDefaultConfiguration()
Parameterises aLwjgl3ApplicationConfigurationinstance with sensible pre-determined defaults to be used when constructing theLwjgl3Applicationdesktop window.- Returns:
- The parameterised default configuration for the
Lwjgl3Applicationwindow
-
main
public static void main(java.lang.String[] args)
- Parameters:
args- Textual command-line argument vector
-
-