import bge def main(): import bge cont = bge.logic.getCurrentController() own = cont.owner dict = bge.logic.globalDict #print("nnnnnnpause level", dict['level']) own['last_stBut'] = False level = dict['level'] scene = bge.logic.getCurrentScene() cam = scene.objects['Camera.003'] print("scene innnnnnnnnnnnnit1") curscene = bge.logic.getCurrentScene() # scenes = bge.logic.getSceneList() # for scene in scenes : # if scene.name == 'main': # player = scene.objects['player'] # main = bge.logic.getSceneList["main"] dict['overlay_fadeout'] = 1 scenes = bge.logic.getSceneList() own['pre_pause_linvel'] = 0.0 #own['last_roll_frame'] = 0 for i in scenes: if i.name == "main": main = i for i in scenes: if i.name == "fade_out": print('ending fade_out', scenes) scene2 = i scene2.end() if level == 'newday': brightness = 2.6 cam['BC_BRIGHTNESS'] = 1.3 cam['BC_CONTRAST'] = 1.5 elif level == 'lot': brightness = 2.6 cam['BC_BRIGHTNESS'] = 1 cam['BC_CONTRAST'] = 1 #main.world.zenithColor = [1.0, .9, .975, 0] #main.world.horizonColor = [.42, .555, .823, 0] curscene.world.zenithColor = [1.0, .9, .975, 0] curscene.world.horizonColor = [.42, .555, .823, 0] print("sadfasdfsdfasdfasdfasdfasdfasdf") elif level == 'spine': brightness = 2.6 cam['BC_BRIGHTNESS'] = .85 cam['BC_CONTRAST'] = 1.1 elif level == 'garage18': print('setting color of', curscene) curscene.world.zenithColor = [0, 0.0, 0.0, 0] curscene.world.horizonColor = [0, 0, 0.0, 0] #main.mistEnable = True #main.mistIntensity = .9 #main.mistStart = 1 #main.mistDistance = 5 else: cam['BC_BRIGHTNESS'] = 1.0 cam['BC_CONTRAST'] = 1.0 main.world.zenithColor = [1.0, .9, .975, 0] main.world.horizonColor = [.42, .555, .823, 0] #main.mistEnable = False main()