コード例 #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()
コード例 #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()
コード例 #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()
コード例 #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()
コード例 #5
0
ファイル: escena_menu.py プロジェクト: ezeanello96/HeadSoccer
 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()
コード例 #6
0
 def __init__(self):
     Escena.__init__(self)
コード例 #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()
コード例 #8
0
 def __init__(self):
     Escena.__init__(self)
コード例 #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)
コード例 #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)
コード例 #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()
コード例 #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()