Skip to content

Commit

Permalink
Arreglo que solo aparecia mensaje de doblesalto
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucard02 committed Nov 14, 2024
1 parent d51c629 commit 15f993d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions example.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ class Aviso{

class AvisoHabilidad inherits Aviso{
method duracion() = 0

override method text() = "TENES DOBLE SALTO POR " + self.duracion().div(1000).toString() + " SEGUNDOS"
}

object avisoDobleSalto inherits AvisoHabilidad{
override method duracion() = dobleSalto.duracion()
override method text() = "TENES DOBLE SALTO POR " + self.duracion().div(1000).toString() + " SEGUNDOS"
}

object avisoInmunidad inherits AvisoHabilidad{
override method duracion() = inmune.duracion()
override method text() = "TENES INMUNIDAD POR " + self.duracion().div(1000).toString() + " SEGUNDOS"
}

object puntos{
method position() = game.at(2,17)
method position() = game.at(2,17)

method text() = "PUNTUACION: " + dinosaurio.puntos().toString()
method text() = "PUNTUACION: " + dinosaurio.puntos().toString()

method textColor() = paleta.amarillo()
method textColor() = paleta.amarillo()
}

object juegoDeDinosaurio {
Expand Down

0 comments on commit 15f993d

Please sign in to comment.