static_checkered_platform.inc.c (922B)
1 // static_checkered_platform.inc.c 2 3 void bhv_static_checkered_platform_loop(void) { 4 if (gDebugInfo[DEBUG_PAGE_ENEMYINFO][0] == 1) { 5 obj_set_angle(o, 0, 0, 0); 6 o->oAngleVelPitch = 0; 7 o->oAngleVelYaw = 0; 8 o->oAngleVelRoll = 0; 9 } 10 11 if (gDebugInfo[DEBUG_PAGE_ENEMYINFO][0] == 2) { 12 o->oFaceAnglePitch = gDebugInfo[DEBUG_PAGE_ENEMYINFO][1] << 12; 13 o->oFaceAngleYaw = gDebugInfo[DEBUG_PAGE_ENEMYINFO][2] << 12; 14 o->oFaceAngleRoll = gDebugInfo[DEBUG_PAGE_ENEMYINFO][3] << 12; 15 } 16 17 o->oAngleVelPitch = gDebugInfo[DEBUG_PAGE_ENEMYINFO][4]; 18 o->oAngleVelYaw = gDebugInfo[DEBUG_PAGE_ENEMYINFO][5]; 19 o->oAngleVelRoll = gDebugInfo[DEBUG_PAGE_ENEMYINFO][6]; 20 21 if (gDebugInfo[DEBUG_PAGE_ENEMYINFO][0] == 3) { 22 o->oFaceAnglePitch += o->oAngleVelPitch; 23 o->oFaceAngleYaw += o->oAngleVelYaw; 24 o->oFaceAngleRoll += o->oAngleVelRoll; 25 } 26 }