Working basic elements.

This commit is contained in:
jussi
2022-12-05 16:56:41 +02:00
parent bdbd475ae3
commit b3d2a9c0a2
5 changed files with 202 additions and 194 deletions

View File

@@ -49,12 +49,12 @@ function Vector2:new( x, y )
x, y = 0, 0
end
local o = {
x = x,
y = y,
}
setmetatable( o, Vector2.meta )
return o
local object = setmetatable( {}, Vector2.meta )
object.x = x
object.y = y
return object
end
function Vector2:set( x, y )