examples/moveplayer: set the player object as player
This commit is contained in:
parent
dd1e25969e
commit
18161313fe
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ function MovePlayer:new()
|
||||||
|
|
||||||
self.world = World(self, "examples.gameplay.moveplayer.actors")
|
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
|
end
|
||||||
|
|
||||||
function MovePlayer:update(dt)
|
function MovePlayer:update(dt)
|
||||||
|
|
Loading…
Reference in a new issue