diff --git a/examples/basic/test_scene2/actors/explosion.lua b/examples/basic/test_scene2/actors/explosion.lua index 0fc6575..eafc527 100644 --- a/examples/basic/test_scene2/actors/explosion.lua +++ b/examples/basic/test_scene2/actors/explosion.lua @@ -1,8 +1,8 @@ local Parent = require "examples.basic.test_scene2.actors.parent" local Explosion = Parent:extend() -function Explosion:new(scene, x, y) - Explosion.super.new(self, scene, "explosion", x - 8, y - 8, 16, 16) +function Explosion:new(world, x, y) + Explosion.super.new(self, world, "explosion", x - 8, y - 8, 16, 16) end return Explosion diff --git a/examples/basic/test_scene2/actors/parent.lua b/examples/basic/test_scene2/actors/parent.lua index fc61074..cc3c57f 100644 --- a/examples/basic/test_scene2/actors/parent.lua +++ b/examples/basic/test_scene2/actors/parent.lua @@ -1,9 +1,9 @@ local Base = require "gamecore.modules.world.actors.actor2D" local Parent = Base:extend() -function Parent:new(scene, type, x, y, w, h) - self.scene = scene - Parent.super.new(self, scene.world, type, x, y, w, h) +function Parent:new(world, type, x, y, w, h) + self.scene = world.scene + Parent.super.new(self, world, type, x, y, w, h) end function Parent:update(dt) diff --git a/examples/basic/test_scene2/init.lua b/examples/basic/test_scene2/init.lua index 260027f..2d082d4 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, 12, 12) - self.world.obj.Explosion(self, 1, 78) - self.world.obj.Explosion(self, 40, 200) + self.world.obj.Explosion(self.world, 12, 12) + self.world.obj.Explosion(self.world, 1, 78) + self.world.obj.Explosion(self.world, 40, 200) end function TestScene:update(dt)