Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/Application/ieshoot.cc @ 539:7b4434d6f078
SGList isn't used
author | tkaito@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 21 Oct 2009 19:56:00 +0900 |
parents | d47c5d865970 |
children | e40b32f0f71e |
rev | line source |
---|---|
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
1 #include "SceneGraphRoot.h" |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
2 |
201 | 3 static const float jiki_speed = 6.0f; |
4 static const float jiki_radius = 32.0f; | |
5 | |
6 static const float tama_speed = 10.0f; | |
7 static const float tama_radius = 16.0f; | |
8 | |
9 static const float boss_radius_x = 64.0f; | |
10 static const float boss_radius_y = 128.0f; | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
11 |
205 | 12 static const float iebosstama_speed = 15.0f; |
13 | |
14 static void | |
15 ieboss_collision(SceneGraphPtr node, int screen_w, int screen_h, | |
16 SceneGraphPtr tree); | |
17 static void | |
18 ieboss_collision_invincibil(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree); | |
19 static void ieboss_move(SceneGraphPtr node, int screen_w, int screen_h); | |
20 | |
21 static void iebosstama_move(SceneGraphPtr node, int screen_w, int screen_h); | |
22 | |
23 | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
24 static void |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
25 iejiki_collision(SceneGraphPtr node, int screen_w, int screen_h, |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
26 SceneGraphPtr tree) |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
27 { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
28 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
29 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
30 static void |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
31 ietama_collision(SceneGraphPtr node, int screen_w, int screen_h, |
201 | 32 SceneGraphPtr tree) |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
33 { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
34 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
35 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
36 static void |
201 | 37 ieboss_collision(SceneGraphPtr node, int screen_w, int screen_h, |
38 SceneGraphPtr tree) | |
39 { | |
539 | 40 #if 0 |
201 | 41 SceneGraphIteratorPtr it = sgroot->getIterator(tree); |
42 static int damage = 0; | |
43 | |
202
3f4c6a75d7e0
fix SceneGraphIterator::hasNext(), next()
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
201
diff
changeset
|
44 for (; it->hasNext(IETAMA);) { |
3f4c6a75d7e0
fix SceneGraphIterator::hasNext(), next()
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
201
diff
changeset
|
45 it->next(IETAMA); |
201 | 46 SceneGraphPtr tama = it->get(); |
47 | |
48 if (node->xyz[0] - boss_radius_x < tama->xyz[0] + tama_radius | |
49 && node->xyz[0] + boss_radius_x > tama->xyz[0] - tama_radius | |
50 && node->xyz[1] + boss_radius_y > tama->xyz[1] - tama_radius) { | |
51 tama->remove(); | |
52 | |
205 | 53 node->set_move_collision(ieboss_move, ieboss_collision_invincibil); |
54 | |
539 | 55 SceneGraphPtr iebosstama = sgroot->createSceneGraph("Earth"); |
205 | 56 iebosstama->set_move_collision(iebosstama_move, ietama_collision); |
57 iebosstama->xyz[0] = node->xyz[0]; | |
58 iebosstama->xyz[1] = node->xyz[1] + boss_radius_y; | |
206 | 59 //iebosstama->xyz[2] = 50.0f; |
205 | 60 node->addBrother(iebosstama); |
61 | |
201 | 62 damage++; |
63 } | |
64 } | |
65 | |
66 if (damage > 10) { | |
67 node->remove(); | |
68 } | |
539 | 69 #endif |
201 | 70 } |
71 | |
72 static void | |
73 ieboss_move(SceneGraphPtr node, int screen_w, int screen_h) | |
74 { | |
75 /** | |
76 * TODO | |
77 * Boss が複数居た場合、これじゃ駄目 | |
78 */ | |
357
953811245b63
fix spe/DrawSpan.{cpp, h} spe/DrawSpanRenew.cpp
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
206
diff
changeset
|
79 static float x_speed = 5.0f; |
953811245b63
fix spe/DrawSpan.{cpp, h} spe/DrawSpanRenew.cpp
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
206
diff
changeset
|
80 static float z_speed = 5.0f; |
201 | 81 |
82 node->xyz[0] += x_speed; | |
83 | |
84 if (node->xyz[0] - boss_radius_x < 0) { | |
85 x_speed = -x_speed; | |
86 node->xyz[0] = boss_radius_x; | |
87 } else if (node->xyz[0] + boss_radius_x > screen_w) { | |
88 x_speed = -x_speed; | |
89 node->xyz[0] = screen_w - boss_radius_x; | |
90 } | |
206 | 91 |
92 //node->xyz[2] += z_speed; | |
93 if (node->xyz[2] >= 100.0f) { | |
94 node->xyz[2] = 99.99f; | |
95 z_speed = -z_speed; | |
96 } else if (node->xyz[2] <= -100.0f) { | |
97 node->xyz[2] = -99.99f; | |
98 z_speed = -z_speed; | |
99 } | |
201 | 100 } |
539 | 101 #if 0 |
201 | 102 static void |
205 | 103 ieboss_collision_invincibil(SceneGraphPtr node, int screen_w, int screen_h, |
104 SceneGraphPtr tree) | |
105 { | |
106 static int frame = 0; | |
107 | |
108 frame++; | |
109 | |
110 node->flag_drawable ^= 1; | |
111 | |
112 if (frame > 60) { | |
113 frame = 0; | |
114 node->flag_drawable = 1; | |
115 node->set_move_collision(ieboss_move, ieboss_collision); | |
116 } | |
117 } | |
118 | |
119 static void | |
120 iebosstama_move(SceneGraphPtr node, int screen_w, int screen_h) | |
121 { | |
122 node->xyz[1] += iebosstama_speed; | |
123 | |
124 // 描画領域から抜けたら削除 | |
125 if (node->xyz[1] > screen_h) { | |
126 node->remove(); | |
127 } | |
128 } | |
539 | 129 #endif |
205 | 130 |
131 static void | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
132 ietama_move(SceneGraphPtr node, int screen_w, int screen_h) |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
133 { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
134 node->xyz[1] -= tama_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
135 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
136 // 描画領域から抜けたら削除 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
137 if (node->xyz[1] < 0) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
138 node->remove(); |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
139 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
140 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
141 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
142 static void |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
143 iejiki_move(SceneGraphPtr node, int screen_w, int screen_h) |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
144 { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
145 Pad *pad = sgroot->getController(); |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
146 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
147 if (pad->left.isPush() |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
148 || pad->left.isHold()) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
149 node->xyz[0] -= jiki_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
150 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
151 if (node->xyz[0] - jiki_radius< 0) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
152 node->xyz[0] = jiki_radius; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
153 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
154 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
155 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
156 if (pad->right.isPush() |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
157 || pad->right.isHold()) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
158 node->xyz[0] += jiki_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
159 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
160 if (node->xyz[0] + jiki_radius > screen_w) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
161 node->xyz[0] = screen_w - jiki_radius; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
162 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
163 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
164 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
165 if (pad->up.isPush() |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
166 || pad->up.isHold()) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
167 node->xyz[1] -= jiki_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
168 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
169 if (node->xyz[1] - jiki_radius < 0) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
170 node->xyz[1] = jiki_radius; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
171 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
172 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
173 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
174 if (pad->down.isPush() |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
175 || pad->down.isHold()) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
176 node->xyz[1] += jiki_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
177 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
178 if (node->xyz[1] + jiki_radius > screen_h) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
179 node->xyz[1] = screen_h - jiki_radius; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
180 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
181 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
182 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
183 if (pad->circle.isPush()) { |
539 | 184 SceneGraphPtr ietama = sgroot->createSceneGraph("IETAMA"); |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
185 ietama->set_move_collision(ietama_move, ietama_collision); |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
186 ietama->xyz[0] = node->xyz[0]; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
187 ietama->xyz[1] = node->xyz[1]; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
188 node->addBrother(ietama); |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
189 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
190 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
191 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
192 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
193 void |
397
a4f690f44842
delete manager (in kernel/ppe/TaskManager.h)
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
357
diff
changeset
|
194 ieshoot_init(TaskManager *manager) |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
195 { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
196 SceneGraphPtr iejiki; |
201 | 197 SceneGraphPtr enemy; |
198 SceneGraphPtr back; | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
199 |
539 | 200 sgroot->createFromXMLmemory(manager, "xml_file/ietama.xml"); |
201 sgroot->createFromXMLmemory(manager, "xml_file/ieboss.xml"); | |
202 sgroot->createFromXMLmemory(manager, "xml_file/iejiki.xml"); | |
203 sgroot->createFromXMLmemory(manager, "xml_file/universe.xml"); | |
203 | 204 |
205 back = sgroot->createSceneGraph(); | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
206 |
539 | 207 iejiki = sgroot->createSceneGraph("IEJIKI"); |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
208 iejiki->set_move_collision(iejiki_move, iejiki_collision); |
206 | 209 iejiki->xyz[2] = 20; |
203 | 210 back->addChild(iejiki); |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
211 |
539 | 212 enemy = sgroot->createSceneGraph("IEBOSS"); |
201 | 213 enemy->set_move_collision(ieboss_move, ieboss_collision); |
214 enemy->xyz[1] = boss_radius_y; | |
215 back->addChild(enemy); | |
216 | |
217 sgroot->setSceneData(back); | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
218 } |