Go to the source code of this file.
◆ explosion_init()
◆ explosion_update()
Definition at line 100 of file explosion.c.
100 {
102 s32 unk_00;
103 s32 unk_34;
104
108 return;
109 }
110
112
115
116 if (unk_34 == 7) {
119 } else if (unk_34 == 1) {
122 }
123
124 part++;
125
127
128 if (unk_34 < 8) {
129 part->
unk_24 += (unk_00 == 2) ? 1.0f : 0.4;
131 } else {
134 }
135
136 part++;
137
138 if (unk_34 >= 3) {
139 if (unk_34 == 3) {
141 }
143 if (unk_34 < 6) {
145 } else {
148 }
149 }
150
152}
EffectInstance * confetti_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4, s32 arg5)
struct ExplosionFXData * explosion
void smoke_ring_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3)
Referenced by explosion_main().
◆ explosion_render()
Definition at line 154 of file explosion.c.
154 {
157
160 renderTask.
dist = 10;
162
164}
#define queue_render_task
@ RENDER_MODE_CLOUD_NO_ZCMP
void explosion_appendGfx(void *effect)
void(* appendGfx)(void *)
Referenced by explosion_main().
◆ explosion_appendGfx()
void explosion_appendGfx |
( |
void * | effect | ) |
|
Definition at line 166 of file explosion.c.
166 {
168 s32 unk_34 = part->
unk_34;
171 s32 primAlpha;
172 s32 primB;
173 s32 cond;
174
177
182
183 part++;
184
186
189
192
197 }
198
199 part++;
200
202
207
208 switch (unk_34) {
209 default:
211 break;
212 case 2:
213 primAlpha = 255;
214 break;
215 case 1:
216 primAlpha = 192;
217 break;
218 }
219
220 cond = (unk_34 < 3);
221 if (!cond && unk_34 < 8) {
222 primB = unk_34 * 16 + 128;
223 } else {
224 primB = 255;
225 }
226
227 gDPSetPrimColor(
gMainGfxPos++, 0, 0, 255, 255, primB, primAlpha);
232}
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by explosion_render().
◆ explosion_main()
void explosion_main |
( |
s32 | type, |
|
|
f32 | x, |
|
|
f32 | y, |
|
|
f32 | z ) |
Definition at line 18 of file explosion.c.
18 {
23 s32 numParts = 3;
24
25
26 s32 dumb;
27 s32 temp;
28 if (type != 0) {
29 dumb = 0;
30 } else {
31 temp = 0;
32 dumb = temp;
33 }
34
41
42
47
54
55 data++;
57 if (type == 0) {
59 }
61 if (type == 1) {
63 } else {
65 }
66 if (type == 1) {
68 } else {
70 }
71
72 data++;
75 switch (type) {
76 case 0:
79 break;
80 case 1:
83 break;
84 default:
87 break;
88 }
91}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void explosion_init(EffectInstance *effect)
void explosion_update(EffectInstance *effect)
void explosion_render(EffectInstance *effect)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
◆ EFFECT_DEF_SMOKE_RING()
◆ EFFECT_DEF_CONFETTI()
◆ D_09000840_3447B0
◆ D_090008F0_344860
◆ D_09000910_344880
◆ D_09000978_3448E8
◆ D_090009D8_344948
◆ D_09000A38_3449A8
◆ D_E00328B0