Skip to content

Commit

Permalink
prohibo pausa antes de empezar a jugar
Browse files Browse the repository at this point in the history
  • Loading branch information
faustorod1 committed Nov 15, 2024
1 parent f2a53fe commit efb50a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game.wpgm
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ import tetris.*
})

keyboard.p().onPressDo({
if (!juegoPausado){
if (!juegoPausado && juegoInicializado){
juegoPausado = true
visuales.mostrarVentanaPausa()
sonidoFondo.pause()
}else{
}else if (juegoInicializado){
juegoPausado = false
visuales.ocultarVentanaPausa()
sonidoFondo.resume()
Expand Down

0 comments on commit efb50a5

Please sign in to comment.