X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。
| Revision | 101 (tree) |
|---|---|
| Time | 2015-08-29 13:05:49 |
| Author | |
VC++でコンパイルする際にエラーが発生する問題の対策
| @@ -298,7 +298,7 @@ | ||
| 298 | 298 | if( ((int)(0.5f*GAMEFPS) < framecnt)&&(framecnt < (int)(4.0f*GAMEFPS)) ){ |
| 299 | 299 | char str[32]; |
| 300 | 300 | float effectA = 1.0f; |
| 301 | - sprintf(str, GAMENAME" project", 0, 0); | |
| 301 | + sprintf(str, "%s project", GAMENAME); | |
| 302 | 302 | if( framecnt < (int)(1.5f*GAMEFPS) ){ effectA = GetEffectAlpha(framecnt, 1.0f, 1.0f, 0.5f, false); } |
| 303 | 303 | if( framecnt > (int)(3.0f*GAMEFPS) ){ effectA = GetEffectAlpha(framecnt, 1.0f, 1.0f, 3.0f, true); } |
| 304 | 304 | d3dg->Draw2DTextureFontText(SCREEN_WIDTH/2 - strlen(str)*22/2, SCREEN_HEIGHT - 140, str, d3dg->GetColorCode(1.0f,1.0f,1.0f,effectA), 22, 22); |
| @@ -338,7 +338,7 @@ | ||
| 338 | 338 | if( (int)(12.0f*GAMEFPS) <= framecnt ){ //framecnt < (int)(17.0f*GAMEFPS) |
| 339 | 339 | char str[32]; |
| 340 | 340 | float effectA = 1.0f; |
| 341 | - sprintf(str, GAMENAME, 0, 0); | |
| 341 | + sprintf(str, GAMENAME); | |
| 342 | 342 | if( framecnt < (int)(13.0f*GAMEFPS) ){ effectA = GetEffectAlpha(framecnt, 1.0f, 1.0f, 12.0f, false); } |
| 343 | 343 | if( ((int)(16.0f*GAMEFPS) < framecnt)&&(framecnt < (int)(17.0f*GAMEFPS)) ){ effectA = GetEffectAlpha(framecnt, 1.0f, 1.0f, 16.0f, true); } |
| 344 | 344 | if( framecnt >= (int)(17.0f*GAMEFPS) ){ effectA = 0.0f; } |
| @@ -2877,7 +2877,8 @@ | ||
| 2877 | 2877 | if( strcmp(NewCommand, "ver") == 0 ){ |
| 2878 | 2878 | sprintf(str, "%s Version:%s", GAMENAME, GAMEVERSION); |
| 2879 | 2879 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); |
| 2880 | - AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), " (Graphics:"GRAPHICS_CORE" Sound:"SOUND_CORE")"); | |
| 2880 | + sprintf(str, " (Graphics:%s Sound:%s)", GRAPHICS_CORE, SOUND_CORE); | |
| 2881 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); | |
| 2881 | 2882 | } |
| 2882 | 2883 | |
| 2883 | 2884 | //スクリーンショットを撮影 |