Esempio n. 1
0
 public StandardCannon(bool roundsFriendly)
     : base()
 {
     if (roundsFriendly)
         roundColor = Color.Yellow;
     else
         roundColor = Color.DarkViolet;
     coolDown = originalCoolDown = 0.5f; ;
     firingSpeed = 300.0f;
     for (int i = 0; i < maxRounds; i++)
         rounds[i] = new Round(roundColor, roundsFriendly);
 }
Esempio n. 2
0
 public FragmentationBomb(bool friendly)
 {
     if (AeroGame.lagTest)
         texture = AeroGame.LoadTextureStream("Particle16");
     else
         texture = AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16");
     textureData = new Color[texture.Width * texture.Height];
     texture.GetData(textureData);
     if (friendly)
         color = Color.Yellow;
     else
         color = Color.DarkViolet;
     bullets = new Round[maxBullets];
     for(int i = 0; i < maxBullets; i++)
         bullets[i] = new Round(color, friendly);
     speed = 400;
     scale = 2;
     origin = new Vector2(texture.Width / 2, texture.Height / 2);
     this.friendly = friendly;
 }