examples/test_2: load actors from the newActor function
This commit is contained in:
parent
856d41beb5
commit
f3543680ba
1 changed files with 3 additions and 3 deletions
|
@ -39,9 +39,9 @@ function TestScene:new()
|
||||||
self.estImpair = false
|
self.estImpair = false
|
||||||
|
|
||||||
self.world = World(self, "examples.basic.test_scene2.actors")
|
self.world = World(self, "examples.basic.test_scene2.actors")
|
||||||
self.world.obj.Explosion(self.world, 12, 12)
|
self.world:newActor("explosion", 12, 12)
|
||||||
self.world.obj.Explosion(self.world, 1, 78)
|
self.world:newActor("explosion", 1, 78)
|
||||||
self.world.obj.Explosion(self.world, 40, 200)
|
self.world:newActor("explosion", 40, 200)
|
||||||
end
|
end
|
||||||
|
|
||||||
function TestScene:update(dt)
|
function TestScene:update(dt)
|
||||||
|
|
Loading…
Reference in a new issue