yeah table uh not sure

This commit is contained in:
lustlion 2022-02-18 00:03:32 +01:00
parent 8e9078e929
commit a722c019f3
4 changed files with 8 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
logs*
export*
demo*

View File

@ -33,8 +33,8 @@ function DebugUI()
end
function DebugColisions()
DrawColisionTable()
-- LoadedObjects.DrawCollisions()
-- DrawColisionTable()
LoadedObjects.DrawCollisions()
end
function DebugEntities()

View File

@ -638,7 +638,7 @@ function TileCreateObjects()
end
end
end
CreateCollisionTable()
--CreateCollisionTable()
end
function AnimateTiles()

View File

@ -9,6 +9,10 @@ LoadedObjects = {
-- level functions
function LoadedObjects.DrawCollisions()
for _, ladder in pairs(LoadedObjects.Collisions) do
ladder:Draw(1)
end
for _, platform in pairs(LoadedObjects.Platforms) do
if platform.disable == true then platform:Draw(2) end
if platform.disable == false then platform:Draw(1) end