Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public TankMissile(Vector2 Position, Color[] Mask, AnimatedSprite Clone)
     : base(Position, Mask, 0, Clone)
 {
 }
Exemplo n.º 3
0
 public FlakBullet(Vector2 Position, Color[] Mask, AnimatedSprite Clone)
     : base(Position, Mask, 0, Clone)
 {
 }
Exemplo n.º 4
0
 public TankGuidedMissile(Vector2 Position, float MissileSpeed, Color[] Mask, AnimatedSprite Clone)
     : base(Position, Mask, 0, Clone)
 {
     LockOnTime        = 30;
     this.MissileSpeed = MissileSpeed;
 }
Exemplo n.º 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;
 }