smooth camera

This commit is contained in:
binarycat
2022-03-11 14:49:58 -05:00
parent 362c7ea52d
commit 4ae674f0a7
2 changed files with 43 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ Point = {}
Point.__index = Point
function Point:new(x, y)
local o = { x = x, y = y }
local o = { x = x or 0, y = y or 0 }
setmetatable(o, self)
return o
end