2 # beatscape is the mother of all musical button games.
11 from keyhandler import *
17 print "Could not parse config.py. Maybe you forgot a semicolon? :-P"
27 print "w00t! going psyco!"
32 pygame.mixer.pre_init(44100, -16, True, 1)
34 opts = pygame.FULLSCREEN | pygame.DOUBLEBUF | pygame.HWSURFACE
35 pygame.display.set_mode((640,480), opts)
36 screen = pygame.display.get_surface()
38 for n in range(0,pygame.joystick.get_count()):
39 pygame.joystick.Joystick(n).init();
42 # For now, assume IIDX. We'll make this smarter later.
43 game.playgame(gametypes['IIDX'],song)
46 from mainmenu import *
47 from fileselect import *
54 if l[0] == 'mainmenu':
56 elif l[0] == 'fileselect':
64 # Flush events before switching to the next mode