Global Command: setWindowSize

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 23:36, 15 May 2023 by EK (talk | contribs) (Created page with "Set the size of the game window. Only applicable, if the game is running in window mode. == Syntax == <syntaxhighlight lang="lua"> setWindowSize(size) </syntaxhighlight> =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Set the size of the game window. Only applicable, if the game is running in window mode.


Syntax

setWindowSize(size)


Parameters

Parameter Type/Structure Description
size table x (int) The new width of the game window. Pass the new window size as an associative array containing the elements x and y.
y (int) The new height of the game window.


Return values

none


Examples

Example 1: Resize the game window to 640 x 480 px.

setWindowSize({x=640,y=480})