0
|
1 #ifndef BOSS1_ACCTION_H
|
|
2 #define BOSS1_ACCTION_H
|
|
3
|
|
4 #include <math.h>
|
|
5 #include "SceneGraphRoot.h"
|
|
6 #include "Application.h"
|
|
7 #include "MainLoop.h"
|
|
8
|
|
9
|
|
10 class boss1_action : public Application {
|
|
11
|
|
12 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
|
|
13 };
|
|
14
|
|
15 static const float player_speed = 10.0f;
|
|
16 static const float player_radius = 42.0f;
|
|
17
|
|
18 static const float boss_radius_x = 65.4f;
|
|
19 static const float boss_radius_y = 130.8f;
|
|
20 static const float first_boss1_speed = 10.0;
|
|
21 static const float first_boss1_depth = 500.0;
|
|
22 static const float return_boss1_depth_speed = 10.0;
|
|
23
|
|
24 static const float shot_speed = 30.0f;
|
|
25 static const float shot_radius = 42.4f;
|
|
26
|
|
27
|
|
28 /*
|
|
29 static void
|
|
30 null_move(SceneGraphPtr node, int screen_w, int screen_h);
|
|
31 */
|
|
32
|
|
33 static void
|
|
34 null_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
|
|
35 SceneGraphPtr tree);
|
|
36
|
|
37 static void
|
|
38 boss1_move_right(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
|
|
39
|
|
40 static void
|
|
41 boss1_move_left(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
|
|
42
|
|
43 /*
|
|
44 static void
|
|
45 boss1_move_return(SceneGraphPtr node, int screen_w, int screen_h);
|
|
46 */
|
|
47
|
|
48 /*
|
|
49 static void
|
|
50 boss1_first_move(SceneGraphPtr node, int screen_w, int screen_h);
|
|
51 */
|
|
52
|
|
53 static void
|
|
54 player_move(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h);
|
|
55
|
|
56 /*
|
|
57 static void
|
|
58 player_move_left(SceneGraphPtr node,int screen_2, int screen_h);
|
|
59 */
|
|
60
|
|
61 static void
|
|
62 player_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
|
|
63 SceneGraphPtr tree);
|
|
64 static void
|
|
65 shot_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
|
|
66
|
|
67 static void
|
|
68 shot_collision(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h,
|
|
69 SceneGraphPtr tree);
|
|
70 static void
|
|
71 blast_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
|
|
72
|
|
73 #endif
|