Package bytemusketeers.heslingtonhustle
Class DesktopLauncher
- java.lang.Object
-
- bytemusketeers.heslingtonhustle.DesktopLauncher
-
class DesktopLauncher extends java.lang.Object
Provides the JVM system entry point to launch the desktopLwjgl3Application
with theHeslingtonHustle
instance, specifying certain fixed application configuration parameters.- Author:
- ENG1 Team 23 (Cohort 3)
-
-
Field Summary
Fields Modifier and Type Field Description private static int
FPS_LIMIT
The frames-per-second limit, fixed to ensure a consistentCharacter
move-speed across differing monitor refresh rates.private static java.lang.String
GAME_TITLE
The title of the Java windowprivate static java.lang.String
ICON_PATH
The file-path of the icon to be displayed on non-MacOS systemsprivate static int
INITIAL_WINDOW_HEIGHT
The initial window width, in pixelsprivate static int
INITIAL_WINDOW_WIDTH
The 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.Lwjgl3ApplicationConfiguration
getDefaultConfiguration()
Parameterises aLwjgl3ApplicationConfiguration
instance with sensible pre-determined defaults to be used when constructing theLwjgl3Application
desktop window.static void
main(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 consistentCharacter
move-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 aLwjgl3ApplicationConfiguration
instance with sensible pre-determined defaults to be used when constructing theLwjgl3Application
desktop window.- Returns:
- The parameterised default configuration for the
Lwjgl3Application
window
-
main
public static void main(java.lang.String[] args)
- Parameters:
args
- Textual command-line argument vector
-
-