2
|
1 #include <math.h>
|
|
2 #include <stdlib.h>
|
|
3 #include "SceneGraph.h"
|
|
4 #include "Application.h"
|
|
5 #include "MainLoop.h"
|
|
6
|
|
7 class dandy : public Application {
|
|
8 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
|
|
9 };
|
|
10
|
6
|
11 static const float player_speed = 10.0f;
|
|
12 static const float player_radius = 42.0f;
|
|
13
|
|
14 static const float boss_radius_x = 65.4f;
|
|
15 static const float boss_radius_y = 130.8f;
|
|
16 static const float first_boss1_speed = 10.0;
|
|
17 static const float first_boss1_depth = 500.0;
|
|
18 static const float return_boss1_depth_speed = 10.0;
|
|
19
|
|
20 static const float shot_speed = 30.0f;
|
|
21 static const float shot_radius = 42.4f;
|
|
22
|
2
|
23 extern void title_collision(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree);
|
|
24 extern void gameover_scene(void *sgroot_, int w, int h);
|
8
|
25 extern void create_stage(void *sgroot_, int w, int h);
|