Level list now pulled from "levels", changed log stuff.

This commit is contained in:
bizcochito
2022-02-08 11:30:59 +01:00
parent 2f19554279
commit cbcf90de2d
3 changed files with 24 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
function love.load()
logging = true
if logging then print("love: "..collectgarbage("count").." kB") end
loveMemUsage = collectgarbage("count")
loveInitLog = "love: "..loveMemUsage.." kB, time: "..os.clock().." seconds"
arrow = 0
menu_type = "no"
@@ -26,6 +27,8 @@ function love.load()
}
require "data/scripts"
logPrint(loveInitLog)
loveInitLog = nil
Canvas = {
Darkness = CreateDarkness()
}
@@ -36,9 +39,10 @@ function love.load()
Camera.width = game.width
Camera.height = game.height
levelList = {"level1","2","3","ewae","tileset"}
levelList = scandir("./Mothback/data/levels")
levelNum = 1
currLevel = levelList[levelNum]
logPrint("currLevel: "..currLevel)
LoadedEntities = {}
LoadedParticles = {}
LevelLoadTiles()