Go to the source code of this file.
◆ music_note_appendGfx()
void music_note_appendGfx |
( |
void * | effect | ) |
|
Definition at line 131 of file music_note.c.
131 {
138
139
142
148 );
159}
BSS s32 PopupMenu_SelectedIndex
EffectInstanceDataPtr data
struct MusicNoteFXData * musicNote
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by music_note_render().
◆ music_note_init()
◆ music_note_update()
Definition at line 94 of file music_note.c.
94 {
96 s32 timeLeft;
97
100 timeLeft =
part->timeLeft;
101 if (timeLeft < 0) {
103 return;
104 }
105 if (timeLeft >= 6) {
106 part->alpha += (255 -
part->alpha) * 0.3;
107 part->scale += (1.0f -
part->scale) * 0.3;
108 }
109 if (timeLeft < 10) {
110 part->alpha = timeLeft * 25;
111 }
116}
Referenced by music_note_main().
◆ music_note_render()
Definition at line 118 of file music_note.c.
118 {
121
126
129}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void music_note_appendGfx(void *effect)
void(* appendGfx)(void *)
Referenced by music_note_main().
◆ music_note_main()
Definition at line 36 of file music_note.c.
36 {
41 s32 numParts = 1;
43
50
53
55
57
67 switch (type) {
68 case 0:
71 part->finalVelX = 0.0f;
72 part->finalVelY = 1.0f;
73 break;
74 case 1:
78 part->finalVelX = 0.0f;
79 part->finalVelY = 0.0f;
80 break;
81 default:
85 part->finalVelX = 0.0f;
86 part->finalVelY = 0.0f;
87 break;
88 }
89}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void music_note_init(EffectInstance *effect)
void music_note_update(EffectInstance *effect)
void music_note_render(EffectInstance *effect)
◆ D_09000FC0_35B5A0
◆ D_09001038_35B618
◆ D_090010C0_35B6A0
◆ D_09001148_35B728
◆ D_090011D0_35B7B0
◆ D_09001258_35B838
◆ D_090012E0_35B8C0
◆ D_09001368_35B948
◆ D_E004C660
◆ D_E004C67C
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 21 of file music_note.c.
21 {
22 254, 172, 172,
23 254, 172, 213,
24 254, 180, 154,
25 213, 180, 254,
26 180, 180, 254,
27 180, 221, 254,
28 180, 254, 254,
29 180, 254, 213,
30 180, 254, 180,
31 213, 254, 180,
32 254, 254, 180,
33 254, 213, 172,
34};
Referenced by music_note_appendGfx().