本文整理汇总了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
示例2: destroy
def destroy(self):
CogdoFlyingGatherableBase.destroy(self)
CogdoMemo.destroy(self)
示例3: hide
def hide(self):
CogdoFlyingGatherableBase.hide(self)
CogdoMemo.hide(self)
示例4: show
def show(self):
CogdoFlyingGatherableBase.show(self)
CogdoMemo.show(self)
示例5: disable
def disable(self):
CogdoFlyingGatherableBase.disable(self)
CogdoMemo.disable(self)
示例6: enable
def enable(self):
CogdoFlyingGatherableBase.enable(self)
CogdoMemo.enable(self)
示例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()