BoardGameApplication

fun BoardGameApplication(    windowTitle: String = DEFAULT_WINDOW_TITLE,     width: Number = DEFAULT_WINDOW_WIDTH,     height: Number = DEFAULT_WINDOW_HEIGHT,     windowMode: WindowMode? = null)

Creates the BoardGameApplication with optional title and dimension. May only be called once per execution.

Parameters

windowTitle

Title for the application window. Gets displayed in the title bar. Default: DEFAULT_WINDOW_TITLE.

width

Initial window width. Default: DEFAULT_WINDOW_WIDTH.

height

Initial window height. Default: DEFAULT_WINDOW_HEIGHT.

windowMode

Initial window mode. Overrides isMaximized and isFullScreen if passed. Refer to WindowMode docs for further information about the effects.


fun BoardGameApplication(    windowTitle: String = DEFAULT_WINDOW_TITLE,     aspectRatio: AspectRatio = AspectRatio(),     windowMode: WindowMode? = null)

Creates the BoardGameApplication with optional title and aspect ratio. May only be called once per execution.

Parameters

windowTitle

Title for the application window. Gets displayed in the title bar. Default: DEFAULT_WINDOW_TITLE.

aspectRatio

Initial aspect ratio of application window. Default: empty AspectRatio constructor.

windowMode

Initial window mode. Overrides isMaximized and isFullScreen if passed. Refer to WindowMode docs for further information about the effects.