rope, moved entities from LoadedEntities to LoadedObjects.Entities

This commit is contained in:
lustlion
2022-02-10 18:18:37 +01:00
parent 7f42dea6fa
commit ff99b79563
15 changed files with 143 additions and 42 deletions

View File

@@ -3,6 +3,8 @@ Fairy = Entity:New(x,y)
function Fairy:New(x,y)
local o = Entity:New(x,y)
o.type = "fairy"
-- behaviour
o.pos = {x = x, y = y}
o.speed = 1.4
@@ -24,8 +26,8 @@ Fairy = Entity:New(x,y)
o.particle_timer = 0
o.particle_time = 5
table.insert(LoadedEntities,o)
o.id = #LoadedEntities
table.insert(LoadedObjects.Entities,o)
o.id = #LoadedObjects.Entities
setmetatable(o, self)
self.__index = self