Lua:getScreenWidth
Jump to navigation
Jump to search
Returns the screen width.
Function Parameters
This function has no parameters.
Returns
integer — The width of the screen in pixels.
Examples
local width = getScreenWidth()
print("Screen width: " .. width)