Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Escenario yiieePUm Laboratorio
- //Jugador 1
- let escU5 = this.add.image(0 + 1180 * this.escenarios[4].pos, 0, "Laboratorio").setOrigin(0, 0);
- escU5.displayHeight = this.game.canvas.height / 2;
- escU5.displayWidth = this.game.canvas.width;
- let pruebaLaboratorioU = this.physics.add.image(800 + 1180 * this.escenarios[4].pos, 185, "Ordenador").setOrigin(0, 0);
- pruebaLaboratorioU.displayHeight = this.game.canvas.height * 0.1;
- pruebaLaboratorioU.displayWidth = this.game.canvas.width * 0.08;
- pruebaLaboratorioU.setImmovable(true)
- this.blurLaboratorioU = this.add.image(0 + 1180 * this.escenarios[4].pos, 0, "LaboratorioBlur").setOrigin(0, 0);
- this.blurLaboratorioU.displayHeight = this.game.canvas.height / 2 - 10;
- this.blurLaboratorioU.displayWidth = this.game.canvas.width;
- this.blurLaboratorioU.alpha = 0;
- this.crearPlataformasLaboratorio1();
- //POWER UPS JUGADOR 1
- this.crearSpeedUpP1(825, 300, this.escenarios[4].pos);
- //Jugador 2
- let escD5 = this.add.image(0 + 1180 * this.escenarios[4].pos, this.game.canvas.height / 2, "Laboratorio").setOrigin(0, 0);
- escD5.displayHeight = this.game.canvas.height / 2;
- escD5.displayWidth = this.game.canvas.width;
- let pruebaLaboratorioD = this.physics.add.image(800 + 1180 * this.escenarios[4].pos, 545 , "Ordenador").setOrigin(0, 0);
- pruebaLaboratorioD.displayHeight = this.game.canvas.height * 0.1;
- pruebaLaboratorioD.displayWidth = this.game.canvas.width * 0.08;
- pruebaLaboratorioD.setImmovable(true)
- //pruebaElectricidadD.alpha = 0;
- this.blurLaboratorioD = this.add.image(0 + 1180 * this.escenarios[4].pos, this.game.canvas.height / 2 + 10, "LaboratorioBlur").setOrigin(0, 0);
- this.blurLaboratorioD.displayHeight = this.game.canvas.height / 2;
- this.blurLaboratorioD.displayWidth = this.game.canvas.width;
- this.blurLaboratorioD.alpha = 0;
- this.crearPlataformasLaboratorio2();
- //POWER UPS JUGADOR 2
- this.crearSpeedUpP2(825, 300, this.escenarios[4].pos);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement