Go to the source code of this file.
|
Gfx | D_09000800_3D02F0 [] |
|
Gfx | D_090008D8_3D03C8 [] |
|
Gfx | D_090009F0_3D04E0 [] |
|
Gfx * | D_E00C8710 [2] = { D_09000800_3D02F0, D_090008D8_3D03C8 } |
|
u8 | D_E00C8718 [8] = { 110, 150, 130, 110, 100, 95, 100, 0 } |
|
u8 | D_E00C8720 [8] = { 80, 60, 80, 100, 120, 110, 100, 0 } |
|
◆ throw_spiny_appendGfx()
void throw_spiny_appendGfx |
( |
void * | effect | ) |
|
Definition at line 159 of file throw_spiny.c.
159 {
164 s32 temp_s5 = data->
rgba;
165 s32 temp_s6 = data->
unk_00;
167
170
177
184}
#define SPRITE_WORLD_SCALE_D
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by throw_spiny_render().
◆ throw_spiny_init()
◆ throw_spiny_update()
Definition at line 88 of file throw_spiny.c.
88 {
90 u32 state;
91 f32 gravity;
92 s32 lifeDuration;
93
95 effectInstance->flags &= ~FX_INSTANCE_FLAG_DISMISS;
96 spinyObject->
life = 16;
97 }
98
99 if (spinyObject->
life < 1000) {
101 }
102
104
105 if (spinyObject->
life < 0) {
107 return;
108 }
109
111 state = spinyObject->
state;
112
113 if (state < 7) {
116 spinyObject->
state += 1;
117 spinyObject->
yaw -= 40.0f;
118 } else {
124 }
125
127 spinyObject->
state = 0;
131 return;
132 }
133
134 gravity = spinyObject->
gravity;
135
136 if ((gravity < 0.0f) && (spinyObject->
pos.
y < 100.0 / 7.0)) {
137 spinyObject->
pos.
y = 100.0f / 7.0f;
139 spinyObject->
gravity = gravity - gravity;
140 }
141}
@ FX_INSTANCE_FLAG_DISMISS
Referenced by throw_spiny_main().
◆ throw_spiny_render()
Definition at line 143 of file throw_spiny.c.
143 {
146
149 renderTask.
dist = 10;
151
154}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void(* appendGfx)(void *)
void throw_spiny_appendGfx(void *effect)
Referenced by throw_spiny_main().
◆ throw_spiny_main()
EffectInstance * throw_spiny_main |
( |
s32 | arg0, |
|
|
f32 | arg1, |
|
|
f32 | arg2, |
|
|
f32 | arg3, |
|
|
f32 | arg4, |
|
|
f32 | arg5, |
|
|
f32 | arg6, |
|
|
f32 | arg7, |
|
|
s32 | time ) |
Definition at line 21 of file throw_spiny.c.
21 {
26 s32 numParts = 1;
27 f32 temp_f4, temp_f8, gravity;
28
35
40 spinyObject->
unk_00 = arg0;
42
43 if (time <= 0) {
44 spinyObject->
life = 1000;
45 } else {
46 spinyObject->
life = time + 60;
47 }
48
49 temp_f8 = arg5 - arg2;
50 temp_f4 = time;
51 gravity = (temp_f8 / temp_f4) - (time * -0.10000000149011612);
53 spinyObject->
rgba = 255;
54 spinyObject->
unk_10 = arg1;
55 spinyObject->
unk_14 = arg2;
56 spinyObject->
unk_18 = arg3;
57 spinyObject->
unk_1C = arg4;
58 spinyObject->
unk_20 = arg5;
59 spinyObject->
unk_24 = arg6;
60 spinyObject->
unk_44 = (arg4 - arg1) / temp_f4;
61 spinyObject->
unk_4C = (arg6 - arg3) / temp_f4;
62 spinyObject->
pos.
x = arg1;
63 spinyObject->
pos.
y = arg2;
64 spinyObject->
pos.
z = arg3;
66
67 if (temp_f8 < 0.0f) {
69 } else {
71 }
72
73 spinyObject->
unk_40 = arg7;
79 spinyObject->
state = -1;
80 spinyObject->
xScale = 1.0f;
81 spinyObject->
yScale = 1.0f;
82 return effect;
83}
#define general_heap_malloc
#define create_effect_instance
struct ThrowSpinyFXData * throwSpiny
#define ASSERT(condition)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
void throw_spiny_update(EffectInstance *effect)
void throw_spiny_init(EffectInstance *effect)
void throw_spiny_render(EffectInstance *effect)
◆ func_E00C844C()
void func_E00C844C |
( |
void | | ) |
|
◆ D_09000800_3D02F0
◆ D_090008D8_3D03C8
◆ D_090009F0_3D04E0
◆ D_E00C8710
◆ D_E00C8718
u8 D_E00C8718[8] = { 110, 150, 130, 110, 100, 95, 100, 0 } |
◆ D_E00C8720
u8 D_E00C8720[8] = { 80, 60, 80, 100, 120, 110, 100, 0 } |