Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/ieshoot.cpp @ 205:efb1df3176f4
fix
author | gongo@localhost.localdomain |
---|---|
date | Tue, 27 Jan 2009 18:21:12 +0900 |
parents | 5c6c9667ac61 |
children | dee3b5092a70 |
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 #include "SGList.h" |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
3 |
201 | 4 static const float jiki_speed = 6.0f; |
5 static const float jiki_radius = 32.0f; | |
6 | |
7 static const float tama_speed = 10.0f; | |
8 static const float tama_radius = 16.0f; | |
9 | |
10 static const float boss_radius_x = 64.0f; | |
11 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
|
12 |
205 | 13 static const float iebosstama_speed = 15.0f; |
14 | |
15 static void | |
16 ieboss_collision(SceneGraphPtr node, int screen_w, int screen_h, | |
17 SceneGraphPtr tree); | |
18 static void | |
19 ieboss_collision_invincibil(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree); | |
20 static void ieboss_move(SceneGraphPtr node, int screen_w, int screen_h); | |
21 | |
22 static void iebosstama_move(SceneGraphPtr node, int screen_w, int screen_h); | |
23 | |
24 | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
25 static void |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
26 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
|
27 SceneGraphPtr tree) |
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 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
31 static void |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
32 ietama_collision(SceneGraphPtr node, int screen_w, int screen_h, |
201 | 33 SceneGraphPtr tree) |
199
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 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
37 static void |
201 | 38 ieboss_collision(SceneGraphPtr node, int screen_w, int screen_h, |
39 SceneGraphPtr tree) | |
40 { | |
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 | |
55 SceneGraphPtr iebosstama = sgroot->createSceneGraph(Earth); | |
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; | |
59 iebosstama->xyz[2] = 30000.0f; | |
60 node->addBrother(iebosstama); | |
61 | |
201 | 62 damage++; |
63 } | |
64 } | |
65 | |
66 if (damage > 10) { | |
67 node->remove(); | |
68 } | |
69 } | |
70 | |
71 static void | |
72 ieboss_move(SceneGraphPtr node, int screen_w, int screen_h) | |
73 { | |
74 /** | |
75 * TODO | |
76 * Boss が複数居た場合、これじゃ駄目 | |
77 */ | |
78 static int x_speed = 5.0f; | |
79 | |
80 node->xyz[0] += x_speed; | |
81 | |
82 if (node->xyz[0] - boss_radius_x < 0) { | |
83 x_speed = -x_speed; | |
84 node->xyz[0] = boss_radius_x; | |
85 } else if (node->xyz[0] + boss_radius_x > screen_w) { | |
86 x_speed = -x_speed; | |
87 node->xyz[0] = screen_w - boss_radius_x; | |
88 } | |
89 } | |
90 | |
91 static void | |
205 | 92 ieboss_collision_invincibil(SceneGraphPtr node, int screen_w, int screen_h, |
93 SceneGraphPtr tree) | |
94 { | |
95 static int frame = 0; | |
96 | |
97 frame++; | |
98 | |
99 node->flag_drawable ^= 1; | |
100 | |
101 if (frame > 60) { | |
102 frame = 0; | |
103 node->flag_drawable = 1; | |
104 node->set_move_collision(ieboss_move, ieboss_collision); | |
105 } | |
106 } | |
107 | |
108 static void | |
109 iebosstama_move(SceneGraphPtr node, int screen_w, int screen_h) | |
110 { | |
111 node->xyz[1] += iebosstama_speed; | |
112 | |
113 // 描画領域から抜けたら削除 | |
114 if (node->xyz[1] > screen_h) { | |
115 node->remove(); | |
116 } | |
117 } | |
118 | |
119 static void | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
120 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
|
121 { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
122 node->xyz[1] -= tama_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
123 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
124 // 描画領域から抜けたら削除 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
125 if (node->xyz[1] < 0) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
126 node->remove(); |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
127 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
128 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
129 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
130 static void |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
131 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
|
132 { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
133 Pad *pad = sgroot->getController(); |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
134 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
135 if (pad->left.isPush() |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
136 || pad->left.isHold()) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
137 node->xyz[0] -= jiki_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
138 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
139 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
|
140 node->xyz[0] = jiki_radius; |
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 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
143 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
144 if (pad->right.isPush() |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
145 || pad->right.isHold()) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
146 node->xyz[0] += jiki_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
147 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
148 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
|
149 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
|
150 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
151 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
152 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
153 if (pad->up.isPush() |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
154 || pad->up.isHold()) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
155 node->xyz[1] -= jiki_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
156 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
157 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
|
158 node->xyz[1] = jiki_radius; |
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 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
161 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
162 if (pad->down.isPush() |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
163 || pad->down.isHold()) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
164 node->xyz[1] += jiki_speed; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
165 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
166 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
|
167 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
|
168 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
169 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
170 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
171 if (pad->circle.isPush()) { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
172 SceneGraphPtr ietama = sgroot->createSceneGraph(IETAMA); |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
173 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
|
174 ietama->xyz[0] = node->xyz[0]; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
175 ietama->xyz[1] = node->xyz[1]; |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
176 node->addBrother(ietama); |
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 } |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
179 |
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 void |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
182 ieshoot_init(void) |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
183 { |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
184 SceneGraphPtr iejiki; |
201 | 185 SceneGraphPtr enemy; |
186 SceneGraphPtr back; | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
187 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
188 sgroot->createFromXMLfile("xml_file/ietama.xml"); |
201 | 189 sgroot->createFromXMLfile("xml_file/ieboss.xml"); |
203 | 190 sgroot->createFromXMLfile("xml_file/iejiki.xml"); |
205 | 191 sgroot->createFromXMLfile("xml_file/universe.xml"); |
203 | 192 |
193 back = sgroot->createSceneGraph(); | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
194 |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
195 iejiki = sgroot->createSceneGraph(IEJIKI); |
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
196 iejiki->set_move_collision(iejiki_move, iejiki_collision); |
203 | 197 back->addChild(iejiki); |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
198 |
201 | 199 enemy = sgroot->createSceneGraph(IEBOSS); |
200 enemy->set_move_collision(ieboss_move, ieboss_collision); | |
201 enemy->xyz[1] = boss_radius_y; | |
202 back->addChild(enemy); | |
203 | |
204 sgroot->setSceneData(back); | |
199
eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
205 } |