IDK what the fuck is going on, too tired to think

OK, so I think I was working on the parameters for CreateRoom() in lua,
but then shit just got ot of control. IDK, I'm probably going about this
all wrong anyway. I just want to finish this stage, and reach the high
water mark again.
This commit is contained in:
Kayne Ruse
2014-11-24 05:43:38 +11:00
parent 5eeda8235d
commit bd3838a04e
9 changed files with 130 additions and 101 deletions
+12 -15
View File
@@ -11,23 +11,20 @@ local function dumpTable(t)
end
end
dumpTable(mapMaker)
dumpTable(mapSaver)
dumpTable(roomSystem)
dumpTable(roomSystem.Room)
dumpTable(roomSystem.RoomManager)
--create the overworld, set it's generator, loader & saver
local overworld = roomSystem.RoomManager.CreateRoom("overworld", "overworld.bmp")
roomSystem.Room.SetOnLoad(overworld, 1123)
roomSystem.Room.SetOnUnload(overworld, 458)
--[[
local t = {
"overworld.bmp", --tileset name
mapSaver.load, --load function
mapSaver.save, --save function
mapMaker.debugIsland, --create function
mapSaver.save --unload function
}]]
if roomSystem.Room.GetOnLoad(overworld) == 1123 then
print("onload retreival works")
end
dumpTable(roomSystem)
dumpTable(roomSystem.RoomManager)
dumpTable(roomSystem.Room)
if roomSystem.Room.GetOnUnload(overworld) == 458 then
print("onunload retreival works")
end
local overworld = roomSystem.RoomManager.CreateRoom("overworld")
print("Finished the lua script")