Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/boss1_action.h @ 630:71863d91959b
modify Makefile for linux
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Nov 2009 12:03:28 +0900 |
parents | ec72b601b71f |
children | d0b8860c17f8 |
rev | line source |
---|---|
507 | 1 #ifndef BOSS1_ACCTION_H |
2 #define BOSS1_ACCTION_H | |
3 | |
4 #include <math.h> | |
5 #include "SceneGraphRoot.h" | |
557
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
6 #include "Application.h" |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
7 #include "MainLoop.h" |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
8 |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
9 |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
10 class boss1_action : public Application { |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
11 |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
12 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
13 |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
14 }; |
507 | 15 |
16 static const float player_speed = 10.0f; | |
17 static const float player_radius = 42.0f; | |
18 | |
19 static const float boss_radius_x = 65.4f; | |
20 static const float boss_radius_y = 130.8f; | |
21 static const float first_boss1_speed = 10.0; | |
22 static const float first_boss1_depth = 500.0; | |
23 static const float return_boss1_depth_speed = 10.0; | |
24 | |
25 static const float shot_speed = 30.0f; | |
26 static const float shot_radius = 42.4f; | |
27 | |
28 | |
29 /* | |
30 static void | |
31 null_move(SceneGraphPtr node, int screen_w, int screen_h); | |
32 */ | |
33 | |
34 static void | |
35 null_collision(SceneGraphPtr node, int screen_w, int screen_h, | |
36 SceneGraphPtr tree); | |
37 | |
38 static void | |
39 boss1_move_right(SceneGraphPtr node, int screen_w, int screen_h); | |
40 | |
41 static void | |
42 boss1_move_left(SceneGraphPtr node, int screen_w, int screen_h); | |
43 | |
44 /* | |
45 static void | |
46 boss1_move_return(SceneGraphPtr node, int screen_w, int screen_h); | |
47 */ | |
48 | |
49 /* | |
50 static void | |
51 boss1_first_move(SceneGraphPtr node, int screen_w, int screen_h); | |
52 */ | |
53 | |
54 static void | |
55 player_move(SceneGraphPtr node,int screen_2, int screen_h); | |
56 | |
57 /* | |
58 static void | |
59 player_move_left(SceneGraphPtr node,int screen_2, int screen_h); | |
60 */ | |
61 | |
62 static void | |
63 player_collision(SceneGraphPtr node, int screen_w, int screen_h, | |
64 SceneGraphPtr tree); | |
65 static void | |
66 shot_move(SceneGraphPtr node, int screen_w, int screen_h); | |
67 | |
68 static void | |
69 shot_collision(SceneGraphPtr node, int screen_2, int screen_h, | |
70 SceneGraphPtr tree); | |
71 static void | |
72 blast_move(SceneGraphPtr node, int screen_w, int screen_h); | |
73 | |
74 #endif |