Skip to content

Commit

Permalink
pulliendo algunas cosas
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricioalg committed Nov 14, 2024
1 parent b51367d commit 66c0b5b
Show file tree
Hide file tree
Showing 29 changed files with 11 additions and 30,546 deletions.
2 changes: 1 addition & 1 deletion bicho.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ const bicho4 = new Enemigo(subiendo = false, limiteDerecho = 28, limiteIzquierdo
const bicho5 = new Enemigo(horizontal = false, limiteSuperior = 18, limiteInferior = 12, position = game.at(12,16))
const mago1 = new Mago(subiendo = false, limiteDerecho = 24 , limiteIzquierdo = 10, position = game.at(10,10))
const mago2 = new Mago(subiendo = false, limiteDerecho = 22 , limiteIzquierdo = 12, position = game.at(12,6))
const mago3 = new Mago(subiendo = false, limiteDerecho = 22, limiteIzquierdo = 14, position = game.at(10,10))
const mago3 = new Mago(subiendo = false, limiteDerecho = 22, limiteIzquierdo = 14, position = game.at(14,10))
const fantasma1 = new Fantasma(horizontal = false, limiteSuperior = 15 , limiteInferior = 1, position = game.at(24,3))
const fantasma2 = new Fantasma(horizontal = false, limiteSuperior = 9 , limiteInferior = 1, position = game.at(12,3))
2 changes: 1 addition & 1 deletion isaac.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object isaac{
}

method avanzarNivel(escenario){
if (tieneLlave)
if (tieneLlave && nivel.escenarioActual() != escenario)
nivel.cambiarEscenario(escenario)
else game.say(self, "Necesito la llave")
}
Expand Down
1,615 changes: 1 addition & 1,614 deletions log/wollok.log

Large diffs are not rendered by default.

2,726 changes: 0 additions & 2,726 deletions log/wollok1.log

This file was deleted.

3,209 changes: 0 additions & 3,209 deletions log/wollok10.log

This file was deleted.

1,661 changes: 0 additions & 1,661 deletions log/wollok11.log

This file was deleted.

39 changes: 0 additions & 39 deletions log/wollok12.log

This file was deleted.

1,471 changes: 0 additions & 1,471 deletions log/wollok13.log

This file was deleted.

2,784 changes: 0 additions & 2,784 deletions log/wollok14.log

This file was deleted.

1,974 changes: 0 additions & 1,974 deletions log/wollok15.log

This file was deleted.

21 changes: 0 additions & 21 deletions log/wollok16.log

This file was deleted.

4 changes: 0 additions & 4 deletions log/wollok17.log

This file was deleted.

1,574 changes: 0 additions & 1,574 deletions log/wollok18.log

This file was deleted.

229 changes: 0 additions & 229 deletions log/wollok19.log

This file was deleted.

89 changes: 0 additions & 89 deletions log/wollok2.log

This file was deleted.

1,182 changes: 0 additions & 1,182 deletions log/wollok20.log

This file was deleted.

1,361 changes: 0 additions & 1,361 deletions log/wollok21.log

This file was deleted.

2,388 changes: 0 additions & 2,388 deletions log/wollok22.log

This file was deleted.

548 changes: 0 additions & 548 deletions log/wollok23.log

This file was deleted.

122 changes: 0 additions & 122 deletions log/wollok3.log

This file was deleted.

70 changes: 0 additions & 70 deletions log/wollok4.log

This file was deleted.

482 changes: 0 additions & 482 deletions log/wollok5.log

This file was deleted.

640 changes: 0 additions & 640 deletions log/wollok6.log

This file was deleted.

1,598 changes: 0 additions & 1,598 deletions log/wollok7.log

This file was deleted.

1,877 changes: 0 additions & 1,877 deletions log/wollok8.log

This file was deleted.

2,878 changes: 0 additions & 2,878 deletions log/wollok9.log

This file was deleted.

5 changes: 5 additions & 0 deletions nivel.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,16 @@ object nivel{
method muerte(){
self.clearGame()
game.addVisual(gameOver)
isaac.vida(100)
isaac.image("peque.png")
}

method finalizar(){
self.clearGame()
game.addVisual(finDelJuego)
isaac.vida(100)
isaac.image("peque.png")
cofre.abierto(false)
}
}

Expand Down
4 changes: 2 additions & 2 deletions obstaculos.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ object cura{

object cofre{
var property position = game.at(3,16)
var abierto = false
var property abierto = false
var property image = "cofre.png"

method interactuar(){
self.image("cofreAbierto.png")
if(abierto == false){
if(!abierto){
isaac.vida(isaac.vida() + 20)
game.say(isaac, "Ahora tengo " + isaac.vida() + " de vida")
isaac.image("isaacConArmadura.png")
Expand Down
2 changes: 1 addition & 1 deletion pruebas.wtest
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe "tests para isaac" {

test "el fantasma toca a isaac y lo despoja de sus armaduras"{
fantasma1.interactuar()
assert.equals(90, isaac.vida())
assert.equals(85, isaac.vida())
assert.equals("sinArmadura.png", isaac.image())
}

Expand Down

0 comments on commit 66c0b5b

Please sign in to comment.