vanish platform

new training levels "stack", "mine", "grenades", "harpoon"

new map element vanish goes away after you touch it, returns in 3 seconds
bug fixes
This commit is contained in:
landgreen
2021-12-28 21:03:06 -08:00
parent 44ecb2437a
commit 7d1b212c8a
8 changed files with 1579 additions and 1172 deletions

View File

@@ -5453,7 +5453,7 @@ const b = {
} else {
const bodyCollisions = Matter.Query.collides(this, body)
if (bodyCollisions.length) {
if (!bodyCollisions[0].bodyA.isComposite) {
if (!bodyCollisions[0].bodyA.isNonStick) {
onCollide(this)
this.stuckTo = bodyCollisions[0].bodyA
//find the relative position for when the mob is at angle zero by undoing the mobs rotation