Skip to content

Commit

Permalink
cambios del reloj y color
Browse files Browse the repository at this point in the history
  • Loading branch information
christianale12 committed Oct 2, 2024
1 parent 81b99d4 commit 0b3594e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dino.wtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ test "pasa el tiempo" {

reloj.pasarTiempo()
reloj.pasarTiempo()
//assert.equals("2",reloj.text())
assert.equals("2",reloj.text())
}
13 changes: 5 additions & 8 deletions dinoGame.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ object gameOver {
object reloj {
var property tiempo = 0
method text() = tiempo.toString()
//method textColor() = "00FF00FF"
method textColor() = "00FF00FF"
method position() = game.at(1, game.height()-1)

method pasarTiempo() {
tiempo= tiempo + 1
method pasarTiempo() {tiempo=tiempo + 1


}
method iniciar(){
Expand All @@ -64,7 +64,8 @@ object reloj {
}
method detener(){
tiempo=0

game.removeTickEvent("tiempo")
self.textColor()
}
}

Expand Down Expand Up @@ -114,10 +115,6 @@ object dino {

}

method algo(){

}


method subir(){

Expand Down
1 change: 1 addition & 0 deletions log/wollok.log
Original file line number Diff line number Diff line change
Expand Up @@ -2003,3 +2003,4 @@
{"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"}
>>>>>>> 59a34a71442f2c38c936e6051db8e8ffa095e3b7
{"failures":[],"level":"info","message":"🧪 Test runner executed on c:\\Users\\Pamela-PC\\Desktop\\dinoteam\\dino2-drimteam","result":{"failed":0,"ok":1},"timeElapsed":1321,"timestamp":"2024-10-02T21:23:31.055Z"}

0 comments on commit 0b3594e

Please sign in to comment.