diff --git a/.gitignore b/.gitignore index 44e52e9..6c8d5f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ logs* export* +demo* \ No newline at end of file diff --git a/code/debug.lua b/code/debug.lua index 37c7ec0..d8b8bc9 100644 --- a/code/debug.lua +++ b/code/debug.lua @@ -33,8 +33,8 @@ function DebugUI() end function DebugColisions() - DrawColisionTable() - -- LoadedObjects.DrawCollisions() + -- DrawColisionTable() + LoadedObjects.DrawCollisions() end function DebugEntities() diff --git a/code/level.lua b/code/level.lua index ee137ff..03bf0fa 100644 --- a/code/level.lua +++ b/code/level.lua @@ -638,7 +638,7 @@ function TileCreateObjects() end end end - CreateCollisionTable() + --CreateCollisionTable() end function AnimateTiles() diff --git a/code/objects.lua b/code/objects.lua index e0135d7..9ece2f7 100644 --- a/code/objects.lua +++ b/code/objects.lua @@ -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