//Properties //Constructor public ScorpionWalkLeft(Scorpion scorpion) : base(scorpion) { this.scorpion = scorpion; this.currentFrame = 0; this.angle = 2f; }
public static Boolean CdMovingBlockScorpionGoingRight(Scorpion scorpion) { foreach (MovingBlock block in level.MovingBlocks) { if (scorpion.CollisionRect.Intersects(block.ColRectScorpion)) { if (scorpion.CollisionRect.Right < block.ColRectScorpion.Right) { level.MovingBlockIndex = level.MovingBlocks.IndexOf(block); return true; } } } return false; }