Exemplo n.º 1
0
    def __init__(self):
        GameState.__init__(self)

        self.sprites = pygame.sprite.Group()  # A Pygame Group of all the sprites to draw

        self.movingSprites = pygame.sprite.Group() # A Pygame Group of all the moving sprites other than bullets
        self.bullets = pygame.sprite.Group() # A PYgame Group of all the bullets
        self.platforms = pygame.sprite.Group()  # A Pygame Group of platforms

        self.player = None  #The Player

        # Physics
        self.gravity = 0.21875

        # Viewport
        self.viewport = ViewPort(350, 450, 100, 450)
 def __init__(self, sprites):
     GameState.__init__(self)
     self.sprites = sprites