c9c506a2b0c92dca77c0e4912d21a041fdd63af3
[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 int score_multiplier;
22 int endpos;
23 bool counting_distros;
24 int distro_counter;
25 timer_type  super_bkgd_timer;
26 float scroll_x;
27 unsigned int global_frame_counter;
28
29 Player tux;
30 texture_type img_box_full;
31 texture_type img_box_empty;
32 texture_type img_mints;
33 texture_type img_coffee;
34 texture_type img_super_bkgd;
35 texture_type img_red_glow;
36 timer_type time_left;
37 double frame_ratio;
38
39 void set_defaults(void)
40 {
41   // Set defaults: 
42   scroll_x = 0;
43
44   score_multiplier = 1;
45   timer_init(&super_bkgd_timer, true);
46
47   counting_distros = false;
48   distro_counter = 0;
49
50   endpos = 0;
51
52   /* set current song/music */
53   set_current_music(LEVEL_MUSIC);
54 }
55
56 // EOF //
57