12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- // @flow
-
- import BaseShape from "./BaseShape";
-
- export default class ShapeL extends BaseShape {
-
- #colors: Object;
-
- constructor(colors: Object) {
- super();
- this.position.x = 3;
- this.#colors = colors;
- }
-
- getColor(): string {
- return this.#colors.tetrisL;
- }
-
- getShapes() {
- return [
- [
- [0, 0, 1],
- [1, 1, 1],
- [0, 0, 0],
- ],
- [
- [0, 1, 0],
- [0, 1, 0],
- [0, 1, 1],
- ],
- [
- [0, 0, 0],
- [1, 1, 1],
- [1, 0, 0],
- ],
- [
- [1, 1, 0],
- [0, 1, 0],
- [0, 1, 0],
- ],
- ];
- }
- }
|