From c1cefa9f928cd6cc5f051b76f415b468d112507c Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 1 May 2019 17:22:04 +0200 Subject: [PATCH] examples/moveplayer: use the new map --- examples/gameplay/moveplayer/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/gameplay/moveplayer/init.lua b/examples/gameplay/moveplayer/init.lua index de53582..0c050b9 100644 --- a/examples/gameplay/moveplayer/init.lua +++ b/examples/gameplay/moveplayer/init.lua @@ -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