Exemplo n.º 1
0
 def __init__(self, level, time=400):
     self.font = get_font(16)
     self.world = ' 1-1 '
     self.worltime = 0
     self.lives = 3
     self.score = 0
     self.coins = 0
     self.time = 400
     self.coin = ScoreCoin(BLOCK_SIZE * 6, 33)
     self.x = IMAGE_SLIDER.get_item('score_x', 1.5)
Exemplo n.º 2
0
 def __init__(self, level, time=400 ):
     self.font = get_font(16)
     self.world = ' 1-1 '
     self.worltime  = 0
     self.lives = 3
     self.score = 0
     self.coins = 0
     self.time = 400
     self.coin = ScoreCoin(BLOCK_SIZE * 6, 33)
     self.x = IMAGE_SLIDER.get_item('score_x', 1.5)
Exemplo n.º 3
0
    def __init__(self, score, x, y, level):

        pygame.sprite.Sprite.__init__(self)
        if not Points.font:
            Points.font = get_font(8)
        self.timeout = 1
        self.level = level
        self.image = Points.font.render(str(score), False, WHITE)
        self.rect = self.image.get_rect()
        self.rect.x = x
        self.rect.y = y
Exemplo n.º 4
0
    def __init__(self, score, x, y, level):

        pygame.sprite.Sprite.__init__(self)
        if not Points.font:
            Points.font = get_font(8)
        self.timeout = 1
        self.level = level
        self.image = Points.font.render(str(score), False, WHITE)
        self.rect = self.image.get_rect()
        self.rect.x = x
        self.rect.y = y