Skip to content

Commit

Permalink
FINALE
Browse files Browse the repository at this point in the history
  • Loading branch information
flamendless committed Mar 19, 2023
1 parent f488c57 commit d49740d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions game/secret_room.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
Binary file added media/text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d49740d

Please sign in to comment.