API -
Last updated 2 years ago
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 for in-game coordinate system.