예제 #1
0
 def __init__(self):
     "Inicializar Escena de Juego Terminado."
     Escena.__init__(self)
     self.fondo = cargar_imagen("inicial.jpg")
     self.titulo = Texto("UD Bricks", tamano = 72)
     self.iniciar = Texto("[F5] Iniciar Juego", tamano = 36)
     self.salir = Texto("Salir [ESC]", tamano = 36)
예제 #2
0
 def __init__(self):
     Escena.__init__(self)
     self.fondo=load_image('fondo.png')
     self.jugador=Jugador()
     self.puntos=0
     self.puntuacion=Texto("Puntos: ")
     pygame.key.set_repeat(1,25)
예제 #3
0
 def __init__(self, puntos):
     "Inicializar Escena de Juego Terminado."
     Escena.__init__(self)
     self.fondo = cargar_imagen("terminado.jpg")
     self.terminado = Texto("Juego Terminado", tamano = 72)
     self.puntos = Texto("Puntos: " + str(puntos), tamano = 48)
     self.reiniciar = Texto("[F5] Reiniciar", tamano = 36)
     self.salir = Texto("[ESC] Salir", tamano = 36)
예제 #4
0
 def __init__(self):
     "Inicialización de las variables del videojuego."
     Escena.__init__(self)
     self.fondo = cargar_imagen("fondo.jpg")
     self.pelota = Pelota()
     self.jugador = Jugador()
     self.muro = Muro()
     self.puntos = 0
     self.puntuacion = Texto("Puntos: ")
     self.vidas = 3
     self.t_vidas = Texto("Vidas: ")
     #Configuracion
     p.key.set_repeat(1, 25)
예제 #5
0
 def __init__(self):
     Escena.__init__(self)
     self.fondo=load_image('fondo_tem.png')
     self.reiniciar=Texto("[Enter] Iniciar Juego Nuevo",tamano=36)
     self.musica=musica("Dethklok-The Galaxy.flac")
     self.musica.cargar_musica()