Application Android et IOS pour l'amicale des élèves https://play.google.com/store/apps/details?id=fr.amicaleinsat.application
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.

ShapeL.js 772B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // @flow
  2. import BaseShape from './BaseShape';
  3. import type {CustomThemeType} from '../../../managers/ThemeManager';
  4. import type {ShapeType} from './BaseShape';
  5. export default class ShapeL extends BaseShape {
  6. constructor(theme: CustomThemeType) {
  7. super(theme);
  8. this.position.x = 3;
  9. }
  10. getColor(): string {
  11. return this.theme.colors.tetrisL;
  12. }
  13. // eslint-disable-next-line class-methods-use-this
  14. getShapes(): Array<ShapeType> {
  15. return [
  16. [
  17. [0, 0, 1],
  18. [1, 1, 1],
  19. [0, 0, 0],
  20. ],
  21. [
  22. [0, 1, 0],
  23. [0, 1, 0],
  24. [0, 1, 1],
  25. ],
  26. [
  27. [0, 0, 0],
  28. [1, 1, 1],
  29. [1, 0, 0],
  30. ],
  31. [
  32. [1, 1, 0],
  33. [0, 1, 0],
  34. [0, 1, 0],
  35. ],
  36. ];
  37. }
  38. }