getResolution
API -
return function()
local app = getApp();
local res = app.getResolution();
log('current window resolution is ' .. res.x .. ', ' .. res.y);
end
The resolution refers to the window size, not game coordinates! look at convertPercentToPosition for in-game coordinate system.
Last updated