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 === ...')
Line 4: Line 4:
|
|
Returns the game's resolution.
Returns the game's resolution.
-
|
 
|
|
Returns two values, width and height. Both are of the type Number.
Returns two values, width and height. Both are of the type Number.

Revision as of 22:54, 1 December 2009

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

width, height = getScreenSize()

Returns the game's resolution.

Parameter Expected Type Description
Returns
{{{4}}}
Harvest Library

Example

local w,h = harvest.getScreenSize()
harvest.drawRectangle(0, 0, w, h, 0, 0, 0, 255)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox