Ejemplo n.º 1
0
    def __init__(self, pipes):
        super(NewGameState, self).__init__()
        self.pipes = pipes

        self.flappy = Flappy(0.2, 0.4)  # passing X, Y to Flappy
        self.flappy_group = pygame.sprite.RenderUpdates(self.flappy)

        self.ground = GroundManager()
Ejemplo n.º 2
0
    def __init__(self):
        super(IntroState, self).__init__()

        self.flappy = Flappy(0.5, 0.65)  # passing X, Y to Flappy
        self.flappy_group = pygame.sprite.RenderUpdates(self.flappy)
        self.ground = GroundManager()

        # create the pipes here to avoid generation (stutter) in FlappyFlying State
        self.pipes = PipeManager()