コード例 #1
0
 public DissolvingRowEntity(DissolvingBoardRowRenderer dissolvingBoardRowRenderer, BoardRow boardRow)
 {
     Alive     = true;
     Transform = new Transform();
     _dissolvingBoardRowRenderer = dissolvingBoardRowRenderer;
     _boardRow         = boardRow;
     _disolveAnimation = new Animation(TimeSpan.FromMilliseconds(300));
     _disolveAnimation.Start();
 }
コード例 #2
0
ファイル: PlayingScene.cs プロジェクト: umurgdk/Tetris
        public PlayingScene()
        {
            var blockRenderer = new BlockRenderer(new Vector2(30));

            _boardRenderer = new BoardRenderer(blockRenderer);
            _pieceRenderer = new PieceRenderer(blockRenderer);
            _dissolvingBoardRowRenderer = new DissolvingBoardRowRenderer(_boardRenderer, blockRenderer);

            _fallInterval            = new Interval(TimeSpan.FromMilliseconds(300), FallPiece);
            _createFallingPieceTimer = new Timer(TimeSpan.FromMilliseconds(300), CreateFallingPiece);
        }