Skip to content

Commit d49740d

Browse files
committed
FINALE
1 parent f488c57 commit d49740d

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

game/secret_room.lua

+16-16
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ function SCENE.secretRoom_update(dt)
188188
move = false
189189
lightOn = false
190190

191-
-- for i, v in ipairs(obj) do
192-
-- if v.tag == "hole" then
193-
-- table.remove(obj, i)
194-
-- break
195-
-- end
196-
-- end
197-
-- local head = Items(images.st_head,images["stairRoom"],80,22,"head")
198-
-- table.insert(obj, head)
191+
for i, v in ipairs(obj) do
192+
if v.tag == "hole" then
193+
table.remove(obj, i)
194+
break
195+
end
196+
end
197+
local head = Items(images.st_head,images["stairRoom"],80,22,"head")
198+
table.insert(obj, head)
199199
end
200200
end
201201

@@ -277,14 +277,14 @@ function SCENE.secretRoom_update(dt)
277277
lightOn = true
278278
end
279279
else
280-
-- for i, v in ipairs(obj) do
281-
-- if v.tag == "head" then
282-
-- table.remove(obj, i)
283-
-- break
284-
-- end
285-
-- end
286-
-- local holes = Items(images.st_hole,images["stairRoom"], 80, 22, "hole")
287-
-- table.insert(obj, holes)
280+
for i, v in ipairs(obj) do
281+
if v.tag == "head" then
282+
table.remove(obj, i)
283+
break
284+
end
285+
end
286+
local holes = Items(images.st_hole,images["stairRoom"], 80, 22, "hole")
287+
table.insert(obj, holes)
288288

289289
--set previous rooms configs to true
290290
for _,v in ipairs(obj) do

media/text.png

1.73 KB
Loading

0 commit comments

Comments
 (0)