screen Height

Get the height in pixels of the screen.

scene.screenWidth()

Returns

  • a number that’s the height of the screen on the game device or simulator.

Example

Draw a wide line down the entire screen.

let showLine: Sprite = null
let wideLine: Image = null
wideLine = image.create(3, scene.screenHeight())
wideLine.fill(5)
showLine = sprites.create(wideLine)

See also

screen width