2018-02-27 19:59:51 +01:00
|
|
|
local room_builder = require "maproombuilder"
|
|
|
|
local monster_gen = require "monstergen"
|
2018-08-10 22:31:06 +02:00
|
|
|
local trap_gen = require "trapgen"
|
|
|
|
local chest_gen = require "chestgen"
|
2018-02-09 13:27:25 +01:00
|
|
|
|
|
|
|
map = create_map(CURRENT_LEVEL) -- 'map' needs to be global
|
|
|
|
|
|
|
|
room_builder.load_textures(map)
|
|
|
|
|
|
|
|
set_current_room(map, 0, 0)
|
2018-07-31 14:25:29 +02:00
|
|
|
local room = room_builder.create_empty_room()
|
2019-03-07 11:09:14 +01:00
|
|
|
room_builder.build_room(room, 0, 0)
|
2018-07-31 14:25:29 +02:00
|
|
|
room_builder.add_full_lighting(room)
|
|
|
|
monster_gen.add_monsters_to_room(room, 0, 0)
|
2018-08-10 22:31:06 +02:00
|
|
|
trap_gen.add_traps_to_room(room, 0, 0)
|
|
|
|
chest_gen.add_chests_to_room(room, 0, 0)
|
2018-07-31 14:25:29 +02:00
|
|
|
room_builder.load_room(map, room)
|
|
|
|
monster_gen.load_monsters(map, room.monsters)
|
2018-08-10 22:31:06 +02:00
|
|
|
trap_gen.load_traps(map, room.traps)
|
|
|
|
chest_gen.load_chests(map, room.chests)
|