Skip to content

Commit

Permalink
shift y se gana automaticamente(para probar)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyleca committed Oct 22, 2024
1 parent ab60dda commit 914af0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mainExample.wpgm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ program BadIceCreamGame {
}
})


// Si tocas shift se gana el juego automaticamente. Asi cuando probamos no tenemos que jugarlo completo. Despues esto se saca.
keyboard.shift().onPressDo({
sincronizadorDePantallas.cambiarPantalla("ganador")
menuGanaste.cargar()})

game.onCollideDo(lineaEnemiga.enemigo(), {elemento => if(elemento.jugador()){ elemento.eliminate() sincronizadorDePantallas.cambiarPantalla("perdedor") menuPerdiste.cargar()}})
}

Expand Down

0 comments on commit 914af0b

Please sign in to comment.