|
@ -94,7 +94,7 @@ namespace SemiColinGames { |
|
|
if (box.Intersect(player) != null) { |
|
|
if (box.Intersect(player) != null) { |
|
|
Debug.AddRect(box, Color.Cyan); |
|
|
Debug.AddRect(box, Color.Cyan); |
|
|
reject = true; |
|
|
reject = true; |
|
|
if (box.Tile?.IsHarmful ?? false) { |
|
|
|
|
|
|
|
|
if (box.Tile?.IsHazard ?? false) { |
|
|
Debug.AddRect(box, Color.Red); |
|
|
Debug.AddRect(box, Color.Red); |
|
|
harmedByCollision = true; |
|
|
harmedByCollision = true; |
|
|
} |
|
|
} |
|
@ -112,7 +112,7 @@ namespace SemiColinGames { |
|
|
if (box.Intersect(player) != null) { |
|
|
if (box.Intersect(player) != null) { |
|
|
Debug.AddRect(box, Color.Cyan); |
|
|
Debug.AddRect(box, Color.Cyan); |
|
|
reject = true; |
|
|
reject = true; |
|
|
if (box.Tile?.IsHarmful ?? false) { |
|
|
|
|
|
|
|
|
if (box.Tile?.IsHazard ?? false) { |
|
|
Debug.AddRect(box, Color.Red); |
|
|
Debug.AddRect(box, Color.Red); |
|
|
harmedByCollision = true; |
|
|
harmedByCollision = true; |
|
|
} |
|
|
} |
|
@ -130,7 +130,7 @@ namespace SemiColinGames { |
|
|
if (groundIntersect.Intersect(box) != null) { |
|
|
if (groundIntersect.Intersect(box) != null) { |
|
|
Debug.AddRect(box, Color.Cyan); |
|
|
Debug.AddRect(box, Color.Cyan); |
|
|
standingOnGround = true; |
|
|
standingOnGround = true; |
|
|
if (box.Tile?.IsHarmful ?? false) { |
|
|
|
|
|
|
|
|
if (box.Tile?.IsHazard ?? false) { |
|
|
Debug.AddRect(box, Color.Red); |
|
|
Debug.AddRect(box, Color.Red); |
|
|
harmedByCollision = true; |
|
|
harmedByCollision = true; |
|
|
} |
|
|
} |
|
|