examples/moveplayer: use the new map

This commit is contained in:
Kazhnuz 2019-05-01 17:22:04 +02:00
parent c41930fca4
commit c1cefa9f92

View file

@ -29,10 +29,9 @@ local World = require "gamecore.modules.world.world2D"
function MovePlayer:new()
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:addPlayer(self.world.obj.Player(self.world, 424 - 16, 16, 2), 2, true)
self.world:setPlayerNumber(2)
self.world:loadMap()
end