From 4bb7c3e94f4b7ff3e60ed2dff724405890febe48 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 27 Jul 2019 11:35:20 +0200 Subject: [PATCH] fix(test_scene): use the world dimension to add the floor --- sonic-radiance.love/scenes/test_scene/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sonic-radiance.love/scenes/test_scene/init.lua b/sonic-radiance.love/scenes/test_scene/init.lua index 3ca7f8f..df6c555 100644 --- a/sonic-radiance.love/scenes/test_scene/init.lua +++ b/sonic-radiance.love/scenes/test_scene/init.lua @@ -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