Go to the source code of this file.
◆ star_init()
◆ star_update()
Definition at line 121 of file star.c.
121 {
126
129 if (length > 0.01f) {
130 length = 1.0f /
sqrtf(length);
131 }
132
133 dx = data->
vel.
x * length * 32.0f;
134 dy = data->
vel.
y * length * 32.0f;
135 dz = data->
vel.
z * length * 32.0f;
139 length = 64.0f;
140
142 && data->
vel.
y < 0.0f
144 && length < 42.0f
145 ) {
153
156 }
157
161 }
162 }
163
168 }
169 }
170
173 }
174
178
181 }
182}
BSS s32 PopupMenu_SelectedIndex
#define sfx_play_sound_at_position
#define npc_raycast_down_sides
EffectInstanceDataPtr data
@ SOUND_SEQ_SHOOTING_STAR_BOUNCE
void landing_dust_main(s32 type, f32 x, f32 y, f32 z, f32 angle)
GameStatus * gGameStatusPtr
PlayerStatus gPlayerStatus
Referenced by star_main().
◆ star_render()
Definition at line 184 of file star.c.
184 {
190
196 } else {
198 }
200
202}
#define queue_render_task
@ RENDER_MODE_SURF_SOLID_AA_ZB_LAYER0
@ RENDER_MODE_CLOUD_NO_ZCMP
void star_appendGfx(void *effect)
Referenced by star_main().
◆ star_appendGfx()
Definition at line 204 of file star.c.
204 {
207 s32 type = data->
type;
208 s32 primR = data->
primR;
209 s32 primG = data->
primG;
210 s32 primB = data->
primB;
214 s32 i;
215
218
223
227
231
234 } else {
236 }
237
241 }
242
243
250
251 for (i = 0; i < 5; i++) {
254
258 }
259
260 for (i = 0; i < 4; i++) {
265 }
266
268 }
269}
#define VIRTUAL_TO_PHYSICAL(addr)
Vtx_t D_09001400_333AA0[]
DisplayContext * gDisplayContext
Referenced by star_render().
◆ star_main()
Definition at line 15 of file star.c.
15 {
19 s32 numParts = 1;
20 s32 i;
21
34
41
45
51 part->bounceTime = 0.0f;
52 part->starAngle = 0.0f;
55
62 } else {
67 }
68
72
77 norm = speed / length;
78 }
79
83
87
91
92 if (projVel != 0.0f) {
93 projVel =
sqrtf(projVel);
94 }
95
97 projVel = -projVel;
98 part->starAngleVel = -20.0f;
99 } else {
100 part->starAngleVel = 20.0f;
101 }
102
104 part->timeLeft = length / speed;
105 part->projVel = -projVel;
107
109 part->trailMatrices[i] =
part->trailMatrices[0];
110 }
111
112 part->trailMatrixPos = -1;
113 return effect;
114}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void star_init(EffectInstance *effect)
void star_update(EffectInstance *effect)
void star_render(EffectInstance *effect)
◆ EFFECT_DEF_LANDING_DUST()
◆ D_09001400_333AA0
Vtx_t D_09001400_333AA0[] |
|
extern |
◆ D_09001530_333BD0
◆ D_09001650_333CF0
◆ D_09001780_333E20
◆ D_090017D0_333E70