GetScreenSize (Harvest)
From OxeyeWiki
|
width, height = getScreenSize() | ||
|
Returns the game's resolution. | ||
| Parameter | Expected Type | Description |
| Returns | ||
| {{{4}}} | ||
Example
local w,h = harvest.getScreenSize() harvest.drawRectangle(0, 0, w, h, 0, 0, 0, 255)
|
width, height = getScreenSize() | ||
|
Returns the game's resolution. | ||
| Parameter | Expected Type | Description |
| Returns | ||
| {{{4}}} | ||
local w,h = harvest.getScreenSize() harvest.drawRectangle(0, 0, w, h, 0, 0, 0, 255)