From 0787f42e906a34a1f0ebb1ddcef3a239a8b2b636 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sun, 16 Feb 2025 10:17:45 +0800 Subject: refactor: project structure --- objects/room.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 objects/room.lua (limited to 'objects/room.lua') 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 -- cgit v1.2.3