7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
9 // Copyright: See COPYING file that comes with this distribution
13 #ifndef SUPERTUX_SCENE_H
14 #define SUPERTUX_SCENE_H
24 #define FRAME_RATE 10 // 100 Frames per second (10ms)
28 extern int next_level;
29 extern int game_pause;
31 extern int score_multiplier;
33 extern bool counting_distros;
34 extern int distro_counter;
36 extern timer_type super_bkgd_timer;
37 extern float scroll_x;
39 extern std::vector<bouncy_distro_type> bouncy_distros;
40 extern std::vector<broken_brick_type> broken_bricks;
41 extern std::vector<bouncy_brick_type> bouncy_bricks;
42 extern std::vector<bad_guy_type> bad_guys;
43 extern std::vector<floating_score_type> floating_scores;
44 extern std::vector<upgrade_type> upgrades;
45 extern std::vector<bullet_type> bullets;
46 extern player_type tux;
47 extern texture_type img_box_full, img_box_empty, img_mints, img_coffee, img_super_bkgd, img_red_glow;
48 extern timer_type time_left;
49 extern double frame_ratio;
51 void add_score(float x, float y, int s);
52 void set_defaults(void);
53 void arrays_init(void);
54 void arrays_free(void);
56 void add_bouncy_distro(float x, float y);
57 void add_broken_brick(float x, float y);
58 void add_broken_brick_piece(float x, float y, float xm, float ym);
59 void add_bouncy_brick(float x, float y);
60 void add_bad_guy(float x, float y, int kind);
61 void add_upgrade(float x, float y, int dir, int kind);
62 void add_bullet(float x, float y, float xm, int dir);
64 #endif /*SUPERTUX_SCENE_H*/