-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
58 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,57 @@ | ||
import miscelaneos.* | ||
import muros.* | ||
|
||
object niveles{ | ||
const nivel1 = [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1], | ||
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], | ||
[1,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,1], | ||
[1,0,1,0,1,0,0,0,0,0,0,0,0,1,0,1,0,1], | ||
[1,0,1,0,1,0,0,0,0,0,0,0,0,1,0,1,0,1], | ||
[1,0,1,0,1,0,0,0,0,0,0,0,0,1,0,1,0,1], | ||
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], | ||
[1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,1], | ||
[1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1], | ||
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], | ||
[1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1], | ||
[1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1], | ||
[1,0,0,1,0,0,0,0,1,1,0,0,0,0,1,0,0,1], | ||
[1,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,1], | ||
[1,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,1], | ||
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], | ||
[1,0,0,0,0,0,0,0,0,0,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n,b,n,b], | ||
[b,n,b,n,n,n,n,n,n,n,n,b,n,n,n,b,n,b], | ||
[b,n,n,b,b,b,b,b,b,b,b,n,n,b,b,n,n,b], | ||
[b,n,n,n,n,n,n,n,n,n,n,b,b,n,n,n,n,b], | ||
[b,n,n,b,b,b,b,b,b,b,b,n,n,n,n,n,n,b], | ||
[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) | ||
} | ||
|
||
object b { | ||
method decodificar(x,y) | ||
{ | ||
escenario.listaPosiciones().add(game.at(x,y)) | ||
new Bloque().ubicarYDibujar(x,y) | ||
} | ||
method decodificarSuperior(x,y) = new BloqueSuperior().ubicarYDibujar(x, y) | ||
} | ||
|
||
object n { | ||
method decodificar(x,y) {} | ||
} |