Skip to content

Commit

Permalink
correcciones
Browse files Browse the repository at this point in the history
  • Loading branch information
biancapicchio committed Oct 18, 2023
1 parent 85e0514 commit 0914067
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/direcciones.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ object tablero {
}

method haySolido(position, personaje){
return game.getObjectsIn(position).any({objeto => objeto.esSolidoPara(self)})
return game.getObjectsIn(position).any({objeto => objeto.esSolidoPara(personaje)})
}

}
Expand Down
6 changes: 5 additions & 1 deletion src/enemigos.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ object tunel{
}

method colisionarCon(personaje){
personaje.puedePasarCueva()

}

}
Expand Down Expand Up @@ -101,6 +101,10 @@ class AtrapaMagos{
game.say(personaje, "Me pueden ver!")
personaje.volverAlPrincipio()
}

method esSolidoPara(personaje){
return false
}
}


17 changes: 0 additions & 17 deletions src/personajes.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -72,30 +72,19 @@ object harry {
method colisionarCon(personaje){

}

method puedePasarCueva(){
return false
}

}

object harryHumano {

method image() = "harry.png"

method puedePasarCueva(){
return false
}

}

object harryInvisible {

method image() = "harryInvisible.png"

method puedePasarCueva(){
return false
}
}

object caminando {
Expand All @@ -115,9 +104,6 @@ object siriusHumano {
return false
}

method puedePasarCueva(){
return false
}

}

Expand All @@ -131,9 +117,6 @@ object siriusPerro {
return true
}

method puedePasarCueva(){
return true
}

}

Expand Down
2 changes: 1 addition & 1 deletion src/tests.wtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import juego.*
test "testX" {
assert.that(true)
}

0 comments on commit 0914067

Please sign in to comment.