GetScreenSize (Harvest)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
(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 === ...')
 
(2 intermediate revisions not shown)
Line 13: Line 13:
harvest.drawRectangle(0, 0, w, h, 0, 0, 0, 255)
harvest.drawRectangle(0, 0, w, h, 0, 0, 0, 255)
</pre>
</pre>
 +
 +
=== Resources ===
 +
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]

Latest revision as of 16:15, 2 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.

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