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