made a table local

This commit is contained in:
lustlion 2022-02-27 04:29:13 +01:00
parent e32356335f
commit fcac1abef1
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,8 @@ Entity = {class = "Entity"}
LoadedObjects.Entities = {}
function Entity:New(x,y)
o = {}
local o = {}
o.pos = {x = x, y = y}
o.vel = {x = 0, y = 0}

View File

@ -2,7 +2,7 @@ interfaceDialog = {type = "Dialog"}
-- dialog boxes
function interfaceDialog:New(style)
local o = {}
o.pos = {
x = 0,
y = game.height*80/100
@ -10,7 +10,6 @@ function interfaceDialog:New(style)
o.size = {
w = game.width,
h = game.height*20/100
}
o.value = 0
@ -34,7 +33,6 @@ function interfaceDialog:New(style)
setmetatable(o, self)
self.__index = self
return o
end