• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。


Commit MetaInfo

Revision103 (tree)
Time2015-08-29 20:44:33
Authorxops-mikan

Log Message

プレイヤー死亡時のカメラワークを改善

Change Summary

Incremental Difference

--- trunk/gamemain.cpp (revision 102)
+++ trunk/gamemain.cpp (revision 103)
@@ -1677,16 +1677,15 @@
16771677 if( Camera_Debugmode == true ){
16781678 //
16791679 }
1680- else if( myHuman->GetHP() <= 0 ){
1681- float rx = DegreeToRadian(end_framecnt);
1682- float ry = DegreeToRadian(-85);
1683- float r = 25.0f;
1680+ else if( myHuman->GetDeadFlag() == true ){
1681+ float ry = camera_ry*0.95f + DegreeToRadian(-89.0f)*0.05f; // 19/20 + 1/20
1682+ float r = 3.12f;
16841683
1685- camera_x = x + cos(rx)*cos(ry)*r;
1686- camera_y = y - sin(ry)*r;
1687- camera_z = z + sin(rx)*cos(ry)*r;
1688- camera_rx = rx;
1684+ camera_rx += DegreeToRadian(1.0f);
16891685 camera_ry = ry;
1686+ camera_x = x + cos(camera_rx)*r;
1687+ camera_y = y + 33.3f;
1688+ camera_z = z + sin(camera_rx)*r;
16901689 }
16911690 else if( Camera_F1mode == true ){
16921691 float crx = camera_rx*0.6f + (view_rx + mouse_rx*-1 + (float)M_PI/2)*0.4f; // 3/5 + 2/5