当前位置: 首页>>代码示例>>Python>>正文


Python CogdoGameGatherable.CogdoMemo类代码示例

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


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

示例1: __init__

 def __init__(self, serialNum, model):
     CogdoMemo.__init__(
         self,
         serialNum,
         triggerRadius=Globals.Gameplay.MemoCollisionRadius,
         spinRate=Globals.Gameplay.MemoSpinRate,
         model=model,
     )
     CogdoFlyingGatherableBase.__init__(self, Globals.Level.GatherableTypes.Memo)
     self.floatTimer = 0.0
     self.floatSpeed = 1.0
     self.floatDuration = 2.0
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:12,代码来源:CogdoFlyingObjects.py

示例2: destroy

 def destroy(self):
     CogdoFlyingGatherableBase.destroy(self)
     CogdoMemo.destroy(self)
开发者ID:Teku16,项目名称:ToontownPlanet,代码行数:3,代码来源:CogdoFlyingObjects.py

示例3: hide

 def hide(self):
     CogdoFlyingGatherableBase.hide(self)
     CogdoMemo.hide(self)
开发者ID:Teku16,项目名称:ToontownPlanet,代码行数:3,代码来源:CogdoFlyingObjects.py

示例4: show

 def show(self):
     CogdoFlyingGatherableBase.show(self)
     CogdoMemo.show(self)
开发者ID:Teku16,项目名称:ToontownPlanet,代码行数:3,代码来源:CogdoFlyingObjects.py

示例5: disable

 def disable(self):
     CogdoFlyingGatherableBase.disable(self)
     CogdoMemo.disable(self)
开发者ID:Teku16,项目名称:ToontownPlanet,代码行数:3,代码来源:CogdoFlyingObjects.py

示例6: enable

 def enable(self):
     CogdoFlyingGatherableBase.enable(self)
     CogdoMemo.enable(self)
开发者ID:Teku16,项目名称:ToontownPlanet,代码行数:3,代码来源:CogdoFlyingObjects.py

示例7: generatePickup

 def generatePickup(self, x, y):
     pickup = CogdoMemo(len(self.pickups), pitch=-90)
     self.pickups.append(pickup)
     pickup.reparentTo(self.maze.maze)
     pickup.setPos(x, y, 1)
     pickup.enable()
开发者ID:BmanGames,项目名称:Toontown-Level-Editor,代码行数:6,代码来源:CogdoMazeGame.py


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