Exemple #1
0
 def __init__(self):
   Module.__init__(self)
   cpp.IO.__init__(self, game().graphics.d3d)
   
   # work queue
   self.queue = Queue.Queue()
   
   # thread
   self.thread = threading.Thread(target=self.work)
   self.thread.setDaemon(True)
   self.thread.start()
   
   # cache
   self.defaulttex = self._LoadTexture(j(TEXPATH, "Default.png"))
   self.textures   = {}
   self.meshes     = {}
   self.args = ()
Exemple #2
0
 def __init__(self):
   Module.__init__(self)
   self.physics = eRacer.PhysicsLayer()
   self.physics.InitSDK()
   self.physics.InitScene()
   self.physics.FinalizeSDK()
Exemple #3
0
 def __init__(self):
   Module.__init__(self)
   self.sound = cpp.Sound()
   self.sound.Init()