Starship/src/main/fox_A48A0.c

47 lines
1.4 KiB
C
Raw Normal View History

#include "global.h"
void func_800A3CA0(void) {
Matrix_Push(&gGfxMatrix);
2024-02-19 16:05:11 +03:00
Matrix_LookAt(gGfxMatrix, gCsCamEyeX, gCsCamEyeY, gCsCamEyeZ, gCsCamAtX, gCsCamAtY, gCsCamAtZ, 0.0f, 1.0f, 0.0f, 1);
Matrix_Translate(gGfxMatrix, 0.0f, 0.0f, -200.0f, 1);
Matrix_RotateY(gGfxMatrix, gControllerPress[gPlayerNum].stick_x * M_DTOR, 1);
Matrix_RotateX(gGfxMatrix, gControllerPress[gPlayerNum].stick_y * M_DTOR, 1);
Matrix_SetGfxMtx(&gMasterDisp);
RCP_SetupDL_23();
Matrix_Pop(&gGfxMatrix);
}
void func_800A3E00(void) {
switch (D_80177868) {
case 0:
if (D_Timer_8017783C == 0) {
D_80177868 = 1;
}
break;
case 1:
D_80177868 = 2;
gDrawMode = DRAWMODE_7;
2024-02-19 16:05:11 +03:00
gCsCamAtY = 0.0f;
gCsCamAtX = gCsCamAtY;
gCsCamEyeZ = gCsCamAtX;
gCsCamEyeY = gCsCamEyeZ;
gCsCamEyeX = gCsCamEyeY;
gCsCamAtZ = -10.0f;
break;
case 2:
if ((gControllerPress[0].button & START_BUTTON) || (gControllerPress[1].button & START_BUTTON)) {
func_8001D638(0);
D_80177868 = 3;
gDrawMode = DRAWMODE_0;
func_800A5844();
D_Timer_8017783C = 0;
}
break;
case 3:
if (D_Timer_8017783C == 0) {
D_80177854 = 2;
}
break;
}
}