• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python DistCogdoLevelGame.DistCogdoLevelGame类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中toontown.cogdominium.DistCogdoLevelGame.DistCogdoLevelGame的典型用法代码示例。如果您正苦于以下问题:Python DistCogdoLevelGame类的具体用法?Python DistCogdoLevelGame怎么用?Python DistCogdoLevelGame使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了DistCogdoLevelGame类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: privGotSpec

 def privGotSpec(self, levelSpec):
     DistCogdoLevelGame.privGotSpec(self, levelSpec)
     levelMgr = self.getEntity(LevelConstants.LevelMgrEntId)
     self.endVault = levelMgr.geom
     self.endVault.reparentTo(self.geomRoot)
     self.endVault.findAllMatches('**/MagnetArms').detach()
     self.endVault.findAllMatches('**/Safes').detach()
     self.endVault.findAllMatches('**/MagnetControlsAll').detach()
     cn = self.endVault.find('**/wallsCollision').node()
     cn.setIntoCollideMask(OTPGlobals.WallBitmask | ToontownGlobals.PieBitmask | PM.BitMask32.lowerOn(3) << 21)
     walls = self.endVault.find('**/RollUpFrameCillison')
     walls.detachNode()
     self.evWalls = self.replaceCollisionPolysWithPlanes(walls)
     self.evWalls.reparentTo(self.endVault)
     self.evWalls.stash()
     floor = self.endVault.find('**/EndVaultFloorCollision')
     floor.detachNode()
     self.evFloor = self.replaceCollisionPolysWithPlanes(floor)
     self.evFloor.reparentTo(self.endVault)
     self.evFloor.setName('floor')
     plane = PM.CollisionPlane(PM.Plane(PM.Vec3(0, 0, 1), PM.Point3(0, 0, -50)))
     planeNode = PM.CollisionNode('dropPlane')
     planeNode.addSolid(plane)
     planeNode.setCollideMask(ToontownGlobals.PieBitmask)
     self.geomRoot.attachNewNode(planeNode)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:25,代码来源:DistCogdoCraneGame.py


示例2: exitLoaded

 def exitLoaded(self):
     self.fnp.removeNode()
     self.physicsMgr.clearLinearForces()
     self.geomRoot.removeNode()
     self._gravityForce = None
     self._gravityForceNode = None
     DistCogdoLevelGame.exitLoaded(self)
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:7,代码来源:DistCogdoCraneGame.py


示例3: enterGame

 def enterGame(self):
     DistCogdoLevelGame.enterGame(self)
     self._physicsTask = taskMgr.add(self._doPhysics, self.uniqueName('physics'), priority=25)
     self.evWalls.stash()
     self._startTimer()
     if __dev__:
         self.accept(self._durationChangedEvent, self._startTimer)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:7,代码来源:DistCogdoCraneGame.py


示例4: enterLoaded

 def enterLoaded(self):
     DistCogdoLevelGame.enterLoaded(self)
     self.lightning = loader.loadModel('phase_10/models/cogHQ/CBLightning.bam')
     self.magnet = loader.loadModel('phase_10/models/cogHQ/CBMagnet.bam')
     self.craneArm = loader.loadModel('phase_10/models/cogHQ/CBCraneArm.bam')
     self.controls = loader.loadModel('phase_10/models/cogHQ/CBCraneControls.bam')
     self.stick = loader.loadModel('phase_10/models/cogHQ/CBCraneStick.bam')
     self.cableTex = self.craneArm.findTexture('MagnetControl')
     self.moneyBag = loader.loadModel('phase_10/models/cashbotHQ/MoneyBag')
     self.geomRoot = PM.NodePath('geom')
     self.sceneRoot = self.geomRoot.attachNewNode('sceneRoot')
     self.sceneRoot.setPos(35.84, -115.46, 6.46)
     self.physicsMgr = PM.PhysicsManager()
     integrator = PM.LinearEulerIntegrator()
     self.physicsMgr.attachLinearIntegrator(integrator)
     fn = PM.ForceNode('gravity')
     self.fnp = self.geomRoot.attachNewNode(fn)
     gravity = PM.LinearVectorForce(0, 0, GameConsts.Settings.Gravity.get())
     fn.addForce(gravity)
     self.physicsMgr.addLinearForce(gravity)
     self._gravityForce = gravity
     self._gravityForceNode = fn
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:22,代码来源:DistCogdoCraneGame.py


示例5: disable

 def disable(self):
     self.timer.destroy()
     self.timer = None
     DistCogdoLevelGame.disable(self)
     return
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:5,代码来源:DistCogdoCraneGame.py


示例6: announceGenerate

 def announceGenerate(self):
     DistCogdoLevelGame.announceGenerate(self)
     self.timer = ToontownTimer.ToontownTimer()
     self.timer.stash()
     if __dev__:
         self._durationChangedEvent = self.uniqueName('durationChanged')
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:6,代码来源:DistCogdoCraneGame.py


示例7: __init__

 def __init__(self, cr):
     DistCogdoLevelGame.__init__(self, cr)
     self.cranes = {}
     self.moneyBags = {}
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:4,代码来源:DistCogdoCraneGame.py


示例8: enterFinish

 def enterFinish(self):
     DistCogdoLevelGame.enterFinish(self)
     timeLeft = 10 - (globalClock.getRealTime() - self.getFinishTime())
     self.timer.setTime(timeLeft)
     self.timer.countdown(timeLeft, self.timerExpired)
     self.timer.unstash()
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:6,代码来源:DistCogdoCraneGame.py


示例9: exitGame

 def exitGame(self):
     if __dev__:
         self.ignore(self._durationChangedEvent)
     DistCogdoLevelGame.exitGame(self)
     self._physicsTask.remove()
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:5,代码来源:DistCogdoCraneGame.py


示例10: enterVisible

 def enterVisible(self):
     DistCogdoLevelGame.enterVisible(self)
     self.geomRoot.reparentTo(render)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:3,代码来源:DistCogdoCraneGame.py


示例11: enterGame

 def enterGame(self):
     DistCogdoLevelGame.enterGame(self)
     timeLeft = Consts.GameDuration.get() - (globalClock.getRealTime() - self.getStartTime())
     self.timer.setTime(timeLeft)
     self.timer.countdown(timeLeft, self.timerExpired)
     self.timer.unstash()
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:6,代码来源:DistCogdoBoardroomGame.py


示例12: announceGenerate

 def announceGenerate(self):
     DistCogdoLevelGame.announceGenerate(self)
     self.timer = ToontownTimer.ToontownTimer()
     self.timer.setScale(Consts.Settings.TimerScale.get())
     self.timer.stash()
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:5,代码来源:DistCogdoBoardroomGame.py


示例13: __init__

 def __init__(self, cr):
     DistCogdoLevelGame.__init__(self, cr)
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:2,代码来源:DistCogdoBoardroomGame.py


示例14: announceGenerate

 def announceGenerate(self):
     DistCogdoLevelGame.announceGenerate(self)
     self.timer = ToontownTimer.ToontownTimer()
     self.timer.stash()
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:4,代码来源:DistCogdoCraneGame.py


示例15: exitGame

 def exitGame(self):
     DistCogdoLevelGame.exitGame(self)
     self._physicsTask.remove()
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:3,代码来源:DistCogdoCraneGame.py


示例16: enterGame

 def enterGame(self):
     DistCogdoLevelGame.enterGame(self)
     self._physicsTask = taskMgr.add(self._doPhysics, self.uniqueName('physics'), priority=25)
     self.evWalls.stash()
     self._startTimer()
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:5,代码来源:DistCogdoCraneGame.py



注:本文中的toontown.cogdominium.DistCogdoLevelGame.DistCogdoLevelGame类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python coghq.CogDisguiseGlobals类代码示例发布时间:2022-05-27
下一篇:
Python TTWhiteList.TTWhiteList类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap