예제 #1
0
 public Asteroid(Point pos, Point dir, Size size) : base(pos, dir, size)
 {
     image  = Image.FromFile("Images/Asteroid1.png");
     image  = RotateUtils.RandomRotateImage(image);
     Damage = 5 * (int)Math.Floor(Math.Sqrt(Math.Pow(Dir.X, 2) + Math.Pow(Dir.Y, 2)));
 }
예제 #2
0
 public Asteroid() : base()
 {
     image = Image.FromFile("Images/Asteroid1.png");
     image = RotateUtils.RandomRotateImage(image);
 }