examples/test_2: load actors from the newActor function

This commit is contained in:
Kazhnuz 2019-04-07 13:48:52 +02:00
parent 856d41beb5
commit f3543680ba

View file

@ -39,9 +39,9 @@ function TestScene:new()
self.estImpair = false
self.world = World(self, "examples.basic.test_scene2.actors")
self.world.obj.Explosion(self.world, 12, 12)
self.world.obj.Explosion(self.world, 1, 78)
self.world.obj.Explosion(self.world, 40, 200)
self.world:newActor("explosion", 12, 12)
self.world:newActor("explosion", 1, 78)
self.world:newActor("explosion", 40, 200)
end
function TestScene:update(dt)