GetScreenSize (Harvest)
From OxeyeWiki
(Difference between revisions)
166 MMX (Talk | contribs)
(Created page with '{{HarvestMethod | width, height = getScreenSize() | Returns the game's resolution. | | Returns two values, width and height. Both are of the type Number. }} === Example === ...')
Newer edit →
(Created page with '{{HarvestMethod | width, height = getScreenSize() | Returns the game's resolution. | | Returns two values, width and height. Both are of the type Number. }} === Example === ...')
Newer edit →
Revision as of 22:54, 1 December 2009
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. |
Example
local w,h = harvest.getScreenSize() harvest.drawRectangle(0, 0, w, h, 0, 0, 0, 255)