Exemplo n.º 1
0
    def Display(self, screen):
        screen.blit(pygame.transform.smoothscale(self.image, (32, 32)), (self.x, self.y))

Trump_Wall = level(0, 0, 0, 40, 1680, black, False)
Origin_Block = level(0, -1, 0, 1, 1, white, True)
Starting_Block = level(0,800, 948, 100, 20, black, True)
BlockGroup.append(Trump_Wall)
BlockGroup.append(Origin_Block)
BlockGroup.append(Starting_Block)

while running == True:
    screen.fill(white)
    surf_1.fill(white)
    surf_2.fill(black)
    Tab.State(surf_1, surf_2)
    #PS = myfont.render(str(x)+ " " + str(y), False, red)
    #surf_1.blit(PS, (10,20))
    print("Loop went away")
    print("Choice: " + Chose)
    if time.clock()-T2 > 1:
        T2 = time.clock()
        Break_Point = False
    if time.clock()-T3 > 0.01:
        T3 = time.clock()
        Break_Point_Fast = False
    if Chose == "Custom":
        Custom()
    elif Chose == "Power-Up":
        PowerUP()
    if Move == "right":

Trump_Wall = level(0, 0, 0, 40, 1680, black, False)
Origin_Block = level(0, -1, 0, 1, 1, white, True)
Starting_Block = level(0, 40, 948, 100, 20, black, True)
Starting_Block_2 = level(0, 800, 948, 100, 20, black, True)
BlockGroup.append(Trump_Wall)
BlockGroup.append(Origin_Block)
BlockGroup.append(Starting_Block)
BlockGroup.append(Starting_Block_2)

while running == True:
    screen.fill(white)
    surf_1.fill(white)
    surf_2.fill(black)
    Tab.State(Chose, surf_1, surf_2)
    #PS = myfont.render(str(x)+ " " + str(y), False, red)
    #surf_1.blit(PS, (10,20))
    print("Loop went away")
    print("Choice: " + Chose)
    if time.clock() - T2 > 1:
        T2 = time.clock()
        Break_Point = False
    if time.clock() - T3 > 0.38:
        T3 = time.clock()
        Break_Point_Fast = False
    if Chose == "Custom":
        Custom()
    if Move == "right":
        Move = "Neutral"
        if BlockGroup != []: