Пример #1
0
 public bool PixelIntersect(AnimatedSprite Other)
 {
     return(CollisionBox.Intersects(Other.CollisionBox) &&
            IntersectPixels(TransformationMatrix, SpriteWidth, SpriteHeight, Mask, Scale.X < 0, Other.TransformationMatrix, Other.SpriteWidth, Other.SpriteHeight, Other.Mask, Other.Scale.X < 0));
 }
Пример #2
0
 public TankMissile(Vector2 Position, Color[] Mask, AnimatedSprite Clone)
     : base(Position, Mask, 0, Clone)
 {
 }
Пример #3
0
 public FlakBullet(Vector2 Position, Color[] Mask, AnimatedSprite Clone)
     : base(Position, Mask, 0, Clone)
 {
 }
Пример #4
0
 public TankGuidedMissile(Vector2 Position, float MissileSpeed, Color[] Mask, AnimatedSprite Clone)
     : base(Position, Mask, 0, Clone)
 {
     LockOnTime        = 30;
     this.MissileSpeed = MissileSpeed;
 }
Пример #5
0
 protected Enemy(int Resist, AnimatedSprite Clone, Color[] Mask)
     : base(Clone.ActiveSprite, Mask, Clone.AnimationFrameCount, Clone.Origin, Clone.AnimationSpeed)
 {
     this.Resist = Resist;
     IsAlive     = true;
 }