From d49740d4f02256900bea7705b34f7b18d7f4af52 Mon Sep 17 00:00:00 2001 From: flamendless Date: Sun, 19 Mar 2023 22:43:25 +0800 Subject: [PATCH] FINALE --- game/secret_room.lua | 32 ++++++++++++++++---------------- media/text.png | Bin 0 -> 1772 bytes 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 media/text.png diff --git a/game/secret_room.lua b/game/secret_room.lua index a3ee905..16dcc0b 100644 --- a/game/secret_room.lua +++ b/game/secret_room.lua @@ -188,14 +188,14 @@ function SCENE.secretRoom_update(dt) move = false lightOn = false - -- for i, v in ipairs(obj) do - -- if v.tag == "hole" then - -- table.remove(obj, i) - -- break - -- end - -- end - -- local head = Items(images.st_head,images["stairRoom"],80,22,"head") - -- table.insert(obj, head) + for i, v in ipairs(obj) do + if v.tag == "hole" then + table.remove(obj, i) + break + end + end + local head = Items(images.st_head,images["stairRoom"],80,22,"head") + table.insert(obj, head) end end @@ -277,14 +277,14 @@ function SCENE.secretRoom_update(dt) lightOn = true end else - -- for i, v in ipairs(obj) do - -- if v.tag == "head" then - -- table.remove(obj, i) - -- break - -- end - -- end - -- local holes = Items(images.st_hole,images["stairRoom"], 80, 22, "hole") - -- table.insert(obj, holes) + for i, v in ipairs(obj) do + if v.tag == "head" then + table.remove(obj, i) + break + end + end + local holes = Items(images.st_hole,images["stairRoom"], 80, 22, "hole") + table.insert(obj, holes) --set previous rooms configs to true for _,v in ipairs(obj) do diff --git a/media/text.png b/media/text.png new file mode 100644 index 0000000000000000000000000000000000000000..7766e280eb506165ed407bba911294a2471dea27 GIT binary patch literal 1772 zcmeAS@N?(olHy`uVBq!ia0y~yU@Bx_U=-zG1B&!BY<>x(7>k44ofy`glL2zrmU+53 zhE&XXd*fiy9SsJCK#!OI>u2t@nx2!|(tNAxeIA=)%kCM;&0DYCGCa5Z*__W$-ZR&{ zdiS&P`ycDSzYjdGn>!C^V!i(nMh2En3x);-L3RcKl}8K=O)fGF4ih?<890Q14scZB zV^HwGqiEMLiR86g{rs1_dH3tA<@0qrYaV_1i+oG_0wik zU8F} zmjENA;96An-JicLpWiVRZgDNb)s7;xySPP9^(^H*>7i_lUzRk|GW2>%c}k#1lq9w z^K>I~Vp1rM@P?&zU@jmP9N;VN-RS54$p4wd=Pxo04D+5{f62+f@ZmdYSqIZ$3w9oh zSg!t2|E%G&b062-uibt9!^`(SazEdG`||#s+xOmIzJENg)%e59d)wIefA%RACNImP z+8eu@eNOV3xsTTxUOV@(q5iZv&z_s_j6YV2m*ayWuJB#<+oo8onk^9~J(>CL_`RC1FYN@(e%j=8%?StpvJTX{g_8I!0XZ*2q g-{+n}ssz_x_PF$GJiZZcxIuZ$)78&qol`;+00RFswEzGB literal 0 HcmV?d00001