forked from LaVieon/GrasshopperTetris
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIBlock.cs
More file actions
17 lines (16 loc) · 745 Bytes
/
Copy pathIBlock.cs
File metadata and controls
17 lines (16 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace Tetris
{
public class IBlock : Block
{
private readonly Position[][] tiles = new Position[][]
{
new Position[] { new Position(1,0), new Position(1,1), new Position(1,2), new Position(1,3) },
new Position[] { new Position(0,2), new Position(1,2), new Position(2,2), new Position(3,2) },
new Position[] { new Position(2,0), new Position(2,1), new Position(2,2), new Position(2,3) },
new Position[] { new Position(0,1), new Position(1,1), new Position(2,1), new Position(3,1) }
};
public override int Id => 1;
protected override Position StartOffset => new Position(-1, 3);
protected override Position[][] Tiles => tiles;
}
}