1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // @flow
-
- import BaseShape from "./BaseShape";
- import type {CustomTheme} from "../../../managers/ThemeManager";
-
- export default class ShapeL extends BaseShape {
-
- constructor(theme: CustomTheme) {
- super(theme);
- this.position.x = 3;
- }
-
- getColor(): string {
- return this.theme.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],
- ],
- ];
- }
- }
|