Beispiel #1
0
 public TetrominoI(NewTileDelegate del,
                   float panelWidth, float panelHeight,
                   float tileWidth, float tileHeight)
     : base(del, panelWidth, panelHeight, tileWidth, tileHeight)
 {
     X = 3;
     Y = -1;
 }
Beispiel #2
0
        public Tetromino(NewTileDelegate del,
                         float panelWidth, float panelHeight,
                         float tileWidth, float tileHeight)
        {
            PanelWidth  = panelWidth;
            PanelHeight = panelHeight;
            TileWidth   = tileWidth;
            TileHeight  = tileHeight;

            Rotation = TetrominoRotation.Initial;
            Tiles    = new GameObject[4];
            Tiles[0] = del(Color);
            Tiles[1] = del(Color);
            Tiles[2] = del(Color);
            Tiles[3] = del(Color);
        }