From a722c019f3c1feeb7ea2c9c16108c93c75e329e0 Mon Sep 17 00:00:00 2001 From: lustlion Date: Fri, 18 Feb 2022 00:03:32 +0100 Subject: [PATCH] yeah table uh not sure --- .gitignore | 1 + code/debug.lua | 4 ++-- code/level.lua | 2 +- code/objects.lua | 4 ++++ 4 files changed, 8 insertions(+), 3 deletions(-) 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