fix stupid bug in camera code, tweak camera settings a bit more
[supertux.git] / data / camera.cfg
1 (camera-config
2   ; Note that most coordinates are given as fractions of SCREEN_WIDTH
3   ; and SCREEN_HEIGHT, so .5 in -x and -y means in the middle of the screen
4   ; 0.3 in x and .66 in y means in left 1/3rd of the screen at the upper 2/3rd
5   ; (which is the lower 1/3rd) of the screen...
6
7   ; 0 = No, 1 = Fix, 2 = Mario/Yoshi, 3 = Kirby, 4 = inverse rubberband
8   (xmode 2)
9   ; 0 = No, 1 = Fix, 2 = Mario/Yoshi, 3 = Kirby, 4 = inverse rubberband
10   (ymode 2)
11   
12   ; Specify the size of the midle rect of kirby camera mode
13   (kirby-rectsize-x 0.2)
14   (kirby-rectsize-y 0.34)
15
16   ; Specify where to keep tux in fixed camera mode
17   (target-x 0.5)
18   (target-y 0.66)
19
20   ; Speed is limited to these for the Yoshi cam
21   (max-speed-x 80)
22   (max-speed-y 140)
23
24   ; Used in YI camera to adjust to max_speed relatively to player speed
25   (dynamic-max-speed-x 1.0)
26
27   ; Make sure tux never leaves the clamp area on screen (works for all
28   ; cameras, can be disabled by setting it to 0)
29   ;(clamp-x .1666)
30   ;(clamp-y .1666)
31   (clamp-x 0)
32   (clamp-y 0)
33
34   ; Keep tux here when he runs in YI mode
35   (edge-x 0.28)
36   ; If YI camera is in no-scrollmode it will go to scrollmode again if tux
37   ; reaches this part of the screen, make sure this value is bigger than edge-x
38   ; to avoid sudden camera stops
39   (sensitive-x 0.35)
40
41   (dirchange-time 0.2)
42 )
43