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.

ShapeZ.js 826B

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