コード例 #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;
 }
コード例 #2
0
ファイル: ActivatedBonus.cs プロジェクト: USKamicadze/Match3
 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;
 }
コード例 #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;
        }
コード例 #4
0
 public ElementAnimationWithTexture(Game game, Element el, AnimatedTexture texture) : base(game, 1, el)
 {
     this.texture = texture;
 }
コード例 #5
0
ファイル: ActivatedBonus.cs プロジェクト: USKamicadze/Match3
 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;
 }
コード例 #6
0
ファイル: Animation.cs プロジェクト: USKamicadze/Match3
 public ElementAnimationWithTexture(Game game, Element el, AnimatedTexture texture)
     : base(game, 1, el)
 {
     this.texture = texture;
 }