Esempio n. 1
0
 public Fireball(Texture2D[] textures, Vector2 position, Vector2 direction, FireballConfig config = null)
     : this(position, direction, config)
 {
     Random = new Random((int) (textures.GetHashCode() + position.GetHashCode() + direction.GetHashCode() + DateTime.Now.Ticks));
     _one = new Emitter(textures);
     _two = new Emitter(textures);
     _three = new Emitter(textures);
     _smokeOne = new Emitter(textures);
     _smokeTwo = new Emitter(textures);
 }
Esempio n. 2
0
 public Explosion(Texture2D[] textures, Texture2D[] debrisTextures, Vector2 position, Vector2 direction, FireballConfig config = null)
     : base(textures, position, direction, config ?? new ExplosionConfig())
 {
     _debris = new Emitter(10f, debrisTextures);
     _needsDebris = true;
 }
Esempio n. 3
0
 protected Fireball(Vector2 position, Vector2 direction, FireballConfig config)
 {
     Position = position;
     Direction = direction;
     Config = config ?? new FireballConfig();
 }