Definition
SetScreenResolution(int screenWidth)
Description
When running the game, you can select the resolution from the dialog that appears at the beginning of the game. You can also set the resolution of the screen at runtime using SetScreenResolution function.
Parameter
screenWidth
Specifies the width of the screen resolution in pixels. Acceptable values are:
0 : Current screen resolution is selected.
800 : 800 X 600
1024 : 1024 X 768
1280 : 1280 X 720
1920 : 1920 X 1080
2560 : 2560 X 1440
3840 : 3840 X 2160
7680: 7680 X 4320
Example
function Init() SetScreenResolution(1920) end function Update() end
This script sets the screen resolution to 1920 X 1080.
SetScreenResolution