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* logs*
export* export*
demo*

View File

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

View File

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

View File

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