Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ShapeO.js 694B

12345678910111213141516171819202122232425262728293031323334353637
  1. // @flow
  2. import BaseShape from "./BaseShape";
  3. import type {CustomTheme} from "../../../managers/ThemeManager";
  4. export default class ShapeO extends BaseShape {
  5. constructor(theme: CustomTheme) {
  6. super(theme);
  7. this.position.x = 4;
  8. }
  9. getColor(): string {
  10. return this.theme.colors.tetrisO;
  11. }
  12. getShapes() {
  13. return [
  14. [
  15. [1, 1],
  16. [1, 1],
  17. ],
  18. [
  19. [1, 1],
  20. [1, 1],
  21. ],
  22. [
  23. [1, 1],
  24. [1, 1],
  25. ],
  26. [
  27. [1, 1],
  28. [1, 1],
  29. ],
  30. ];
  31. }
  32. }