no longer needed
This commit is contained in:
parent
db3559b8c6
commit
826ef98f19
@ -8,6 +8,8 @@ function LoadMap(lvl)
|
|||||||
if GameMap.layers["Walls"] then
|
if GameMap.layers["Walls"] then
|
||||||
for _, obj in ipairs(GameMap.layers["Walls"].objects) do
|
for _, obj in ipairs(GameMap.layers["Walls"].objects) do
|
||||||
local wall = World:newRectangleCollider(obj.x, obj.y, obj.width, obj.height)
|
local wall = World:newRectangleCollider(obj.x, obj.y, obj.width, obj.height)
|
||||||
|
-- local wall =
|
||||||
|
-- World:newRectangleCollider(obj.x * _G.X_SCALE, obj.y * _G.Y_SCALE, obj.width * _G.X_SCALE, obj.height * _G.Y_SCALE)
|
||||||
wall:setType("static")
|
wall:setType("static")
|
||||||
table.insert(Walls, wall)
|
table.insert(Walls, wall)
|
||||||
Walls[#Walls]:setCollisionClass("Wall")
|
Walls[#Walls]:setCollisionClass("Wall")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user