examples/moveplayer: set the player object as player

This commit is contained in:
Kazhnuz 2019-04-07 22:52:28 +02:00
parent dd1e25969e
commit 18161313fe

View file

@ -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)