(Formerly known as system.screen_height, which is now obsolete)
readonly static int System.ScreenHeight;
Returns the actual screen height that the game is running at. This could be 200, 240,
400, 480 or 600.
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.ScreenWidth
|