|
@@ -22,11 +22,6 @@ export default class Tetromino {
|
22
|
22
|
[0, 1, 0],
|
23
|
23
|
[1, 1, 1],
|
24
|
24
|
],
|
25
|
|
- 20: [
|
26
|
|
- [1, 0],
|
27
|
|
- [1, 1],
|
28
|
|
- [1, 0],
|
29
|
|
- ],
|
30
|
25
|
3: [
|
31
|
26
|
[0, 1, 1],
|
32
|
27
|
[1, 1, 0],
|
|
@@ -58,6 +53,10 @@ export default class Tetromino {
|
58
|
53
|
this.currentShape = Tetromino.shapes[type];
|
59
|
54
|
this.currentRotation = 0;
|
60
|
55
|
this.position = {x: 0, y: 0};
|
|
56
|
+ if (this.currentType === Tetromino.types.O)
|
|
57
|
+ this.position.x = 4;
|
|
58
|
+ else
|
|
59
|
+ this.position.x = 3;
|
61
|
60
|
this.colors = colors;
|
62
|
61
|
Tetromino.colors = {
|
63
|
62
|
0: colors.tetrisI,
|