-- set viewport -- but while following some constraints set_viewport = function(viewport) Viewport = viewport if Viewport.zoom < 0.1 then Viewport.zoom = 0.1 end Viewport.w, Viewport.h = App.screen.width, App.screen.height end