b2a242111d570328c6757677de9bbc2fd1ac4d96
[supertux.git] / src / scene.cpp
1 //
2 // C Implementation: scene
3 //
4 // Description: 
5 //
6 //
7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12
13 #include <stdlib.h>
14 #include "scene.h"
15
16 int score;
17 int distros;
18 int level;
19 int next_level;
20 int game_pause;
21 bool quit;
22 int score_multiplier;
23 int endpos;
24 bool counting_distros;
25 int distro_counter;
26 timer_type  super_bkgd_timer;
27 float scroll_x;
28 unsigned int global_frame_counter;
29
30 Player tux;
31 texture_type img_box_full;
32 texture_type img_box_empty;
33 texture_type img_mints;
34 texture_type img_coffee;
35 texture_type img_super_bkgd;
36 texture_type img_red_glow;
37 timer_type time_left;
38 double frame_ratio;
39
40 void set_defaults(void)
41 {
42   // Set defaults: 
43   scroll_x = 0;
44
45   score_multiplier = 1;
46   timer_init(&super_bkgd_timer, true);
47
48   counting_distros = false;
49   distro_counter = 0;
50
51   endpos = 0;
52
53   /* set current song/music */
54   set_current_music(LEVEL_MUSIC);
55 }
56
57 // EOF //
58