Exemplo n.º 1
0
def tutorial(scr):
    from fabiano import Player as ply
    from fabiano import eventostuto

    p1 = ply(scr, (0, 0, 255), [scrx - (scrx - 50), scry - 330, 60, 120], 5)
    p1.tutorial = True

    fundo = pygame.image.load("assets/intro/tuto" + death.linguagem +
                              ".png").convert()

    voltar = {"Nome": "Voltar", "x": 10, "y": 10, "w": 100, "h": 90}

    run = True
    while run:
        clock.tick(120)

        #draw
        scr.blit(fundo, (0, 0))
        p1.draw()

        #update
        p1.update()

        #eventos
        eventostuto(scr, p1, voltar)

        pygame.display.update()
Exemplo n.º 2
0
    def __init__(self):
        self.cenario = pygame.image.load(
            "./assets/baleia/imagens/fundo.png").convert_alpha()
        self.cenario = pygame.transform.scale(self.cenario, (1024, 768))
        self.ba = Enemy(screen, (0, 255, 0), [780, 450, 270, 270], 0)
        self.velx = 6
        self.count = 0
        self.rect = Rect((0, 598), (800, 1))
        self.inicio = time.time()

        #self.musica=pygame.mixer.music.load("./assets/baleia/musicas/golden time lover.mp3")
        #self.musicatoca=True
        #self.musicapos=0
        #self.musicapausada=False
        self.p1 = ply(screen, (0, 0, 255),
                      [width - (width - 50), height - 330, 60, 120], 5)
Exemplo n.º 3
0
 def __init__(self):
     self.botlasso = Boss(tela, [780, 0, 150, 170], 0.00, 0, True)
     self.p1 = ply(tela, (0, 0, 255), [W - (W - 50), H - 330, 60, 120], 5)
     self.count = 0
     self.botlassocount = 0
     self.fundo = pygame.image.load("assets/botlasso/botlassofundo.png").convert_alpha()
     self.fundozw = [pygame.image.load("assets/botlasso/ZW1.png").convert(),
                     pygame.image.load("assets/botlasso/ZW2.png").convert(),
                     pygame.image.load("assets/botlasso/ZW3.png").convert(),
                     pygame.image.load("assets/botlasso/ZW4.png").convert(),
                     pygame.image.load("assets/botlasso/ZW5.png").convert()]
     self.inicio = time.time()
     self.countfundo = 0
     self.sentidofundo = True
     pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=256)
     pygame.mixer.music.load("assets/musics/botlasso.mp3")
     pygame.mixer.music.set_volume(0.2)
     pygame.mixer.music.play(-1)
     self.zwsound = pygame.mixer.Sound("assets/botlasso/zwsound.wav")
     self.zwsound2 = pygame.mixer.Sound("assets/botlasso/zwsound2.wav")
Exemplo n.º 4
0
 def __init__(self, scr, W, H):
     self.scr = scr
     self.p1 = ply(scr, (0, 0, 255), [W - (W - 50), H - 330, 60, 120], 5)
     self.p1.vida = 100
     self.p1.rect[0] = 50
     self.mckurt = Boss([700, 270, 250, 500])
     self.fundo = pygame.image.load(
         "assets/mckurt/fundo.png").convert_alpha()
     self.bolas = []
     self.bolaimgreal = pygame.image.load(
         "assets/mckurt/ball.png").convert_alpha()
     self.bolaimg1 = pygame.transform.scale(self.bolaimgreal, (30, 30))
     self.bolaimg2 = pygame.transform.scale(self.bolaimgreal, (40, 40))
     self.bolavel = -10
     self.count = 0
     self.countanim = 0
     pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=256)
     pygame.mixer.music.load("assets/musics/mckurt.mp3")
     pygame.mixer.music.set_volume(0.2)
     pygame.mixer.music.play(-1)
     self.inicio = time.time()
Exemplo n.º 5
0
        def __init__(self):
            self.boss = Boss(scr, (255, 0, 0), [scrx - 300, scry - 550, 250, 500])
            self.p1 = ply(scr, (0, 0, 255), [scrx - (scrx - 50), scry - 330, 60, 120], 5)
            self.fundo = [pygame.image.load("assets/hantiseca/fundo.png").convert(),
                        pygame.image.load("assets/hantiseca/fundo2.png").convert(),
                        pygame.image.load("assets/hantiseca/fundo3.png").convert(),
                        pygame.image.load("assets/hantiseca/fundo4.png").convert(),
                        pygame.image.load("assets/hantiseca/fundo5.png").convert(),
                        pygame.image.load("assets/hantiseca/fundo6.png").convert(),
                        pygame.image.load("assets/hantiseca/fundo7.png").convert()]
            self.fundocount = 0
            self.fpersec = 6

            self.count = 0
            self.skill = 1
            self.inicio = time.time()
            pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=256)
            pygame.mixer.music.load("assets/musics/hantiseca.mp3")
            pygame.mixer.music.set_volume(0.4)
            pygame.mixer.music.play(-1)
            self.rain = pygame.mixer.Sound("assets/hantiseca/rain.wav")
            self.rain.set_volume(0.3)
            self.rain.play()