(Formerly known as system.screen_width, which is now obsolete)
readonly static int System.ScreenWidth;
Returns the actual screen width that the game is running at. This could be 320, 640 or 800.
Note that if a graphic filter is in use, the resolution returned will be that before
any stretching applied by the filter has been applied.
NOTE: This information is provided in case you need it to optimise your game,
however please do not use it to force the player to run at a particular resolution.
AGS is designed to allow players to choose different resolutions to help get the game
working on their PC.
Example:
Display("Game is running at: %d x %d, %d-bit colour", System.ScreenWidth,
System.ScreenHeight, System.ColorDepth);
will display the current resolution and colour depth
See Also: System.ColorDepth,
System.ScreenHeight
|