Skip to content

Commit

Permalink
Agregar un PowerUP
Browse files Browse the repository at this point in the history
-Agregar un powerUP que permita al dino hacer un doble salto
  • Loading branch information
MaxiAlexVargas authored Nov 6, 2024
1 parent af6039c commit a786fd9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions example.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,21 @@ object dinosaurio {
method subir() {
position = position.up(4)
}

method powerUP()
{
if (position == game.origin())
{
self.saltoDoble()
game.schedule(225,{self.bajar()})
}
}

method saltoDoble()
{
position = position.up(8)
}

method sumarPtos() {

}
Expand Down

0 comments on commit a786fd9

Please sign in to comment.