diff --git a/assets/E_horizontal_gate_long.png b/assets/E_horizontal_gate_long.png new file mode 100644 index 0000000..addb02e Binary files /dev/null and b/assets/E_horizontal_gate_long.png differ diff --git a/elements.wlk b/elements.wlk index bf107f2..7edae68 100644 --- a/elements.wlk +++ b/elements.wlk @@ -273,15 +273,15 @@ class PlataformaMovimientoHorizontal inherits PlataformaBase{ override method move(movimiento) { super(movimiento) - platAsocs.forEach { x => x.move("up")} + platAsocs.forEach { x => x.move("Left")} } override method moveBack(movimiento) { super(movimiento) - platAsocs.forEach { x => x.moveBack("down")} + platAsocs.forEach { x => x.moveBack("Right")} } - method image() = "E_horizontal_gate.png" + method image() = "E_horizontal_gate_long.png" } // ------------------ Nuevo fondo diff --git a/level_2.wlk b/level_2.wlk index 869950c..2965dc2 100644 --- a/level_2.wlk +++ b/level_2.wlk @@ -13,14 +13,16 @@ object level2 inherits Level { const puertaWatergirl1 = new Puerta(posX = 2, posY = 24, tipo = agua) const puertaWatergirl2 = new Puerta(posX = 3, posY = 24, tipo = agua) - const extensionPlatVioleta1 = new PlataformaBase(position = new MutablePosition(x=21, y=23)) - const extensionPlatVioleta2 = new PlataformaBase(position = new MutablePosition(x=20, y=23)) + const extensionPlatVioleta1 = new PlataformaBase(position = new MutablePosition(x=23, y=23)) + const extensionPlatVioleta2 = new PlataformaBase(position = new MutablePosition(x=24, y=23)) + const extensionPlatVioleta3 = new PlataformaBase(position = new MutablePosition(x=25, y=23)) + const extensionPlatVioleta4 = new PlataformaBase(position = new MutablePosition(x=26, y=23)) const plataformaVioleta = new PlataformaMovimientoHorizontal( position = new MutablePosition(x=22, y=23), maxPosicion = 17, minPosicion = 22, - platAsocs = [extensionPlatVioleta1, extensionPlatVioleta2] + platAsocs = [extensionPlatVioleta1, extensionPlatVioleta2,extensionPlatVioleta3,extensionPlatVioleta4] ) const botonVioletaA = new Boton(posX = 12, posY = 24, plataformaAsoc = plataformaVioleta,movimiento = "Left",vuelta = "Right") // Boton izquierda @@ -141,6 +143,6 @@ object level2 inherits Level { // Agregamos los elementos del nivel override method agregarElementosNivel (){ - [fireboy, watergirl, puertaFireboy1, puertaFireboy2, puertaWatergirl1, puertaWatergirl2, extensionPlatVioleta1, extensionPlatVioleta2, plataformaVioleta,botonVioletaA, botonVioletaB,extensionPlatAmarilla1,extensionPlatAmarilla2,extensionPlatAmarilla3,plataformaAmarilla,botonAmarilloA,botonAmarilloB].forEach({x => elementosNivel.add(x)}) + [fireboy, watergirl, puertaFireboy1, puertaFireboy2, puertaWatergirl1, puertaWatergirl2, extensionPlatVioleta1, extensionPlatVioleta2,extensionPlatVioleta3,extensionPlatVioleta4, plataformaVioleta,botonVioletaA, botonVioletaB,extensionPlatAmarilla1,extensionPlatAmarilla2,extensionPlatAmarilla3,plataformaAmarilla,botonAmarilloA,botonAmarilloB].forEach({x => elementosNivel.add(x)}) } } \ No newline at end of file