examples/moveplayer: use the new map
This commit is contained in:
parent
c41930fca4
commit
c1cefa9f92
1 changed files with 2 additions and 3 deletions
|
@ -29,10 +29,9 @@ local World = require "gamecore.modules.world.world2D"
|
||||||
function MovePlayer:new()
|
function MovePlayer:new()
|
||||||
MovePlayer.super.new(self)
|
MovePlayer.super.new(self)
|
||||||
|
|
||||||
self.world = World(self, "examples.gameplay.moveplayer.actors", "examples/gameplay/plateform/assets/platformer.lua")
|
self.world = World(self, "examples.gameplay.moveplayer.actors", "examples/gameplay/moveplayer/assets/arena.lua")
|
||||||
|
|
||||||
self.world:addPlayer(self.world.obj.Player(self.world, 16, 16, 1), 1, true)
|
self.world:setPlayerNumber(2)
|
||||||
self.world:addPlayer(self.world.obj.Player(self.world, 424 - 16, 16, 2), 2, true)
|
|
||||||
|
|
||||||
self.world:loadMap()
|
self.world:loadMap()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue