Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
        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;
        }
Example #4
0
 public ElementAnimationWithTexture(Game game, Element el, AnimatedTexture texture) : base(game, 1, el)
 {
     this.texture = texture;
 }
Example #5
0
 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;
 }
Example #6
0
 public ElementAnimationWithTexture(Game game, Element el, AnimatedTexture texture)
     : base(game, 1, el)
 {
     this.texture = texture;
 }