fix(test_scene): use the world dimension to add the floor
This commit is contained in:
parent
cc6056cce8
commit
4bb7c3e94f
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ function MovePlayer:new(playerNumber, cameraMode)
|
||||||
self.world.cameras:setMode(cameraMode)
|
self.world.cameras:setMode(cameraMode)
|
||||||
|
|
||||||
self.world:loadMap()
|
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
|
end
|
||||||
|
|
||||||
return MovePlayer
|
return MovePlayer
|
||||||
|
|
Loading…
Reference in a new issue