Exemplo n.º 1
0
        public static TetrisFigure CreateT()
        {
            var color = Colors.Purple;

            return(new TetrisFigure(
                       Ceil.Create(0, MiddleColumn + 1, color),
                       Ceil.Create(0, MiddleColumn - 1, color),
                       Ceil.Create(0, MiddleColumn, color),
                       Ceil.Create(1, MiddleColumn, color)
                       ));
        }
Exemplo n.º 2
0
        public static TetrisFigure CreateL()
        {
            var color = Colors.Orange;

            return(new TetrisFigure(
                       Ceil.Create(0, MiddleColumn - 1, color),
                       Ceil.Create(1, MiddleColumn - 1, color),
                       Ceil.Create(2, MiddleColumn - 1, color),
                       Ceil.Create(2, MiddleColumn, color)
                       ));
        }
Exemplo n.º 3
0
        public static TetrisFigure CreateSquare()
        {
            var color = Colors.Yellow;

            return(new TetrisFigure(
                       Ceil.Create(1, MiddleColumn, color),
                       Ceil.Create(1, MiddleColumn - 1, color),
                       Ceil.Create(0, MiddleColumn - 1, color),
                       Ceil.Create(0, MiddleColumn, color)
                       ));
        }
Exemplo n.º 4
0
        public static TetrisFigure CreateStraight()
        {
            var color = Colors.DarkBlue;

            return(new TetrisFigure(
                       Ceil.Create(0, 4, color),
                       Ceil.Create(1, 4, color),
                       Ceil.Create(2, 4, color),
                       Ceil.Create(3, 4, color)
                       ));
        }
Exemplo n.º 5
0
        public static TetrisFigure CreateSkew()
        {
            var color = Colors.Green;

            return(new TetrisFigure(
                       Ceil.Create(1, MiddleColumn - 2, color),
                       Ceil.Create(1, MiddleColumn - 1, color),
                       Ceil.Create(0, MiddleColumn - 1, color),
                       Ceil.Create(0, MiddleColumn, color)
                       ));
        }