Example #1
0
  def __init__(self, pid, player, game):
    pygame.sprite.Sprite.__init__(self)
    self.pid = pid
    self.game = game

    self.space = pygame.surface.Surface([48, 24])
    self.space.fill([0, 0, 0])

    self.image = pygame.surface.Surface([len(game.dirs) * game.width, 24])
    self.image.fill([0, 0, 0])
    self.image.set_colorkey([0, 0, 0], RLEACCEL)

    self.okimg = fontfx.shadefade(_("OK"), FontTheme.Dance_hold_judgment, 3, [48, 24], [112, 224, 112])
    self.ngimg = fontfx.shadefade(_("NG"), FontTheme.Dance_hold_judgment, 3, [48, 24], [224, 112, 112])

    self.rect = self.image.get_rect()
    if player.scrollstyle == 2: self.rect.top = 228
    elif player.scrollstyle == 1: self.rect.top = 400
    else: self.rect.top = 56

    self.rect.left = game.left_off(pid) + pid * game.player_offset
    self.len = len(game.dirs)
Example #2
0
    def __init__(self, pid, player, game):
        pygame.sprite.Sprite.__init__(self)
        self.pid = pid
        self.game = game

        self.space = pygame.surface.Surface([48, 24])
        self.space.fill([0, 0, 0])

        self.image = pygame.surface.Surface([len(game.dirs) * game.width, 24])
        self.image.fill([0, 0, 0])
        self.image.set_colorkey([0, 0, 0], RLEACCEL)

        self.okimg = fontfx.shadefade(_("OK"), FontTheme.Dance_hold_judgment,
                                      3, [48, 24], [112, 224, 112])
        self.ngimg = fontfx.shadefade(_("NG"), FontTheme.Dance_hold_judgment,
                                      3, [48, 24], [224, 112, 112])

        self.rect = self.image.get_rect()
        if player.scrollstyle == 2: self.rect.top = 228
        elif player.scrollstyle == 1: self.rect.top = 400
        else: self.rect.top = 56

        self.rect.left = game.left_off(pid) + pid * game.player_offset
        self.len = len(game.dirs)
Example #3
0
    def __init__(self, playernum, game):
        pygame.sprite.Sprite.__init__(self)

        self._sticky = mainconfig['stickyjudge']
        self._needsupdate = True
        self._laststep = 0
        self._oldzoom = -1
        self._bottom = 320
        self._centerx = game.sprite_center + (playernum * game.player_offset)

        tx = FontTheme.Dance_step_judgment.size(_("MARVELOUS"))[0] + 4
        marvelous = fontfx.shadefade(_("MARVELOUS"),
                                     FontTheme.Dance_step_judgment, 4,
                                     [tx, 40], [224, 224, 224])

        tx = FontTheme.Dance_step_judgment.size(_("PERFECT"))[0] + 4
        perfect = fontfx.shadefade(_("PERFECT"), FontTheme.Dance_step_judgment,
                                   4, [tx, 40], [224, 224, 32])

        tx = FontTheme.Dance_step_judgment.size(_("GREAT"))[0] + 4
        great = fontfx.shadefade(_("GREAT"), FontTheme.Dance_step_judgment, 4,
                                 [tx, 40], [32, 224, 32])

        tx = FontTheme.Dance_step_judgment.size(_("OKAY"))[0] + 4
        okay = fontfx.shadefade(_("OKAY"), FontTheme.Dance_step_judgment, 4,
                                [tx, 40], [32, 32, 224])

        tx = FontTheme.Dance_step_judgment.size(_("BOO"))[0] + 4
        boo = fontfx.shadefade(_("BOO"), FontTheme.Dance_step_judgment, 4,
                               [tx, 40], [96, 64, 32])

        tx = FontTheme.Dance_step_judgment.size(_("MISS"))[0] + 4
        miss = fontfx.shadefade(_("MISS"), FontTheme.Dance_step_judgment, 4,
                                [tx, 40], [224, 32, 32])

        self._space = FontTheme.Dance_step_judgment.render(
            " ", True, [0, 0, 0])

        marvelous.set_colorkey(marvelous.get_at([0, 0]), RLEACCEL)
        perfect.set_colorkey(perfect.get_at([0, 0]), RLEACCEL)
        great.set_colorkey(great.get_at([0, 0]), RLEACCEL)
        okay.set_colorkey(okay.get_at([0, 0]), RLEACCEL)
        boo.set_colorkey(boo.get_at([0, 0]), RLEACCEL)
        miss.set_colorkey(miss.get_at([0, 0]), RLEACCEL)

        self._images = {
            "V": marvelous,
            "P": perfect,
            "G": great,
            "O": okay,
            "B": boo,
            "M": miss
        }

        self.image = self._space
        self._baseimage = self._space
Example #4
0
  def __init__(self, playernum, game):
    pygame.sprite.Sprite.__init__(self)

    self._sticky = mainconfig['stickyjudge']
    self._needsupdate = True
    self._laststep = 0
    self._oldzoom = -1
    self._bottom = 320
    self._centerx = game.sprite_center + (playernum * game.player_offset)
        
    tx = FontTheme.Dance_step_judgment.size(_("MARVELOUS"))[0] + 4
    marvelous = fontfx.shadefade(_("MARVELOUS"), FontTheme.Dance_step_judgment, 4, [tx, 40], [224, 224, 224])

    tx = FontTheme.Dance_step_judgment.size(_("PERFECT"))[0] + 4
    perfect = fontfx.shadefade(_("PERFECT"), FontTheme.Dance_step_judgment, 4, [tx, 40], [224, 224, 32])

    tx = FontTheme.Dance_step_judgment.size(_("GREAT"))[0] + 4
    great = fontfx.shadefade(_("GREAT"), FontTheme.Dance_step_judgment, 4, [tx, 40], [32, 224, 32])

    tx = FontTheme.Dance_step_judgment.size(_("OKAY"))[0] + 4
    okay = fontfx.shadefade(_("OKAY"), FontTheme.Dance_step_judgment, 4, [tx, 40], [32, 32, 224])

    tx = FontTheme.Dance_step_judgment.size(_("BOO"))[0] + 4
    boo = fontfx.shadefade(_("BOO"), FontTheme.Dance_step_judgment, 4, [tx, 40], [96, 64, 32])

    tx = FontTheme.Dance_step_judgment.size(_("MISS"))[0]+4
    miss = fontfx.shadefade(_("MISS"), FontTheme.Dance_step_judgment, 4, [tx, 40], [224, 32, 32])

    self._space = FontTheme.Dance_step_judgment.render(" ", True, [0, 0, 0])

    marvelous.set_colorkey(marvelous.get_at([0, 0]), RLEACCEL)
    perfect.set_colorkey(perfect.get_at([0, 0]), RLEACCEL)
    great.set_colorkey(great.get_at([0, 0]), RLEACCEL)
    okay.set_colorkey(okay.get_at([0, 0]), RLEACCEL)
    boo.set_colorkey(boo.get_at([0, 0]), RLEACCEL)
    miss.set_colorkey(miss.get_at([0, 0]), RLEACCEL)

    self._images = { "V": marvelous, "P": perfect, "G": great,
                     "O": okay, "B": boo, "M": miss }
    
    self.image = self._space
    self._baseimage = self._space