summaryrefslogtreecommitdiff
path: root/objects
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-16 10:17:45 +0800
committerEltrac <hi@guhub.cn>2025-02-16 10:17:45 +0800
commit0787f42e906a34a1f0ebb1ddcef3a239a8b2b636 (patch)
treec468e4fbaac7b1ecf43f880be714b17670c4b2d8 /objects
parentae1e7c52525d364ba0ef8fe4ed73bdf45c3f2bd1 (diff)
refactor: project structure
Diffstat (limited to 'objects')
-rw-r--r--objects/room.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/objects/room.lua b/objects/room.lua
new file mode 100644
index 0000000..2825a3f
--- /dev/null
+++ b/objects/room.lua
@@ -0,0 +1,12 @@
+Room = {}
+
+function Room:new()
+ local room = {
+ -- 1=left, 2=right, 3=top, 4=bottom
+ doors = { false, false, true, false },
+ enemies = {},
+ isCleared = false,
+ type = "combat"
+ }
+ return room
+end