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