diff --git a/examples/gameplay/moveplayer/init.lua b/examples/gameplay/moveplayer/init.lua index 5db44ca..d2326ef 100644 --- a/examples/gameplay/moveplayer/init.lua +++ b/examples/gameplay/moveplayer/init.lua @@ -31,7 +31,7 @@ function MovePlayer:new() self.world = World(self, "examples.gameplay.moveplayer.actors") - self.world.obj.Player(self.world, 16, 16) + self.world:addPlayer(self.world.obj.Player(self.world, 16, 16)) end function MovePlayer:update(dt)