Advertisement
Elnidas

Untitled

Dec 3rd, 2020
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. //Escenario yiieePUm Laboratorio
  2.  
  3. //Jugador 1
  4.  
  5. let escU5 = this.add.image(0 + 1180 * this.escenarios[4].pos, 0, "Laboratorio").setOrigin(0, 0);
  6.  
  7. escU5.displayHeight = this.game.canvas.height / 2;
  8. escU5.displayWidth = this.game.canvas.width;
  9.  
  10.  
  11. let pruebaLaboratorioU = this.physics.add.image(800 + 1180 * this.escenarios[4].pos, 185, "Ordenador").setOrigin(0, 0);
  12. pruebaLaboratorioU.displayHeight = this.game.canvas.height * 0.1;
  13. pruebaLaboratorioU.displayWidth = this.game.canvas.width * 0.08;
  14. pruebaLaboratorioU.setImmovable(true)
  15.  
  16.  
  17. this.blurLaboratorioU = this.add.image(0 + 1180 * this.escenarios[4].pos, 0, "LaboratorioBlur").setOrigin(0, 0);
  18. this.blurLaboratorioU.displayHeight = this.game.canvas.height / 2 - 10;
  19. this.blurLaboratorioU.displayWidth = this.game.canvas.width;
  20. this.blurLaboratorioU.alpha = 0;
  21.  
  22. this.crearPlataformasLaboratorio1();
  23.  
  24. //POWER UPS JUGADOR 1
  25. this.crearSpeedUpP1(825, 300, this.escenarios[4].pos);
  26.  
  27.  
  28. //Jugador 2
  29.  
  30. let escD5 = this.add.image(0 + 1180 * this.escenarios[4].pos, this.game.canvas.height / 2, "Laboratorio").setOrigin(0, 0);
  31.  
  32. escD5.displayHeight = this.game.canvas.height / 2;
  33. escD5.displayWidth = this.game.canvas.width;
  34.  
  35. let pruebaLaboratorioD = this.physics.add.image(800 + 1180 * this.escenarios[4].pos, 545 , "Ordenador").setOrigin(0, 0);
  36. pruebaLaboratorioD.displayHeight = this.game.canvas.height * 0.1;
  37. pruebaLaboratorioD.displayWidth = this.game.canvas.width * 0.08;
  38. pruebaLaboratorioD.setImmovable(true)
  39. //pruebaElectricidadD.alpha = 0;
  40.  
  41. this.blurLaboratorioD = this.add.image(0 + 1180 * this.escenarios[4].pos, this.game.canvas.height / 2 + 10, "LaboratorioBlur").setOrigin(0, 0);
  42. this.blurLaboratorioD.displayHeight = this.game.canvas.height / 2;
  43. this.blurLaboratorioD.displayWidth = this.game.canvas.width;
  44. this.blurLaboratorioD.alpha = 0;
  45.  
  46. this.crearPlataformasLaboratorio2();
  47.  
  48. //POWER UPS JUGADOR 2
  49. this.crearSpeedUpP2(825, 300, this.escenarios[4].pos);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement