コード例 #1
0
ファイル: Block.cs プロジェクト: NearHuscarl/Breakout
        public Block(Scene scene, int width, int height, Vector2 position, BlockAtrributes attrs)
            : base(width, height, position)
        {
            this.scene = scene;

            this.Color                   = attrs.Color;
            this.MaxHealth               = attrs.Health;
            this.Health                  = this.MaxHealth;
            this.favoredPowerUp          = attrs.FavoredPowerUp;
            this.secondaryfavoredPowerUp = attrs.SecondaryFavorePowerUp;
        }
コード例 #2
0
ファイル: NormalBlock.cs プロジェクト: NearHuscarl/Breakout
 public NormalBlock(Scene scene, int width, int height, Vector2 position, BlockAtrributes attrs)
     : base(scene, width, height, position, attrs)
 {
 }