Exemplo n.º 1
0
    def __init__(self, x=180):
        Escena.__init__(self)

        self.x = x

        self.fondo = pilas.fondos.Fondo("frio.png")
        self.pelota = self.crear_pelota()
        self.pingui = self.crear_pingui()
        self.crear_colisiones()
Exemplo n.º 2
0
    def __init__(self, x=180):
        Escena.__init__(self)

        self.x = x

        self.fondo = pilas.fondos.Fondo("frio.png")
        self.pelota = self.crear_pelota()
        self.pingui = self.crear_pingui()
        self.crear_colisiones()
Exemplo n.º 3
0
    def __init__(self):
        Escena.__init__(self)
        self.piedras = []
        self.vidas1 = []
        self.vidas2 = []
        self.fondo = pilas.fondos.Fondo('data/fondo_juego.jpg')
        self.crear_piedra(8)
        self.t=pilas.actores.Temporizador(x=0,y=180,color=pilas.colores.blanco)
        self.t.ajustar(20, self.recrear_piedra)
        self.t.iniciar()


        self.crear_vidas()
        self.puntaje1 = pilas.actores.Puntaje(x=290, y=220)
        self.puntaje1.color = pilas.colores.azul
        self.puntaje2 = pilas.actores.Puntaje(x=-290, y=220)
        self.puntaje2.color = pilas.colores.verde
        self.crear_nave()
Exemplo n.º 4
0
    def __init__(self):
        Escena.__init__(self)
        self.piedras = []
        self.vidas1 = []
        self.vidas2 = []
        self.fondo = pilas.fondos.Fondo('data/fondo_juego.jpg')
        self.crear_piedra(8)
        self.t = pilas.actores.Temporizador(x=0,
                                            y=180,
                                            color=pilas.colores.blanco)
        self.t.ajustar(20, self.recrear_piedra)
        self.t.iniciar()

        self.crear_vidas()
        self.puntaje1 = pilas.actores.Puntaje(x=290, y=220)
        self.puntaje1.color = pilas.colores.azul
        self.puntaje2 = pilas.actores.Puntaje(x=-290, y=220)
        self.puntaje2.color = pilas.colores.verde
        self.crear_nave()
Exemplo n.º 5
0
 def __init__(self):
     Escena.__init__(self)
     self.fondo = pilas.fondos.Fondo('Fondo/fondo_menu.png')
     self.generar_titulo()
     pilas.avisar('Use el teclado para cambiar o seleccionar opciones')
     self.generar_menu()
Exemplo n.º 6
0
 def __init__(self):
     Escena.__init__(self)
Exemplo n.º 7
0
 def __init__(self):
     Escena.__init__(self)
     self.fondo = pilas.fondos.Fondo('Fondo/ppp.jpg')
     pilas.avisar('Use el teclado para cambiar o seleccionar opciones')
     self.generar_menu()
Exemplo n.º 8
0
 def __init__(self):
     Escena.__init__(self)
Exemplo n.º 9
0
 def __init__(self):
     Escena.__init__(self)
     self.fondo = pilas.fondos.Fondo('Fondo/fondo_ayuda.jpg')
     self.fondo.escala = 1.0
     pilas.eventos.pulsa_tecla_escape.conectar(self.cuando_pulsa_tecla)
Exemplo n.º 10
0
 def __init__(self):
     Escena.__init__(self)
     self.fondo = pilas.fondos.Fondo('Fondo/fondo_ayuda.png')
     self.fondo.escala = 0.50
     self.crear_texto_ayuda()
     pilas.eventos.pulsa_tecla_escape.conectar(self.cuando_pulsa_tecla)
Exemplo n.º 11
0
 def __init__(self):
     Escena.__init__(self)
     self.fondo = pilas.fondos.Fondo('data/fondo_menu.jpeg')
     self.generar_titulo()
     pilas.avisar('Seleccione lo que desea hacer')
     self.generar_menu()
Exemplo n.º 12
0
 def __init__(self):
     Escena.__init__(self)
     self.fondo = pilas.fondos.Fondo('data/fondo_menu.jpeg')
     self.generar_titulo()
     pilas.avisar('Seleccione lo que desea hacer')
     self.generar_menu()