use class() in more places
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
LoadedObjects.Particles = {}
|
||||
Particle = {}
|
||||
Particle.type = "Particle"
|
||||
Particle.supertype = Entity.type
|
||||
Particle.display = Animation:new(animation.particle.simple)
|
||||
setmetatable(Particle, Entity)
|
||||
Particle = class(Entity, {
|
||||
type = "Particle",
|
||||
display = Animation:new(animation.particle.simple),
|
||||
})
|
||||
|
||||
function Particle:new(x,y,particle_data)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
Reference in New Issue
Block a user