improvement(levels): use a "cross" collision filter for weapons
This commit is contained in:
parent
5241cb8d6e
commit
0da137a3e4
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue