Go to the source code of this file.
◆ UnkStarSpiritsEnergy
struct UnkStarSpiritsEnergy |
Data Fields |
u16 |
unk_00 |
|
char |
unk_02 |
|
u8 |
unk_03 |
|
◆ star_spirits_energy_init()
◆ star_spirits_energy_update()
Definition at line 159 of file star_spirits_energy.c.
159 {
161 s32 unk_04 = data->
unk_04;
162 s32 unk_18;
163 s32 i;
164 f32 var_float_1;
165 f32 var_float_2;
166 f32 var_float_3;
167 u8 var_int_1;
168 u8 var_int_2;
169 u8 var_int_3;
170
172 effect->
flags &= ~FX_INSTANCE_FLAG_DISMISS;
174 }
175
176 if (data->
unk_14 < 1000) {
178 }
179
181
184 return;
185 }
186
188
191 }
192
194 case 0:
195 data->
unk_50[0] = (unk_18 & 3) * 30 + 200;
203 if (unk_04 == 3) {
205 } else {
207 }
208 }
209 }
210 break;
211 case 100:
213 case 0:
216 break;
217 case 1:
220 break;
221 default:
224 break;
225 }
229 } else {
232 }
234 data->
unk_50[1] = var_int_1;
235 data->
unk_50[2] = var_int_1;
236 data->
unk_40[1] = var_float_1;
237 data->
unk_40[2] = var_float_1 + 0.6;
239 break;
240 case 1:
242 case 0:
245 break;
246 case 1:
249 break;
250 default:
253 break;
254 }
257
259 data->
unk_50[1] = var_int_2;
260 data->
unk_50[2] = var_int_2;
261 data->
unk_40[1] = var_float_2;
262 data->
unk_40[2] = var_float_2 * 1.2 + 4.0;
267 }
268 break;
269 case 4:
270 switch (29 - data->
unk_74) {
271 case 0:
274 break;
275 case 1:
278 break;
279 default:
282 break;
283 }
287 data->
unk_50[1] = var_int_3;
289 data->
unk_40[1] = var_float_3;
295 }
296 break;
297 case 5:
298 default:
309 break;
310 }
311
312 for (i = 0; i < 4; i++) {
313 if (data->
unk_50[i] > 255) {
315 }
316 if (data->
unk_50[i] < 0) {
318 }
319 if (data->
unk_40[i] < 0.0f) {
321 }
322 }
323}
struct StarSpiritsEnergyFXData * starSpiritsEnergy
@ FX_INSTANCE_FLAG_DISMISS
UnkStarSpiritsEnergy D_E0122C20[]
UnkStarSpiritsEnergy D_E0122BA8[]
Referenced by star_spirits_energy_main().
◆ star_spirits_energy_render()
Definition at line 325 of file star_spirits_energy.c.
325 {
328
331 renderTask.
dist = 10;
333
336}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void star_spirits_energy_appendGfx(void *effect)
void(* appendGfx)(void *)
Referenced by star_spirits_energy_main().
◆ star_spirits_energy_appendGfx()
void star_spirits_energy_appendGfx |
( |
void * | effect | ) |
|
Definition at line 338 of file star_spirits_energy.c.
338 {
340 s32 unk_04 = data->
unk_04;
341 s32 alpha;
343 s32 i;
344
347
351
353 G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
356
357 for (i = 0; i < 4; i++) {
358 if (unk_04 != 1 || i != 2) {
362
364 G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW);
368 }
369 }
370 }
371
373
374 if (unk_04 == 2 || unk_04 == 3) {
375 alpha = 0;
376
378 alpha = 255 - (data->
unk_74 - 2) * 30;
379 }
380
382 alpha = 255 - data->
unk_74 * 30;
383 }
384
385 if (alpha > 0) {
386 gDPSetPrimColor(
gMainGfxPos++, 0, 0, 208, 208, 208, alpha);
388 }
389 }
390
392}
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by star_spirits_energy_render().
◆ star_spirits_energy_main()
EffectInstance * star_spirits_energy_main |
( |
s32 | arg0, |
|
|
f32 | arg1, |
|
|
f32 | arg2, |
|
|
f32 | arg3, |
|
|
f32 | arg4, |
|
|
s32 | arg5 ) |
Definition at line 95 of file star_spirits_energy.c.
95 {
99 s32 numParts = 1;
100
106 bp.
effectID = EFFECT_STAR_SPIRITS_ENERGY;
107
112
113 data->
unk_00 = arg0 & 0xFF00;
114 arg0 &= 0xFF;
117 if (arg5 <= 0) {
119 } else {
121 }
146 if (arg0 == 3) {
148 } else {
150 }
152
153 return effect;
154}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void star_spirits_energy_init(EffectInstance *effect)
void star_spirits_energy_render(EffectInstance *effect)
void star_spirits_energy_update(EffectInstance *effect)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
◆ D_09004E00_412090
◆ D_09005168_4123F8
◆ D_090051C8_412458
◆ D_09005370_412600
◆ D_090053D0_412660
◆ D_09005440_4126D0
◆ D_E0122B90
◆ D_E0122BA0
◆ D_E0122BA4
◆ D_E0122BA8
Definition at line 24 of file star_spirits_energy.c.
24 {
25 { 100, 0, 255 },
26 { 200, 0, 255 },
27 { 300, 0, 255 },
28 { 400, 0, 255 },
29 { 500, 0, 245 },
30 { 600, 0, 235 },
31 { 700, 0, 225 },
32 { 800, 0, 215 },
33 { 900, 0, 205 },
34 { 1000, 0, 195 },
35 { 1100, 0, 185 },
36 { 1200, 0, 175 },
37 { 1300, 0, 165 },
38 { 1400, 0, 155 },
39 { 1500, 0, 145 },
40 { 1600, 0, 135 },
41 { 1700, 0, 125 },
42 { 1800, 0, 115 },
43 { 1900, 0, 105 },
44 { 2000, 0, 95 },
45 { 2100, 0, 85 },
46 { 2200, 0, 75 },
47 { 2300, 0, 65 },
48 { 2400, 0, 55 },
49 { 2500, 0, 45 },
50 { 2600, 0, 30 },
51 { 2700, 0, 20 },
52 { 2800, 0, 10 },
53 { 2900, 0, 5 },
54 { 3000, 0, 0 },
55};
Referenced by star_spirits_energy_update().
◆ D_E0122C20
Definition at line 57 of file star_spirits_energy.c.
57 {
58 { 3000, 0, 0 },
59 { 2900, 0, 5 },
60 { 2800, 0, 10 },
61 { 2700, 0, 20 },
62 { 2600, 0, 30 },
63 { 2500, 0, 45 },
64 { 2400, 0, 55 },
65 { 2300, 0, 65 },
66 { 2200, 0, 75 },
67 { 2100, 0, 85 },
68 { 2000, 0, 95 },
69 { 1900, 0, 105 },
70 { 1800, 0, 115 },
71 { 1700, 0, 125 },
72 { 1600, 0, 135 },
73 { 1500, 0, 145 },
74 { 1400, 0, 155 },
75 { 1300, 0, 165 },
76 { 1200, 0, 175 },
77 { 1100, 0, 185 },
78 { 1000, 0, 195 },
79 { 900, 0, 205 },
80 { 800, 0, 215 },
81 { 700, 0, 225 },
82 { 600, 0, 235 },
83 { 500, 0, 245 },
84 { 400, 0, 255 },
85 { 300, 0, 255 },
86 { 200, 0, 255 },
87 { 100, 0, 255 },
88};
Referenced by star_spirits_energy_update().