Mercurial > hg > Game > Cerium
annotate Renderer/Test/boss1_action.h @ 859:3f45bd7b910a draft
linda connection init
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 17 Jun 2010 04:46:25 +0900 |
parents | 91e2c96be77b |
children |
rev | line source |
---|---|
539 | 1 #ifndef BOSS1_ACCTION_H |
2 #define BOSS1_ACCTION_H | |
3 | |
4 #include <math.h> | |
5 #include "SceneGraphRoot.h" | |
557
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
6 #include "Application.h" |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
7 #include "MainLoop.h" |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
8 |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
9 |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
10 class boss1_action : public Application { |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
11 |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
12 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
13 }; |
539 | 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 | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
34 null_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, |
539 | 35 SceneGraphPtr tree); |
36 | |
37 static void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
38 boss1_move_right(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); |
539 | 39 |
40 static void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
41 boss1_move_left(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); |
539 | 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 | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
54 player_move(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h); |
539 | 55 |
56 /* | |
57 static void | |
58 player_move_left(SceneGraphPtr node,int screen_2, int screen_h); | |
59 */ | |
60 | |
61 static void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
62 player_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, |
539 | 63 SceneGraphPtr tree); |
64 static void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
65 shot_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); |
539 | 66 |
67 static void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
68 shot_collision(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h, |
539 | 69 SceneGraphPtr tree); |
70 static void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
71 blast_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); |
539 | 72 |
73 #endif |