forked from LaVieon/GrasshopperTetris
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTBlock.cs
More file actions
22 lines (19 loc) · 793 Bytes
/
Copy pathTBlock.cs
File metadata and controls
22 lines (19 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tetris
{
public class TBlock : Block
{
public override int Id => 6;
protected override Position StartOffset => new Position(0, 3);
protected override Position[][] Tiles => new Position[][] {
new Position[] {new Position(0,1), new Position(1,0), new Position(1,1), new Position(1,2)},
new Position[] {new Position(0,1), new Position(1,1), new Position(1,2), new Position(2,1)},
new Position[] {new Position(1,0), new Position(1,1), new Position(1,2), new Position(2,1)},
new Position[] {new Position(0,1), new Position(1,0), new Position(1,1), new Position(2,1)}
};
}
}