Class DesktopLauncher


  • class DesktopLauncher
    extends java.lang.Object
    Provides the JVM system entry point to launch the desktop Lwjgl3Application with the HeslingtonHustle 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 consistent Character move-speed across differing monitor refresh rates.
      private static java.lang.String GAME_TITLE
      The title of the Java window
      private static java.lang.String ICON_PATH
      The file-path of the icon to be displayed on non-MacOS systems
      private static int INITIAL_WINDOW_HEIGHT
      The initial window width, in pixels
      private 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 a Lwjgl3ApplicationConfiguration instance with sensible pre-determined defaults to be used when constructing the Lwjgl3Application desktop window.
      static void main​(java.lang.String[] args)
      The system entry point: initialises the Lwjgl3Application and HeslingtonHustle as a LibGDX Game.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 consistent Character 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
    • Constructor Detail

      • DesktopLauncher

        DesktopLauncher()
    • Method Detail

      • getDefaultConfiguration

        private static com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration getDefaultConfiguration()
        Parameterises a Lwjgl3ApplicationConfiguration instance with sensible pre-determined defaults to be used when constructing the Lwjgl3Application desktop window.
        Returns:
        The parameterised default configuration for the Lwjgl3Application window
      • main

        public static void main​(java.lang.String[] args)
        The system entry point: initialises the Lwjgl3Application and HeslingtonHustle as a LibGDX Game.
        Parameters:
        args - Textual command-line argument vector