Skip to content

window_size

Return the window size in logical pixels.

Takes no arguments.

local width, height = window_size()

Related: get_screen_width, get_screen_height.

See the runner timing guide for more examples and limits.