Doc: GetScreenHeight( )
GetScreenHeight - get the height of the game screen
Syntax
screenHeight = GetScreenHeight( )
- screenHeight : returned height of the screen
Explanation
GetScreenHeight( ) gets the height of the game screen.
Examples
Display the Screen Height
The example code below displays the height of the screen.
SetFPS 60
Do
Cls 0
screenHeight = GetScreenHeight( )
Print "The screen height is : " + Str$(screenHeight)
Sync
Loop
Related Pages
Game Screen Functions
- GetScreenWidth() - get the width of the game screen.
- OpenScreen() - open a game screen (optional).
Source Code
| Categories: Functions : Graphics : Screen |