From 18161313fe8ba70d9752bcf8558be9d9f8df0590 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 7 Apr 2019 22:52:28 +0200 Subject: [PATCH] examples/moveplayer: set the player object as player --- examples/gameplay/moveplayer/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)