summaryrefslogtreecommitdiff
path: root/data/roomData.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-20 10:41:07 +0800
committerEltrac <hi@guhub.cn>2025-02-20 10:41:07 +0800
commitd5c6e5f42f24f479aea85841ddc54d1b35060da2 (patch)
treed739cf2309cb831d0f1f07fb66074441f8f69fbd /data/roomData.lua
parent3522cba95a69497f27f897d253f045a7e7b8ec75 (diff)
refactor: cancel room parameter when creating new enemy
Diffstat (limited to 'data/roomData.lua')
-rw-r--r--data/roomData.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/data/roomData.lua b/data/roomData.lua
new file mode 100644
index 0000000..55b43b2
--- /dev/null
+++ b/data/roomData.lua
@@ -0,0 +1,20 @@
+roomType = {
+ INITIAL = 1,
+ COMBAT = 2,
+ LOOT = 3
+}
+
+roomData = {
+ initialRoom = {
+ type = roomType.INITIAL,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = {},
+ },
+ combatRoom1 = {
+ type = roomType.COMBAT,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = "random"
+ }
+}