Ejemplo n.º 1
0
    def init(self, App):
        BaseGame.init(self, App)
        self.screen = self.app.screen
        self.font = pygame.font.Font("../media/font/VeraMono.ttf", 20)
        self.players = None

        register_event(KEYDOWN, self.open_help, K_h)
        self.draw_select_player_screen()
Ejemplo n.º 2
0
    def init(self, App):
        BaseGame.init(self, App)

        self.whales = pygame.sprite.Group()
        self.entities = pygame.sprite.Group()
        self.modifiers = pygame.sprite.Group()
        self.projectiles = pygame.sprite.Group()
        self.groups = [self.whales,
                       self.entities,
                       self.modifiers,
                       self.projectiles]
        self.enemies = pygame.sprite.Group()

        self.ocean = pygame.Surface(App.screen.get_size())
        self.ocean.fill((0,0,200))

        self.create_whales()
Ejemplo n.º 3
0
    def init(self, App):
        BaseGame.init(self, App)
        self.screen = self.app.screen
        self.font = pygame.font.Font("../media/font/VeraMono.ttf", 20)

        self.draw_help_screen()