Esempio n. 1
0
 private static bool KillIt(GameObject g)
 {
     if (g.KillMe)
     {
         if (g.SpriteId.Equals(SpriteID.FIREBALL))
         {
             for (int i = 0; i < random.Next(100, 1000); i++)
             {
                 Particle magical = new Particle(SpriteID.P_FIRE, g.Pos, 0.1, random.Next(3,6), random.NextDouble()*7, random.Next(250,500), true);
                 magical.Initialize();
                 GameObjectHandler.Add(magical);
             }
         }
         return true;
     }
     else if (g.SpriteId.Equals(SpriteID.FIREBALL) && g.Pos.Y > 768)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Esempio n. 2
0
 public static void Add(GameObject gameObject)
 {
     gameObjects.Add(gameObject);
 }