-
Notifications
You must be signed in to change notification settings - Fork 1
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
Brisa Aylen Brussa
committed
Nov 9, 2024
1 parent
7783589
commit aa93ac7
Showing
9 changed files
with
97 additions
and
127 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import musica.* | ||
import jugador.* | ||
import muros.* | ||
import enemigos.* | ||
import puntos.* | ||
import miscelaneos.* | ||
|
||
object juego{ | ||
//DIBUJO DE LOS ELEMENTOS DEL MUNDO | ||
method jugar(){ | ||
points.reset() | ||
//dibujar fondo | ||
game.addVisual(fondoJuego) | ||
//dibujar lateral superior | ||
escenarioNivel.generarLateralSuperior() | ||
//dibujar muros | ||
escenarioNivel.generarEscenario() | ||
//dibujar enemigo | ||
lineaEnemiga.activar() | ||
//dibujar jugador | ||
jugador.posicionate() | ||
game.showAttributes(jugador) | ||
//dibujar frutas | ||
spawn.dibujarPuntos(1) | ||
//dibujar puntos | ||
game.addVisual(points) | ||
//dibujar superior | ||
escenarioNivel.generarBloquesSuperiores() | ||
//reproducir la musica correspondiente | ||
musicaDeFondo.play() | ||
} | ||
|
||
//BORRAR ELEMENTOS DEL JUEGO | ||
method limpiar(){ | ||
game.removeVisual(jugador) | ||
lineaEnemiga.enemigo().limpiarEnemigos() | ||
game.removeVisual(fondoJuego) | ||
game.removeVisual(points) | ||
escenarioNivel.limpiarEscenario() | ||
musicaDeFondo.stop() | ||
} | ||
|
||
method cargarVisuales(posicion){ | ||
jugador.valor(coleccion.personaje(posicion)) | ||
lineaEnemiga.imagen(coleccion.enemigo(posicion)) | ||
fondoJuego.valor(coleccion.fondo(posicion)) | ||
visual.valor(coleccion.bloque_i(posicion)) | ||
visualSuperior.valor(coleccion.bloque_s(posicion)) | ||
spawn.puntos(coleccion.puntos(posicion)) | ||
musicaDeFondo.sonido(game.sound(coleccion.musica(posicion))) | ||
} | ||
} |
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
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
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
Oops, something went wrong.