forked from vergnet/application-amicale
43 lines
800 B
JavaScript
43 lines
800 B
JavaScript
// @flow
|
|
|
|
import BaseShape from "./BaseShape";
|
|
|
|
export default class ShapeT extends BaseShape {
|
|
|
|
#colors: Object;
|
|
|
|
constructor(colors: Object) {
|
|
super();
|
|
this.position.x = 3;
|
|
this.#colors = colors;
|
|
}
|
|
|
|
getColor(): string {
|
|
return this.#colors.tetrisT;
|
|
}
|
|
|
|
getShapes() {
|
|
return [
|
|
[
|
|
[0, 1, 0],
|
|
[1, 1, 1],
|
|
[0, 0, 0],
|
|
],
|
|
[
|
|
[0, 1, 0],
|
|
[0, 1, 1],
|
|
[0, 1, 0],
|
|
],
|
|
[
|
|
[0, 0, 0],
|
|
[1, 1, 1],
|
|
[0, 1, 0],
|
|
],
|
|
[
|
|
[0, 1, 0],
|
|
[1, 1, 0],
|
|
[0, 1, 0],
|
|
],
|
|
];
|
|
}
|
|
}
|