summaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-04 10:41:31 +0800
committerEltrac <hi@guhub.cn>2025-03-04 10:41:31 +0800
commitd3e5889fa9d93f612a2fd5817d4849e96221121a (patch)
tree8e170057231c3469b425865412df506dabeb0724 /config.lua
parentfef6d5f493827da9e67d75808c0604bd3504e381 (diff)
refactor: move room connection logic to room object
Diffstat (limited to 'config.lua')
-rw-r--r--config.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.lua b/config.lua
index 64a640b..643bdf5 100644
--- a/config.lua
+++ b/config.lua
@@ -30,6 +30,7 @@ config = {
-- game default states
function initGame()
+ local intialMap = map.generate(7)
G = {
player = Player:new(),
shots = {},
@@ -38,7 +39,9 @@ function initGame()
time = 0,
lastSummonTime = 0,
- currentRoom = map.generate(7), -- change amount of rooms here
+
+ allRooms = intialMap,
+ currentRoom = intialMap[1], -- change amount of rooms here
roomCleared = 0,
}
end