Beispiel #1
0
 def __init__(self):
     super(Game, self).__init__()
     #setup path in a new namespace
     self.paths = Paths()
     print( '%s \t Set Up Paths') %self
     #read variables into this class another way to do this
     self.read_conf(PathToString(os.path.join(self.paths.config, 'config.txt')))
     print( '%s \t Loaded Config File') %self
     self.timers = Timers(self.animstep)
     SharedObjects.setAnimationStep(self.animstep)
     SharedObjects.setScale(self.scale)
     SharedObjects.setDeltaTime(self.deltatime)
     print( '%s \t Set some variables') %self
     self.display = self.init_display(self.res, self.fullscreen)
     print( '%s \t Initialised Display') %self
     #EventManager
     self.eventmanager = EventManager()
     #RenderManager
     self.rendermanager = RenderManager()
     print( '%s \t Setup Event and Render Managers') %self