Go to the source code of this file.
|
Gfx | D_09000F20_338EE0 [] |
|
Gfx | D_090011C8_339188 [] |
|
Gfx | D_090011E0_3391A0 [] |
|
Gfx | D_090011F8_3391B8 [] |
|
Gfx | D_09001210_3391D0 [] |
|
Gfx | D_09001228_3391E8 [] |
|
Gfx | D_09001240_339200 [] |
|
Gfx | D_09001258_339218 [] |
|
Gfx | D_09001270_339230 [] |
|
Gfx * | D_E0022CD0 [] |
|
u8 | D_E0022CF0 [] |
|
u8 | D_E0022D14 [] = { 0x1E, 0x3C, 0x50, 0x5F, 0x64, 0x68, 0x6A } |
|
u8 | D_E0022D1C [] = { 0x3C, 0x5A, 0x64, 0x68, 0x6A, 0x6C, 0x6D } |
|
◆ sparkles_init()
◆ sparkles_update()
Definition at line 153 of file sparkles.c.
153 {
159 s32 unk_20;
160 s32 count = 0;
163 s32 i;
164
167
168 unk_20 =
part->unk_20;
169
170 if ((unk_00 == 0 || unk_00 == 10) &&
part->unk_24 < 0) {
172 return;
173 }
174
177 part->unk_2C = (unk_20 + i) & 7;
178 switch (unk_00) {
179 case 0:
180 part->unk_18 += -0.02;
181 if (unk_20 - 1 < 7) {
185 } else {
191 part->unk_18 = -0.05f;
192 }
193 break;
194 case 10:
195 part->unk_10 *= 0.96;
196 part->unk_1C += (0.1 -
part->unk_1C) * 0.1;
197 part->unk_14 *= 0.96;
201 break;
202 default:
205 unk_10 =
part->unk_10;
207 if (
part->unk_24 < 0) {
208 count++;
209 }
210 part->unk_04 += unk_10;
213 if (
part->unk_24 < 0 ||
part->unk_24 >= 21) {
215 } else {
217 unk_20 =
part->unk_20;
218 if (unk_20 - 1 < 7) {
220 } else {
221 part->unk_1C += (0.1 -
part->unk_1C) * 0.1;
222 }
223 }
224 break;
225 }
226 }
227
228 if (unk_00 != 0 && unk_00 != 10 && count >= effect->
numParts - 1) {
230 }
231}
BSS s32 PopupMenu_SelectedIndex
EffectInstanceDataPtr data
struct SparklesFXData * sparkles
s32 effect_simple_rand(s32, s32)
Referenced by sparkles_main().
◆ sparkles_render()
Definition at line 233 of file sparkles.c.
233 {
236
241
243}
#define queue_render_task
@ RENDER_MODE_CLOUD_NO_ZCMP
void sparkles_appendGfx(void *effect)
void(* appendGfx)(void *)
Referenced by sparkles_main().
◆ sparkles_appendGfx()
void sparkles_appendGfx |
( |
void * | effect | ) |
|
Definition at line 245 of file sparkles.c.
245 {
251 s32 i;
252
256
258
262
265 s32 unk_2C =
part->unk_2C;
266
267 if (unk_2C >= 0) {
269
274
277
279
284 }
285 }
286
288}
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by sparkles_render().
◆ sparkles_main()
Definition at line 43 of file sparkles.c.
43 {
48 s32 numParts;
52 s32 i;
53
55 case 0:
56 numParts = 36;
58 break;
59 case 1:
60 numParts = 4;
62 break;
63 case 2:
64 numParts = 8;
66 break;
67 case 3:
68 numParts = 4;
70 break;
71 default:
72 numParts = 8;
74 break;
75 }
76
77 numParts++;
78
85
90
97
99 for (i = 1; i < numParts; i++,
part++) {
102
104 case 0:
105 angle = (360.0f / (numParts - 1)) * i;
106 angle2 = (1800.0f / (numParts - 1)) * i - 90.0f;
112 break;
113 case 1:
114 case 2:
115 angle = (360.0f / (numParts - 1)) * i +
rand_int(359);
116 if (i & 1) {
118 } else {
120 }
127 part->unk_24 = i * 2 + 30;
128 part->unk_28 = i % 3;
130 break;
131 case 3:
132 case 4:
133 default:
134 angle = (360.0f / (numParts - 1)) * i +
rand_int(359);
142 part->unk_24 = i * 2 + 18;
143 part->unk_28 = i % 3;
145 break;
146 }
147 }
148}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void sparkles_init(EffectInstance *effect)
void sparkles_update(EffectInstance *effect)
void sparkles_render(EffectInstance *effect)
◆ D_09000F20_338EE0
◆ D_090011C8_339188
◆ D_090011E0_3391A0
◆ D_090011F8_3391B8
◆ D_09001210_3391D0
◆ D_09001228_3391E8
◆ D_09001240_339200
◆ D_09001258_339218
◆ D_09001270_339230
◆ D_E0022CD0
◆ D_E0022CF0
Initial value:= {
254, 172, 172,
254, 172, 213,
254, 180, 154,
213, 180, 254,
180, 180, 254,
180, 221, 254,
180, 254, 254,
180, 254, 213,
180, 254, 180,
213, 254, 180,
254, 254, 180,
254, 213, 172
}
Definition at line 20 of file sparkles.c.
20 {
21 254, 172, 172,
22 254, 172, 213,
23 254, 180, 154,
24 213, 180, 254,
25 180, 180, 254,
26 180, 221, 254,
27 180, 254, 254,
28 180, 254, 213,
29 180, 254, 180,
30 213, 254, 180,
31 254, 254, 180,
32 254, 213, 172
33};
Referenced by sparkles_appendGfx().
◆ D_E0022D14
u8 D_E0022D14[] = { 0x1E, 0x3C, 0x50, 0x5F, 0x64, 0x68, 0x6A } |
◆ D_E0022D1C
u8 D_E0022D1C[] = { 0x3C, 0x5A, 0x64, 0x68, 0x6A, 0x6C, 0x6D } |