Changeset 1389 for GTP/trunk/App/Games/Jungle_Rumble/src
- Timestamp:
- 09/16/06 23:54:33 (18 years ago)
- Location:
- GTP/trunk/App/Games/Jungle_Rumble/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Games/Jungle_Rumble/src/GameManager.cpp
r1388 r1389 66 66 } 67 67 68 69 std::wstring GameManager::HelpScreenString_Get() 70 { 71 std::wstring s; 72 s += L"HELP:\n drive: w-a-s-d\n shoot: left mouse\n F2: show FPS\n F3: PhysX Debugger\n F4: Music On/Off"; 73 74 s += L"\n F9: Depth Imposters On/Off "; 75 if(this->gs.useDepthImposter) { s+= L"[ON]"; } else { s+= L"[OFF]"; } 76 77 s += L"\n F10: Raytracer On/Off "; 78 if(this->gs.useRaytracer) { s+= L"[ON]"; } else { s+= L"[OFF]"; } 79 80 s += L"\n F11 Opponent Fire On/Off\n Pause: Pause Game\n 1 Standard weapon\n 2 Bombs - explode late, but do cause lots of damage!\n 3 Alien weapon - just shoot!\n 4 Firethrower - Toast your opponent\n 5 Icethrower - Slow down your opponent"; 81 return s; 82 } 83 84 68 85 void GameManager::keyPressed(UINT nChar, bool bKeyDown, bool bAltDown, void* pUserContext) 69 86 { … … 79 96 #if(0) 80 97 this->gs.getHUD()->message("HELP:\n drive: w-a-s-d\n shoot: left mouse\n F2: show FPS\n F3: PhysX Debugger\n F4: Music On/Off\n F9: Depth Imposters On/Off\n F10: Raytracer On/Off\n F11 Opponent Fire On/Off\n Pause: Pause Game\n 1 Standard weapon\n 2 Bombs - explode late, but do cause lots of damage!\n 3 Alien weapon - just shoot!\n 4 Firethrower - Toast your opponent\n 5 Icethrower - Slow down your opponent", 2, 0.01f, true); 81 #elif( 1) // MG98 #elif(0) // MG 82 99 std::string s(""); 83 100 s += "HELP:\n drive: w-a-s-d\n shoot: left mouse\n F2: show FPS\n F3: PhysX Debugger\n F4: Music On/Off"; … … 90 107 91 108 s += "\n F11 Opponent Fire On/Off\n Pause: Pause Game\n 1 Standard weapon\n 2 Bombs - explode late, but do cause lots of damage!\n 3 Alien weapon - just shoot!\n 4 Firethrower - Toast your opponent\n 5 Icethrower - Slow down your opponent"; 92 s += "HELP:\n drive: w-a-s-d\n shoot: left mouse\n F2: show FPS\n F3: PhysX Debugger\n F4: Music On/Off\n F9: Depth Imposters On/Off\n F10: Raytracer On/Off\n F11 Opponent Fire On/Off\n Pause: Pause Game\n 1 Standard weapon\n 2 Bombs - explode late, but do cause lots of damage!\n 3 Alien weapon - just shoot!\n 4 Firethrower - Toast your opponent\n 5 Icethrower - Slow down your opponent";109 //s += "HELP:\n drive: w-a-s-d\n shoot: left mouse\n F2: show FPS\n F3: PhysX Debugger\n F4: Music On/Off\n F9: Depth Imposters On/Off\n F10: Raytracer On/Off\n F11 Opponent Fire On/Off\n Pause: Pause Game\n 1 Standard weapon\n 2 Bombs - explode late, but do cause lots of damage!\n 3 Alien weapon - just shoot!\n 4 Firethrower - Toast your opponent\n 5 Icethrower - Slow down your opponent"; 93 110 this->gs.getHUD()->message(s, 2, 0.01f, true); 94 111 //this->gs.useRaytracer 95 #elif( 0) // MG112 #elif(1) // MG 96 113 GLOBAL_display_help_screenQ = !GLOBAL_display_help_screenQ; 97 114 #endif -
GTP/trunk/App/Games/Jungle_Rumble/src/GameManager.h
r1378 r1389 38 38 void updateGame(float fElapsedTime); 39 39 void initGame(); 40 40 41 std::wstring HelpScreenString_Get(); 42 41 43 ID3DXEffect* getEffect(UINT id); 42 44 ID3DXEffect* loadEffect(UINT id, LPCWSTR filename); -
GTP/trunk/App/Games/Jungle_Rumble/src/HUDRenderer.cpp
r1378 r1389 4 4 #include "UserPlayer.h" 5 5 #include "HUD.h" 6 7 extern bool GLOBAL_display_help_screenQ; 8 6 9 7 10 HUDRenderer::HUDRenderer(void) : Renderer() … … 211 214 212 215 //message output: 213 if (hud->messagetimer < hud->messagethreshold) { 214 hud->messagetimer += hud->messagedt; 215 if(!hud->bHelp) { 216 myFont->DrawText(sprite, hud->messagestring.c_str(), -1, &textRectangle, DT_CENTER | DT_WORDBREAK, fontColor); 217 } else { 218 myFont->DrawText(sprite, hud->messagestring.c_str(), -1, &helpRectangle, DT_LEFT | DT_WORDBREAK, fontColor); 219 } 220 } 216 #if(0) 217 // display message for messagethreshold period of time 218 if (hud->messagetimer < hud->messagethreshold) { 219 hud->messagetimer += hud->messagedt; 220 if(!hud->bHelp) { 221 myFont->DrawText(sprite, hud->messagestring.c_str(), -1, &textRectangle, DT_CENTER | DT_WORDBREAK, fontColor); 222 } 223 else { 224 myFont->DrawText(sprite, hud->messagestring.c_str(), -1, &helpRectangle, DT_LEFT | DT_WORDBREAK, fontColor); 225 } 226 } 227 #elif(1) // MG 228 // F1 toggles help screen display 229 if (hud->messagetimer < hud->messagethreshold) { 230 hud->messagetimer += hud->messagedt; 231 } 232 233 if(GLOBAL_display_help_screenQ) { 234 //std::wstring str_helpscreen(this->myScene->manager->HelpScreenString_Get()); 235 //this->myScene->manager-> 236 //myFont->DrawText(sprite, hud->messagestring.c_str(), -1, &helpRectangle, DT_LEFT | DT_WORDBREAK, fontColor); 237 //myFont->DrawText(sprite, str_helpscreen.c_str(), -1, &helpRectangle, DT_LEFT | DT_WORDBREAK, fontColor); 238 myFont->DrawText(sprite, this->myScene->manager->HelpScreenString_Get().c_str(), -1, &helpRectangle, DT_LEFT | DT_WORDBREAK, fontColor); 239 } 240 else { 241 // No help screen active => display message (if active) 242 if (hud->messagetimer < hud->messagethreshold) { 243 //hud->messagetimer += hud->messagedt; 244 //if(!hud->bHelp) { 245 myFont->DrawText(sprite, hud->messagestring.c_str(), -1, &textRectangle, DT_CENTER | DT_WORDBREAK, fontColor); 246 //} 247 } 248 } 249 #endif 221 250 222 251 //you win output: -
GTP/trunk/App/Games/Jungle_Rumble/src/WuermerDX9_2003.vcproj
r1388 r1389 202 202 AdditionalIncludeDirectories="..\..\..\..\..\..\NonGTP\Boost;.\physic\Cooking\include;.\physic\PhysXLoader\include;.\physic\Physics\include;.\physic\Foundation\include;Common" 203 203 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" 204 MinimalRebuild=" TRUE"204 MinimalRebuild="FALSE" 205 205 BasicRuntimeChecks="0" 206 206 RuntimeLibrary="0"
Note: See TracChangeset
for help on using the changeset viewer.