コード例 #1
0
ファイル: game.py プロジェクト: jakebarnwell/PythonGenerator
    def __init__(self, level=None):
        # Set the games objects
        self.clock = pygame.time.Clock()
        self.main_character = Slash(20.,20.,position=Vector3(0.,0.,-1.), orientation=0.)

        self.enemies = []
        self.characters = [self.main_character]
        self.projectiles = []  # projectiles pool
        self.sound_wave = None # sound wave 'pool'
        self.stage = Stage(STAGE_SIZE)
        # Control
        self.print_debug = False
        self.last_enemy_addition = 0