Refactored scripts, added a smoother for Debug Islan
I've added a simple edge-smoothing function to debug island's generator. It doesn't handle all edge cases (pun intended), but the proof of concept is sound. I just wish I could release this... I've also added exception checks to region.cpp
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
print("Lua script check")
|
||||
|
||||
mapSystem = require "map_system"
|
||||
mapMaker = require "map_maker"
|
||||
mapSaver = require "map_saver"
|
||||
roomSystem = require "room_system"
|
||||
mapMaker = require("map_maker")
|
||||
mapSaver = require("map_saver")
|
||||
roomSystem = require("room_system")
|
||||
|
||||
local function dumpTable(t)
|
||||
print(t)
|
||||
@@ -14,6 +13,6 @@ end
|
||||
|
||||
--NOTE: room 0 is the first that the client asks for, therefore it must exist
|
||||
local overworld, uid = roomSystem.RoomManager.CreateRoom("overworld", "overworld.bmp")
|
||||
roomSystem.Room.Initialize(overworld, mapSaver.Load, mapSaver.Save, mapMaker.debugIsland, mapSaver.Save)
|
||||
roomSystem.Room.Initialize(overworld, mapSaver.Load, mapSaver.Save, mapMaker.DebugIsland, mapSaver.Save)
|
||||
|
||||
print("Finished the lua script")
|
||||
|
||||
Reference in New Issue
Block a user