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