def __init__(self): self.FRAMES_PER_SECOND = 20 # menus self.menuLogin = menuLogin(g.screenSurface) self.menuRegister = menuRegister(g.screenSurface) self.menuChar = menuCharacters(g.screenSurface) self.menuNewChar = menuNewCharacter(g.screenSurface) self.graphicsEngine = GraphicsEngine() self.tmr25 = 0 self.tmr1000 = 0 self.walkTimer = 0 self.clockTick = 0
def __init__(self): self.FRAMES_PER_SECOND = 20 #INIT SETTINGS if not pygame.mixer: print "Warning, sounds are disabled!" # menus self.menuLogin = menuLogin(g.screenSurface) self.menuRegister = menuRegister(g.screenSurface) self.menuChar = menuCharacters(g.screenSurface) self.menuNewChar = menuNewCharacter(g.screenSurface) self.graphicsEngine = GraphicsEngine() self.gameEditor = GameEditor(self.graphicsEngine) self.tmr25 = 0 self.tmr1000 = 0 self.walkTimer = 0 self.clockTick = 0