示例#1
0
 def __setWhiteFog(self):
     if base.wantFog:
         self.fog.setColor(Vec4(0.8, 0.8, 0.8, 1.0))
         self.fog.setLinearRange(0.0, 400.0)
         render.setFog(self.fog)
         self.loader.hood.sky.setFog(self.fog)
         SZUtil.stopUnderwaterFog()
示例#2
0
 def __setWhiteFog(self):
     if base.wantFog:
         self.fog.setColor(Vec4(0.8, 0.8, 0.8, 1.0))
         self.fog.setLinearRange(0.0, 400.0)
         render.setFog(self.fog)
         self.loader.hood.sky.setFog(self.fog)
         SZUtil.stopUnderwaterFog()
示例#3
0
 def setWhiteFog(self):
     if base.wantFog:
         self.fog.setColor(self.whiteFogColor)
         self.fog.setLinearRange(0.0, 400.0)
         render.clearFog()
         render.setFog(self.fog)
         self.sky.clearFog()
         self.sky.setFog(self.fog)
         SZUtil.stopUnderwaterFog()
示例#4
0
 def setWhiteFog(self):
     if base.wantFog:
         self.fog.setColor(self.whiteFogColor)
         self.fog.setLinearRange(0.0, 400.0)
         render.clearFog()
         render.setFog(self.fog)
         self.sky.clearFog()
         self.sky.setFog(self.fog)
         SZUtil.stopUnderwaterFog()
示例#5
0
    def load(self):
        self.notify.debug('load')
        DistributedMinigame.load(self)
        self.itText = OnscreenText.OnscreenText('itText', fg=(0.95, 0.95, 0.65, 1), scale=0.14, font=ToontownGlobals.getSignFont(), pos=(0.0, -0.8), wordwrap=15, mayChange=1)
        self.itText.hide()
        safezoneId = self.getSafezoneId()
        self.sky = loader.loadModel(TagGameGlobals.getSky(safezoneId))
        self.ground = loader.loadModel(TagGameGlobals.getGround(safezoneId))
        self.music = base.loadMusic('phase_4/audio/bgm/MG_toontag.ogg')
        self.tagSfx = base.loadSfx('phase_4/audio/sfx/MG_Tag_C.ogg')
        self.itPointer = loader.loadModel('phase_4/models/minigames/bboard-pointer')
        self.tracks = []
        self.initialPositions = TagGameGlobals.getDropPoints(safezoneId)
        self.IT = None

        if TagGameGlobals.isSnowHood(safezoneId):
            self.snow, self.snowRender = SZUtil.createSnow(self.ground)

        return
示例#6
0
 def startSky(self):
     if not self.sky.getTag('sky') == 'Regular':
         self.endSpookySky()
     SZUtil.startCloudSky(self)
示例#7
0
 def skyTrack(self, task):
     return SZUtil.cloudSkyTrack(task)
示例#8
0
 def startSky(self):
     if self.hasFog:
         SZUtil.startCloudSky(self, parent=self.dummyNode, effects=CompassEffect.PRot)
     else:
         SZUtil.startCloudSky(self, parent=render)
示例#9
0
 def startSky(self):
     SZUtil.startCloudSky(self)
     if base.cloudPlatformsEnabled:
         self.loader.startCloudPlatforms()
示例#10
0
 def __setUnderwaterFog(self):
     if base.wantFog:
         self.fog.setLinearRange(0.1, 100.0)
         render.setFog(self.fog)
         self.loader.hood.sky.setFog(self.fog)
         SZUtil.startUnderwaterFog()
示例#11
0
 def startSky(self):
     if self.hasFog:
         SZUtil.startCloudSky(self, parent=self.dummyNode, effects=CompassEffect.PRot)
     else:
         SZUtil.startCloudSky(self, parent=render)
示例#12
0
 def skyTrack(self, task):
     return SZUtil.cloudSkyTrack(task)
示例#13
0
 def setNoFog(self):
     if base.wantFog:
         render.clearFog()
         self.sky.clearFog()
         SZUtil.stopUnderwaterFog()
示例#14
0
 def startSky(self):
     if not self.sky.getTag('sky') == 'Regular':
         self.endSpookySky()
     SZUtil.startCloudSky(self)
 def startSky(self):
     if not self.sky.getTag('sky') == 'Regular':
         self.endSpookySky()
     SZUtil.startCloudSky(self)
     if base.cloudPlatformsEnabled:
         self.loader.startCloudPlatforms()
示例#16
0
 def setNoFog(self):
     if base.wantFog:
         render.clearFog()
         self.sky.clearFog()
         SZUtil.stopUnderwaterFog()
示例#17
0
 def __setUnderwaterFog(self):
     if base.wantFog:
         self.fog.setLinearRange(0.1, 100.0)
         render.setFog(self.fog)
         self.loader.hood.sky.setFog(self.fog)
         SZUtil.startUnderwaterFog()
示例#18
0
 def __setFaintFog(self):
     if base.wantFog:
         self.fog.setColor(Vec4(0.8, 0.8, 0.8, 1.0))
         self.fog.setLinearRange(0.0, 700.0)
         render.setFog(self.fog)
         SZUtil.stopUnderwaterFog()
示例#19
0
 def __setFaintFog(self):
     if base.wantFog:
         self.fog.setColor(Vec4(0.8, 0.8, 0.8, 1.0))
         self.fog.setLinearRange(0.0, 700.0)
         render.setFog(self.fog)
         SZUtil.stopUnderwaterFog()
 def startSky(self):
     SZUtil.startCloudSky(self)
     if base.cloudPlatformsEnabled:
         self.loader.startCloudPlatforms()