Exemplo n.º 1
0
 protected override void OnCollision(Missile m, Vecteur2d collisionPoint)
 {
     Lives   = 0;
     m.Lives = 0;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="position">Base position</param>
 /// <param name="lives">Number of lives</param>
 /// <param name="image">Image to draw</param>
 /// <param name="side">Side</param>
 public SpaceShip(Vecteur2d position, int lives, Bitmap image, Side side) : base(position, lives, image, side)
 {
     Speed   = 1;
     Missile = null;
 }
Exemplo n.º 3
0
 protected override void OnCollision(Missile m, Vecteur2d collisionPoint)
 {
     Image.SetPixel((int)collisionPoint.X, (int)collisionPoint.Y, Color.FromArgb(0, 255, 255, 255));
     m.Lives--;
 }