Skip to content

Commit

Permalink
-Agregar un powerUP (modificacion en el keyboard)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxiAlexVargas authored Nov 6, 2024
1 parent a786fd9 commit 0fe14eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ object juegoDeDinosaurio {
game.onTick(1000, "aparecerObjeto", { generadores.anyOne().generar() })

keyboard.up().onPressDo({ dinosaurio.salta() })

keyboard.down().onPressDo({ dinosaurio.powerUP() })

game.whenCollideDo(dinosaurio, { elemento => elemento.teChocoElDino() })
}
Expand Down

0 comments on commit 0fe14eb

Please sign in to comment.