コード例 #1
0
 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
0
 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
コード例 #3
0
 def destroy(self):
     CogdoFlyingGatherableBase.destroy(self)
     CogdoMemo.destroy(self)
コード例 #4
0
 def hide(self):
     CogdoFlyingGatherableBase.hide(self)
     CogdoMemo.hide(self)
コード例 #5
0
 def show(self):
     CogdoFlyingGatherableBase.show(self)
     CogdoMemo.show(self)
コード例 #6
0
 def disable(self):
     CogdoFlyingGatherableBase.disable(self)
     CogdoMemo.disable(self)
コード例 #7
0
 def enable(self):
     CogdoFlyingGatherableBase.enable(self)
     CogdoMemo.enable(self)
コード例 #8
0
 def destroy(self):
     CogdoFlyingGatherableBase.destroy(self)
     CogdoMemo.destroy(self)
コード例 #9
0
 def hide(self):
     CogdoFlyingGatherableBase.hide(self)
     CogdoMemo.hide(self)
コード例 #10
0
 def show(self):
     CogdoFlyingGatherableBase.show(self)
     CogdoMemo.show(self)
コード例 #11
0
 def disable(self):
     CogdoFlyingGatherableBase.disable(self)
     CogdoMemo.disable(self)
コード例 #12
0
 def enable(self):
     CogdoFlyingGatherableBase.enable(self)
     CogdoMemo.enable(self)
コード例 #13
0
ファイル: CogdoMazeGame.py プロジェクト: perpi06/ttoffline
 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()
コード例 #14
0
 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()