fix(test_scene): use the world dimension to add the floor

This commit is contained in:
Kazhnuz 2019-07-27 11:35:20 +02:00
parent cc6056cce8
commit 4bb7c3e94f

View file

@ -39,7 +39,9 @@ function MovePlayer:new(playerNumber, cameraMode)
self.world.cameras:setMode(cameraMode)
self.world:loadMap()
self.world.obj.collisions["wall"](self.world, 0,0,-16,1000, 1000, 16)
local w, h = self.world:getDimensions()
self.world.obj.collisions["wall"](self.world, 0, 0, -16, w, h, 16)
end
return MovePlayer