Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-guazzotti committed Oct 1, 2024
2 parents 792be40 + 5a95faf commit 8f71db3
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dinoGame.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ object reloj {
method position() = game.at(1, game.height()-1)

method pasarTiempo() {
// Change gus
tiempo = tiempo + 1
tiempo = tiempo + 1
}
method iniciar(){
tiempo = 0
Expand Down Expand Up @@ -111,8 +110,8 @@ object dino {
method saltar(){
self.subir()
game.schedule(reloj.tiempo() + 100, {self.subir()})
game.schedule(reloj.tiempo() + 150, {self.bajar()})
game.schedule(reloj.tiempo() + 250, {self.bajar()})
game.schedule(reloj.tiempo() + 200, {self.bajar()})
game.schedule(reloj.tiempo() + 300, {self.bajar()})
}

method subir(){
Expand Down
Loading

0 comments on commit 8f71db3

Please sign in to comment.