Пример #1
0
    def main_game_draw(self):

        window.clear()

        self.draw_map_early()
        self.draw_objects()
        self.draw_map_late()
        if options['torch']:
            self.draw_torch()

        self.draw_buttons()
        if self.game.state == EDITOR:
            self.draw_editor()

        self.draw_fear_bar()
        self.draw_character_stats()

        if self.game.show_fears:
            self.say_fears()
        if self.game.show_ranges:
            self.show_fear_ranges()

        if self.game.dialogue is not None:
            self.game.dialogue.draw()

        if self.game.message_box is not None:
            self.game.screen_objects_to_draw.append(self.game.message_box)

        if options['FOV']:
            self.draw_world_objects()
            self.draw_screen_objects()
        else:
            self.game.world_objects_to_draw = []
            self.game.screen_objects_to_draw = []
Пример #2
0
    def main_game_draw(self):

        window.clear()

        self.draw_map_early()
        self.draw_objects()
        self.draw_map_late()
        if options['torch']:
            self.draw_torch()

        self.draw_buttons()
        if self.game.state == EDITOR:
            self.draw_editor()

        self.draw_fear_bar()
        self.draw_character_stats()

        if self.game.show_fears:
            self.say_fears()
        if self.game.show_ranges:
            self.show_fear_ranges()

        if self.game.dialogue is not None:
            self.game.dialogue.draw()

        if self.game.message_box is not None:
            self.game.screen_objects_to_draw.append(self.game.message_box)

        if options['FOV']:
            self.draw_world_objects()
            self.draw_screen_objects()
        else:
            self.game.world_objects_to_draw = []
            self.game.screen_objects_to_draw = []
Пример #3
0
 def on_draw(self):
     window.clear()
     self.batch.draw()
Пример #4
0
 def on_draw(self):
     window.clear()
     self._batch.draw()