summaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-18 20:24:41 +0800
committerEltrac <hi@guhub.cn>2025-02-18 20:24:41 +0800
commit423cfe133ae8a8f9d7a87b2c4d151af3fd7aa7fc (patch)
tree10c4d8eedcc65155b0f234d6d74be6663bcf5bb0 /config.lua
parent875cc3e70c11e589c548775c3208659f50daf7df (diff)
feat: entering new rooms
- door connects two rooms - detects if player enters a door, if so, then switch room and update player location
Diffstat (limited to 'config.lua')
-rw-r--r--config.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.lua b/config.lua
index 38b1b7d..7ae9b39 100644
--- a/config.lua
+++ b/config.lua
@@ -29,7 +29,7 @@ function initGame()
time = 0,
lastSummonTime = 0,
- currentRoom = Room:new()
+ currentRoom = Room.generate()
}
end