@@ -188,14 +188,14 @@ function SCENE.secretRoom_update(dt)
188
188
move = false
189
189
lightOn = false
190
190
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 )
199
199
end
200
200
end
201
201
@@ -277,14 +277,14 @@ function SCENE.secretRoom_update(dt)
277
277
lightOn = true
278
278
end
279
279
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 )
288
288
289
289
-- set previous rooms configs to true
290
290
for _ ,v in ipairs (obj ) do
0 commit comments