123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- // @flow
-
- import BaseShape from "./BaseShape";
- import type {CustomTheme} from "../../../managers/ThemeManager";
-
- export default class ShapeI extends BaseShape {
-
- constructor(theme: CustomTheme) {
- super(theme);
- this.position.x = 3;
- }
-
- getColor(): string {
- return this.theme.colors.tetrisI;
- }
-
- getShapes() {
- return [
- [
- [0, 0, 0, 0],
- [1, 1, 1, 1],
- [0, 0, 0, 0],
- [0, 0, 0, 0],
- ],
- [
- [0, 0, 1, 0],
- [0, 0, 1, 0],
- [0, 0, 1, 0],
- [0, 0, 1, 0],
- ],
- [
- [0, 0, 0, 0],
- [0, 0, 0, 0],
- [1, 1, 1, 1],
- [0, 0, 0, 0],
- ],
- [
- [0, 1, 0, 0],
- [0, 1, 0, 0],
- [0, 1, 0, 0],
- [0, 1, 0, 0],
- ],
- ];
- }
- }
|