public BombBonus(Game game, Element el) : base(game) { this.explosionTexture = new ExplosionTexture(GraphicsDevice, Config.tile.Width * 3, Config.tile.Height * 3); this.el = el; this.scale = 5; }
public LineBonus(Game game, Vector2 start, Vector2 end, Vector2 dir, float shift) : base(game) { this.texture = new GlowingBallTexture(game.GraphicsDevice, 16, 16); this.shift = shift; this.position = start; this.end = end + dir * Config.tile.Size.ToVector2() / 2; this.start = start; Vector2 d = (this.start - this.end) / shift; this.duration = Math.Abs(d.X - d.Y); this.position = start; }
public ElementAnimationWithTexture(Game game, Element el, AnimatedTexture texture) : base(game, 1, el) { this.texture = texture; }