IsHarmful -> IsHazard
This commit is contained in:
parent
299ab41ec2
commit
fa4784fc49
@ -94,7 +94,7 @@ namespace SemiColinGames {
|
||||
if (box.Intersect(player) != null) {
|
||||
Debug.AddRect(box, Color.Cyan);
|
||||
reject = true;
|
||||
if (box.Tile?.IsHarmful ?? false) {
|
||||
if (box.Tile?.IsHazard ?? false) {
|
||||
Debug.AddRect(box, Color.Red);
|
||||
harmedByCollision = true;
|
||||
}
|
||||
@ -112,7 +112,7 @@ namespace SemiColinGames {
|
||||
if (box.Intersect(player) != null) {
|
||||
Debug.AddRect(box, Color.Cyan);
|
||||
reject = true;
|
||||
if (box.Tile?.IsHarmful ?? false) {
|
||||
if (box.Tile?.IsHazard ?? false) {
|
||||
Debug.AddRect(box, Color.Red);
|
||||
harmedByCollision = true;
|
||||
}
|
||||
@ -130,7 +130,7 @@ namespace SemiColinGames {
|
||||
if (groundIntersect.Intersect(box) != null) {
|
||||
Debug.AddRect(box, Color.Cyan);
|
||||
standingOnGround = true;
|
||||
if (box.Tile?.IsHarmful ?? false) {
|
||||
if (box.Tile?.IsHazard ?? false) {
|
||||
Debug.AddRect(box, Color.Red);
|
||||
harmedByCollision = true;
|
||||
}
|
||||
|
@ -15,11 +15,11 @@ namespace SemiColinGames {
|
||||
Position = position;
|
||||
this.texture = texture;
|
||||
this.textureSource = textureSource;
|
||||
IsHarmful = isHazard;
|
||||
IsHazard = isHazard;
|
||||
}
|
||||
|
||||
public Rectangle Position { get; private set; }
|
||||
public bool IsHarmful = false;
|
||||
public bool IsHazard = false;
|
||||
|
||||
public void Draw(SpriteBatch spriteBatch) {
|
||||
spriteBatch.Draw(
|
||||
|
Loading…
Reference in New Issue
Block a user