Initial commit from version 1e-99
[beatscape.git] / config.py
1 # Configuration. Edit this file by hand, but beware, it is a python file
2 # and the game won't start if it does not parse correctly.
3
4 # These are modules necessary for certain constants used here
5 from pygame.locals import *
6 from constants import *
7
8 # Main config, for global options
9 librarypath = "/media/audio/BMS/library"
10 keytimeout = 250        # milliseconds
11
12 # Game config, for various game types
13
14 bm = {
15         'format': 'IIDXFormat',
16         'keymap':
17                 {K_SPACE:0, K_z:1, K_s:2, K_x:3, K_d:4, K_c:5, K_f:6, K_v:7},
18         'jsbuttonmap':
19                 { 3: 1, 6: 2, 2: 3, 7: 4, 1: 5, 4: 6 },
20         'jsaxismap':
21                 { (0,-1.0): 7, (0,0.0): 7, (1,-1.0): 0, (1,0.0): 0, (1,1.0): 0 },
22         'timings':
23                 #[(15,JUDGE_FGREAT), (35,JUDGE_GREAT), (50,JUDGE_GOOD), (80,JUDGE_BAD), (100,JUDGE_POOR)]
24                 [(20,JUDGE_FGREAT), (42,JUDGE_GREAT), (70,JUDGE_GOOD), (250,JUDGE_BAD), (1000,JUDGE_POOR)]
25 }
26
27 popn = {
28         'format': 'PopnFormat',
29 }
30
31 # game type mapping
32 gametypes = {
33         'beatmania': bm,        # For now
34         'IIDX': bm,
35         'Popn': popn
36 }