Skip to content

Commit

Permalink
Let dangerous tiles hit immune player
Browse files Browse the repository at this point in the history
  • Loading branch information
xeelee committed Aug 10, 2021
1 parent 19fe697 commit dfcc86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.p8
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ menu={
lives:update()
end,
function(obj_data) -- on_collide_obj
if not lives:can_be_hit() then
if not lives:can_be_hit() and not obj_data.dangerous then
return
end
if obj_data.collectible then
Expand Down

0 comments on commit dfcc86d

Please sign in to comment.