Skip to content

Commit

Permalink
cactus reinicia
Browse files Browse the repository at this point in the history
  • Loading branch information
castiel21 committed Oct 1, 2024
1 parent d18967c commit 59a34a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dinoGame.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ object cactus {
}

method mover(){
position = position.left(1)
//position = position.left(1)
// if para saber posicion y si pasa al dino game.set a la derecha de nuevo
if(self.position()== game.at(0,1)){
position = game.at(game.width()-1,suelo.position().y())
}else position = position.left(1)
}

method chocar(){
Expand Down
1 change: 1 addition & 0 deletions log/wollok.log
Original file line number Diff line number Diff line change
Expand Up @@ -1950,3 +1950,4 @@
{"exitCode":"SIGHUP","level":"info","message":"👾 Game executed mainExample.DinoGame on /home/infolab/Descargas/dino2-drimteam","timeElapsed":29806,"timestamp":"2024-10-01T23:43:43.401Z"}
{"exitCode":"SIGHUP","level":"info","message":"👾 Game executed mainExample.DinoGame on /home/infolab/Descargas/dino2-drimteam","timeElapsed":24000,"timestamp":"2024-10-01T23:47:28.266Z"}
{"exitCode":"SIGHUP","level":"info","message":"👾 Game executed mainExample.DinoGame on /home/infolab/Descargas/dino2-drimteam","timeElapsed":31927,"timestamp":"2024-10-01T23:49:39.369Z"}
{"exitCode":"SIGHUP","level":"info","message":"👾 Game executed mainExample.DinoGame on /home/infolab/Descargas/dino2-drimteam","timeElapsed":31119,"timestamp":"2024-10-01T23:54:51.519Z"}

0 comments on commit 59a34a7

Please sign in to comment.