GetScreenSize (Harvest)

From OxeyeWiki

Revision as of 16:15, 2 December 2009 by 166 MMX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

width, height = getScreenSize()

Returns the game's resolution.

Parameter Expected Type Description
Returns

Returns two values, width and height. Both are of the type Number.

Harvest Library

Example

local w,h = harvest.getScreenSize()
harvest.drawRectangle(0, 0, w, h, 0, 0, 0, 255)

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox