Пример #1
0
	def init(self):
		if constant.GAME_DEBUG == False: credits.IntroCredits()
		else: module.scene_gui.objects["GUIBlackScreen"].color.w = 0
		module.window.hideCursor()
		utils.setFilter2D("FXAA", self.scene.active_camera, 0)
		utils.setFilter2D("ChromaticAberration", self.scene.active_camera, 1)
		
		self.camtrack = self.objects["IntroCamera"]
		#self.camtrack.playAction("IntroCameraAction", 0, 2000)
		self.addBehavior(behavior.MouseLook, self.camtrack)
		utils.setCamera(self, "IntroCamera")
		
		#Subtitles
		self.subs = media.Subtitles(module.labels["Subtitles"], "gui/Star Trek.srt")
Пример #2
0
    def init(self):
        if constant.GAME_DEBUG == False: credits.IntroCredits()
        else: module.scene_gui.objects["GUIBlackScreen"].color.w = 0
        module.window.hideCursor()
        utils.setFilter2D("FXAA", self.scene.active_camera, 0)
        utils.setFilter2D("ChromaticAberration", self.scene.active_camera, 1)

        self.camtrack = self.objects["IntroCamera"]
        #self.camtrack.playAction("IntroCameraAction", 0, 2000)
        self.addBehavior(behavior.MouseLook, self.camtrack)
        utils.setCamera(self, "IntroCamera")

        #Subtitles
        self.subs = media.Subtitles(module.labels["Subtitles"],
                                    "gui/Star Trek.srt")
Пример #3
0
	def init(self):
		#Set the cursor, hide for the intro video.
		interface.window.setCursor("gui/cursor.png")
		interface.window.cursor.scale = (0.5, 0.5)

		#Start the game with intro video
		if not constant.GAME_DEBUG and False:
			interface.window.hideCursor()
			utils.setCamera(self, "GUICamera.001") #Makes the menu desapear.
			media.showScreen() #Spawns screen
			media.screen.play("video/intro.avi", callback=self.afterVideo)
			media.screen.obj.color.w = 0 #Sets the screen alpha to 0 (invisible).
			media.screen.obj.worldScale = [0.3, 0.4, 1]
			media.screen.fadeIn(2) #Sets the screen alpha to 1 with a linear interpolation over 2 seconds.

		#Start the game directly
		else: self.afterVideo()
Пример #4
0
	def __init__(self):
		gui = module.scene_gui_behavior
		
		#Setup the credits
		self.creditC = module.labels["CreditCategory"]
		self.creditN = module.labels["CreditName"]
		self.creditC.color.w = 0
		self.creditN.color.w = 0
		self.icredit = 0
		self.n = 0
		
		utils.setCamera(gui, "GUICamera.002")
		self.interpolCamOrth = None
		sequencer.Wait(5, self.nextCredit)
		sequencer.Wait(1, lambda: media.music.play("sound/music/Iñigo Sáenz - The Crusader.mp3"))
		
		sequencer.Wait(45, self.startTitle)
		self.background = gui.scene.objects["GUIBlackScreen"]
		self.title = gui.objects["GUITitle"]
		self.title.color.w = 0
Пример #5
0
    def init(self):
        #Set the cursor, hide for the intro video.
        interface.window.setCursor("gui/cursor.png")
        interface.window.cursor.scale = (0.5, 0.5)

        #Start the game with intro video
        if not constant.GAME_DEBUG and False:
            interface.window.hideCursor()
            utils.setCamera(self, "GUICamera.001")  #Makes the menu desapear.
            media.showScreen()  #Spawns screen
            media.screen.play("video/intro.avi", callback=self.afterVideo)
            media.screen.obj.color.w = 0  #Sets the screen alpha to 0 (invisible).
            media.screen.obj.worldScale = [0.3, 0.4, 1]
            media.screen.fadeIn(
                2
            )  #Sets the screen alpha to 1 with a linear interpolation over 2 seconds.

        #Start the game directly
        else:
            self.afterVideo()
Пример #6
0
	def afterVideo(self):
		utils.setCamera(self, "GUICamera.000")
		interface.window.showCursor()
		media.hideScreen()
		if constant.GAME_DEBUG == True: self.setupMainMenu()
		else: sequencer.Wait(1, self.setupMainMenu)
Пример #7
0
 def afterVideo(self):
     utils.setCamera(self, "GUICamera.000")
     interface.window.showCursor()
     media.hideScreen()
     if constant.GAME_DEBUG == True: self.setupMainMenu()
     else: sequencer.Wait(1, self.setupMainMenu)