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, x, y):

        self.frames = []
        self.frame_index = 0
        for index in xrange(0, 3):
            self.frames.append(IMAGE_SLIDER.get_item('score_coin_{}'.format(index), 1.5))

        self.frames.append(self.frames[1])
        self.frames.append(self.frames[0])
        self.image = self.frames[self.frame_index]
        self.rect = self.image.get_rect()
        self.rect.x = x
        self.rect.y = y
        self.frame_count = 0
Exemplo n.º 4
0
    def __init__(self, x, y):

        self.frames = []
        self.frame_index = 0
        for index in xrange(0, 3):
            self.frames.append(
                IMAGE_SLIDER.get_item('score_coin_{}'.format(index), 1.5))

        self.frames.append(self.frames[1])
        self.frames.append(self.frames[0])
        self.image = self.frames[self.frame_index]
        self.rect = self.image.get_rect()
        self.rect.x = x
        self.rect.y = y
        self.frame_count = 0