improvement(levels): use a "cross" collision filter for weapons

This commit is contained in:
Kazhnuz 2019-06-16 21:35:29 +02:00
parent 5241cb8d6e
commit 0da137a3e4
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ function Bullet:setFilter()
if (other.type=="wall") then if (other.type=="wall") then
return 'touch' return 'touch'
else else
return nil return 'cross'
end end
end end
end end

View File

@ -17,9 +17,9 @@ function Weapon:setFilter()
elseif (other.type=="block") then elseif (other.type=="block") then
return "touch" return "touch"
elseif (other.type=="ennemy") then elseif (other.type=="ennemy") then
return "touch" return "cross"
else else
return nil return "cross"
end end
end end
end end