Go to the source code of this file.
|
Gfx | D_090009E8_38C588 [] |
|
Gfx | D_09000A00_38C5A0 [] |
|
Gfx | D_09000940_38C4E0 [] |
|
Gfx * | D_E0088CC0 [] |
|
Color_RGB8 | D_E0088CDC [] |
|
u8 | D_E0088D00 [] = { 0, 1, 2, 3, 2, 1, 0, 0 } |
|
u8 | D_E0088D08 [] = { 0, 45, 0, 60 } |
|
◆ confetti_init()
◆ confetti_update()
Definition at line 178 of file confetti.c.
178 {
180 s32 unk_00;
181 s32 unk_24;
182 s32 unk_2C;
183 s32 i;
184
186 if (
part->unk_20 < 0) {
188 return;
189 }
190
192 if (
part->unk_24 > 324000) {
194 }
195
196 unk_24 =
part->unk_24;
197 unk_00 =
part->unk_00;
198 unk_2C =
part->unk_2C;
199
200 if (
part->unk_20 < 10) {
202 }
203
205 for (i = 0; i < unk_2C; i++,
part++) {
206 if (unk_00 == 3) {
207 if (
part->unk_30 <= 0 || --
part->unk_30 <= 0) {
209 if (
part->unk_20 < 0) {
212 }
216 }
217 } else {
218 if (
part->unk_30 <= 0 || --
part->unk_30 <= 0) {
219 if (unk_00 >= 4) {
220 part->unk_10 *= 0.98;
221 part->unk_14 *= 0.98;
222 part->unk_18 *= 0.98;
223 if (unk_24 >= 6 &&
part->unk_14 > -0.5) {
225 }
226 }
230 }
231 }
232 }
233}
BSS s32 PopupMenu_SelectedIndex
void func_E0088000(ConfettiFXData *part)
EffectInstanceDataPtr data
struct ConfettiFXData * confetti
Referenced by confetti_main().
◆ confetti_render()
Definition at line 235 of file confetti.c.
235 {
238
243
245}
void confetti_appendGfx(void *effect)
#define queue_render_task
@ RENDER_MODE_CLOUD_NO_ZCMP
void(* appendGfx)(void *)
Referenced by confetti_main().
◆ confetti_appendGfx()
void confetti_appendGfx |
( |
void * | effect | ) |
|
Definition at line 247 of file confetti.c.
247 {
251 s32 i;
252 s32 uly;
253 s32 width = 0x3C;
254 s32 height = 0x3C;
255 s32 ulx = 0;
256 s32 unk_28;
257 s32 unk_2C;
261 s32 unk_24;
263
264 unk_24 =
part->unk_24;
265 unk_2C =
part->unk_2C;
266 unk_28 =
part->unk_28;
268
272
277
280
282 for (i = 0; i < unk_2C; i++,
part++) {
284
285 if (
part->unk_30 <= 0) {
288
290
291 switch ((unk_24 + i) % 3) {
292 case 0:
294 break;
295 case 1:
297 break;
298 case 2:
300 break;
301 }
302 uly = ((i +
D_E0088D00[unk_24 % 6]) & 0xF) * 16;
303
305 (ulx << 2) + ((width >> 1) << 1), (uly << 2) + height);
309 }
310 }
311
318}
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by confetti_render().
◆ func_E0088000()
◆ confetti_main()
Definition at line 47 of file confetti.c.
47 {
53 s32 numParts;
65 s32 i;
66
68 case 0:
69 case 4:
71 break;
72 case 1:
73 case 5:
75 break;
76 case 2:
77 case 6:
79 break;
80 default:
82 break;
83 }
84
86 case 0:
87 case 4:
89 break;
90 case 1:
91 case 5:
93 break;
94 case 2:
95 case 3:
96 case 6:
97 default:
99 break;
100 }
101
103
110
115
124
125 data++;
127
128 for (i = 0; i <
np; i++, data++) {
131 case 0:
132 case 4:
134 break;
135 case 1:
136 case 5:
138 break;
139 case 2:
140 case 6:
142 break;
143 }
147
149
157 } else {
165 data->
unk_1C = -0.02 - ((i + 1) % 3) * 0.02;
166 } else {
168 }
170 }
171 }
172 return effect;
173}
void confetti_update(EffectInstance *effect)
void confetti_render(EffectInstance *effect)
void confetti_init(EffectInstance *effect)
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
Referenced by explosion_update().
◆ D_090009E8_38C588
◆ D_09000A00_38C5A0
◆ D_09000940_38C4E0
◆ D_E0088CC0
◆ D_E0088CDC
Initial value:= {
{ 232, 160, 168 },
{ 168, 80, 88 },
{ 160, 168, 232 },
{ 72, 72, 232 },
{ 160, 232, 160 },
{ 96, 176, 120 },
{ 224, 224, 88 },
{ 176, 160, 56 },
{ 232, 160, 232 },
{ 176, 64, 160 },
{ 160, 216, 216 },
{ 88, 168, 168 },
}
Definition at line 18 of file confetti.c.
18 {
19 { 232, 160, 168 },
20 { 168, 80, 88 },
21 { 160, 168, 232 },
22 { 72, 72, 232 },
23 { 160, 232, 160 },
24 { 96, 176, 120 },
25 { 224, 224, 88 },
26 { 176, 160, 56 },
27 { 232, 160, 232 },
28 { 176, 64, 160 },
29 { 160, 216, 216 },
30 { 88, 168, 168 },
31};
Referenced by confetti_appendGfx().
◆ D_E0088D00
u8 D_E0088D00[] = { 0, 1, 2, 3, 2, 1, 0, 0 } |
◆ D_E0088D08
u8 D_E0088D08[] = { 0, 45, 0, 60 } |