Difference between revisions of "Global Command: setWindowSize"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(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> =...")
 
(No difference)

Latest revision as of 00:36, 16 May 2023

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})