Skip to content

Commit

Permalink
Some Solar Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdcer committed Jan 12, 2025
1 parent 7805784 commit 66c3a4b
Show file tree
Hide file tree
Showing 6 changed files with 151 additions and 131 deletions.
2 changes: 1 addition & 1 deletion include/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ void Effect_Effect357_Draw(Effect* );
void Effect_Effect383_Update(Effect* );
void Effect_Effect383_Draw(Effect* );
void Effect_Effect383_Spawn(f32 xPos, f32 yPos, f32 zPos, f32 scale1);
void Effect_SetupTimedSfxAtPos(Effect* , Vec3f* pos, u32 sfxId);
void Effect_TimedSfxAtPos_Setup(Effect* , Vec3f* pos, u32 sfxId);
void Effect_SpawnTimedSfxAtPos(Vec3f* pos, s32 sfxId);
void Effect_TimedSfx_Update(Effect*);
bool func_effect_8007A774(Player*, Effect*, f32);
Expand Down
4 changes: 2 additions & 2 deletions include/i3.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ void Zoness_ZoBarrier_Draw(Actor* this);
void Zoness_LevelStart(Player* player);
void Zoness_LevelComplete(Player* player);

void Solar_8019E8B8(f32, f32, f32, f32);
void Solar_8019E9F4(f32, f32, f32, f32, f32, f32, f32, s32);
void Solar_Effect392_Spawn1(f32, f32, f32, f32);
void Solar_Effect392_Spawn2(f32, f32, f32, f32, f32, f32, f32, s32);
void Solar_SoWave_Update(SoWave*);
void Solar_SoRock_Update(Actor*);
void Solar_SoRock_Draw(Actor*);
Expand Down
4 changes: 2 additions & 2 deletions src/engine/fox_effect.c
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ void Effect_Effect383_Spawn(f32 xPos, f32 yPos, f32 zPos, f32 scale1) {
Effect_Effect384_Spawn(xPos, yPos, zPos, 80.0f, 4);
}

void Effect_SetupTimedSfxAtPos(TimedSfx* this, Vec3f* pos, u32 sfxId) {
void Effect_TimedSfxAtPos_Setup(TimedSfx* this, Vec3f* pos, u32 sfxId) {
Effect_Initialize(this);
this->obj.status = OBJ_ACTIVE;
this->obj.id = OBJ_EFFECT_TIMED_SFX;
Expand Down Expand Up @@ -980,7 +980,7 @@ void Effect_SpawnTimedSfxAtPos(Vec3f* pos, s32 sfxId) {

for (i = 0; i < ARRAY_COUNT(gEffects); i++) {
if (gEffects[i].obj.status == OBJ_FREE) {
Effect_SetupTimedSfxAtPos(&gEffects[i], pos, sfxId);
Effect_TimedSfxAtPos_Setup(&gEffects[i], pos, sfxId);
break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/engine/fox_enmy2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3562,8 +3562,8 @@ void ActorEvent_Update(ActorEvent* this) {
this->animFrame = 0;
}
if ((gGameFrameCount % 3) == 0) {
Solar_8019E9F4(this->obj.pos.x, this->obj.pos.y - 20, this->obj.pos.z - 180.0f, 0.0f,
RAND_FLOAT(20.0f) * -1.0f, 0.0f, 4.0f, 2);
Solar_Effect392_Spawn2(this->obj.pos.x, this->obj.pos.y - 20, this->obj.pos.z - 180.0f, 0.0f,
RAND_FLOAT(20.0f) * -1.0f, 0.0f, 4.0f, 2);
}
} else if (this->animFrame >= Animation_GetFrameCount(&aFirebirdAnim)) {
this->animFrame = 0;
Expand Down
6 changes: 3 additions & 3 deletions src/engine/fox_play.c
Original file line number Diff line number Diff line change
Expand Up @@ -6821,9 +6821,9 @@ void Play_UpdateLevel(void) {
Audio_SetHeatAlarmParams(shields, heightParam);

if (((gGameFrameCount % 8) == 0) && (gPlayer[0].state != PLAYERSTATE_LEVEL_COMPLETE)) {
Solar_8019E8B8(RAND_FLOAT_CENTERED(6000.0f), -80.0f,
gPlayer[0].trueZpos + (RAND_FLOAT(2000.0f) + -6000.0f),
RAND_FLOAT(10.0f) + 20.0f); // check
Solar_Effect392_Spawn1(RAND_FLOAT_CENTERED(6000.0f), -80.0f,
gPlayer[0].trueZpos + (RAND_FLOAT(2000.0f) + -6000.0f),
RAND_FLOAT(10.0f) + 20.0f); // check
}

HUD_Texture_Wave(D_SO_60229A4, D_SO_6010198);
Expand Down
Loading

0 comments on commit 66c3a4b

Please sign in to comment.