- 106 名前:デフォルトの名無しさん [2008/10/06(月) 04:35:00 ]
- >>97
眠れないので作ってみた void teki_01_dp(void) { static float n = 0; static float inc = 0.1; for (cnt = 0; cnt < 17; cnt++) { if (init_fl[cnt] != 0) { /* 出現済みの敵の場合 */ /* 次の座標を計算 */ #if 0 spx[cnt] += spxg[cnt]; spy[cnt] += spyg[cnt]; zx[cnt] += FrameTime * spx[cnt]; zy[cnt] += FrameTime * spy[cnt]; #else zx[cnt] += cos(n * PI / 180) * FrameTime * 100; zy[cnt] += sin(n * PI / 180) * FrameTime * 100; n += inc; if (n >= 180.0) { inc = -0.1; } else if (n <= -180.0) { inc = 0.1; } #endif } } } 速度とかは超適当す。
|

|