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
|
|
9 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
|
|
10
|
|
11 };
|
|
12
|
6
|
13
|
|
14 static const float player_speed = 10.0f;
|
|
15 static const float player_radius = 42.0f;
|
|
16
|
|
17 static const float boss_radius_x = 65.4f;
|
|
18 static const float boss_radius_y = 130.8f;
|
|
19 static const float first_boss1_speed = 10.0;
|
|
20 static const float first_boss1_depth = 500.0;
|
|
21 static const float return_boss1_depth_speed = 10.0;
|
|
22
|
|
23 static const float shot_speed = 30.0f;
|
|
24 static const float shot_radius = 42.4f;
|
|
25
|
2
|
26 extern void title_collision(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree);
|
|
27 extern void gameover_scene(void *sgroot_, int w, int h);
|
|
28 extern void create_object(void *sgroot_, int w, int h);
|