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 = {} LoadedObjects.Entities = {}
function Entity:New(x,y) function Entity:New(x,y)
o = {} local o = {}
o.pos = {x = x, y = y} o.pos = {x = x, y = y}
o.vel = {x = 0, y = 0} o.vel = {x = 0, y = 0}

View File

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