Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brisa Aylen Brussa committed Nov 9, 2024
1 parent e4f2ae7 commit 2c02bef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions menus.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ object menuNivel inherits Menus(add_1 = menuNiveles, add_2 = seleccionNivel, can
keyboard.enter().onPressDo({
if(sincronizadorDePantallas.pantallaActual() == tipoDeMenu){
sincronizadorDePantallas.cambiarPantalla("jugar")
if(add_2.position() == game.at(1,11)){ //Seleccionado nivel 1
escenarioNivel.nivel(1)
} else if(add_2.position() == game.at(3,11)){ //Seleccionado nivel 2
escenarioNivel.nivel(2)
}
const nivel = (add_2.position().x()-1)/2
escenarioNivel.nivel(nivel)
self.limpiarPantalla()
juego.jugar()
}
Expand Down
2 changes: 1 addition & 1 deletion niveles.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ object niveles{
[b,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,b],
[b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b]]

method entregarFila(fila, nivel) = if(nivel == 1) nivel1.get(fila) else nivel2.get(fila)
method entregarFila(fila, nivel) = if(nivel == 0) nivel1.get(fila) else nivel2.get(fila)
}

object b {
Expand Down

0 comments on commit 2c02bef

Please sign in to comment.