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
1 changed files with 1 additions and 1 deletions

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)