From f3543680baa5fea46e9fee2b36a87f2a8011ccfa Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 7 Apr 2019 13:48:52 +0200 Subject: [PATCH] examples/test_2: load actors from the newActor function --- examples/basic/test_scene2/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/basic/test_scene2/init.lua b/examples/basic/test_scene2/init.lua index 2d082d4..bb8eaff 100644 --- a/examples/basic/test_scene2/init.lua +++ b/examples/basic/test_scene2/init.lua @@ -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)