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.

ShapeI.js 982B

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