zoom camera
Do you know how I can add a zoom behavior when the "space" key is pressed using this code `initCamera = function() camera = object x = 0 y = 0 end end updateCamera = function() camera.x = clamp(player.x, -389, 389) camera.y = clamp(player.y, -389,389) end
clamp = function(value, lower_limit, upper_limit) local val = max(value, lower_limit) val = min(val, upper_limit) return val end`

