Changeset 1403
- Timestamp:
- 09/18/06 02:18:37 (18 years ago)
- Location:
- GTP/trunk/App/Games/Jungle_Rumble
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Games/Jungle_Rumble/bin/config.xml
r1398 r1403 3 3 <width>1024</width> 4 4 <height>768</height> 5 <fullscreen> 1</fullscreen> <!-- 1 = TRUE, 0 = FALSE -->5 <fullscreen>0</fullscreen> <!-- 1 = TRUE, 0 = FALSE --> 6 6 <cubemapsize>512</cubemapsize> <!-- 512, 1024, 2048, ... - current ATI cards have problems with size above 512 --> 7 7 <physxdebug>0</physxdebug> <!-- 1 = TRUE, 0 = FALSE --> -
GTP/trunk/App/Games/Jungle_Rumble/src/GameManager.cpp
r1399 r1403 14 14 15 15 bool GLOBAL_display_help_screenQ = false; 16 bool GLOBAL_player_freezeQ = false; 16 17 17 18 … … 148 149 case VK_F7: 149 150 //this->gs.getHUD()->displayLose(3, 0.01f); 151 GLOBAL_player_freezeQ = !GLOBAL_player_freezeQ; 150 152 break; 151 153 case VK_F8: -
GTP/trunk/App/Games/Jungle_Rumble/src/GameScene.cpp
r1401 r1403 23 23 #define M_PI 3.1415 24 24 25 extern bool GLOBAL_player_freezeQ; 26 25 27 GameScene::GameScene(void) : Scene() 26 28 { … … 47 49 this->currentlypaused = false; 48 50 this->preparepaused = false; 51 52 this->ignoreKeys = false; 49 53 } 50 54 … … 121 125 122 126 void GameScene::initScene(GameManager &_manager) { 127 this->ignoreKeys = false; 123 128 this->resultVisible = false; 124 129 this->won = false; … … 757 762 758 763 //Update Player instructions 759 if(this->keyDown['W']) player->accelerate(); 760 if(this->keyDown['S']) player->stop(); 761 if(this->keyDown['A']) player->toLeft(); 762 if(this->keyDown['D']) player->toRight(); 764 if(!ignoreKeys) { 765 if(this->keyDown['W']) player->accelerate(); 766 if(this->keyDown['S']) player->stop(); 767 if(this->keyDown['A']) player->toLeft(); 768 if(this->keyDown['D']) player->toRight(); 769 } 763 770 764 771 //Set active Weapons … … 983 990 this->recalcTransformations = false; 984 991 } 992 if(this->won && this->resultShowingTimer<=5.75f) { 993 //this->player->resetValues(); 994 GLOBAL_player_freezeQ = true; 995 this->ignoreKeys = true; 996 } 985 997 if(this->resultShowingTimer<=0) { 986 998 this->manager->switchToMenueScene(); -
GTP/trunk/App/Games/Jungle_Rumble/src/GameScene.h
r1382 r1403 176 176 float resultShowingTimer; 177 177 178 178 bool ignoreKeys; 179 179 }; -
GTP/trunk/App/Games/Jungle_Rumble/src/Player.cpp
r1401 r1403 390 390 } 391 391 392 392 393 void Player::update(float dt) { 394 393 395 if(this->sleepCounter++<10) { 394 396 if(this->sleepCounter==2) { … … 478 480 } 479 481 } 482 480 483 481 484 void Player::updateDrivingPlayer(float dt) { -
GTP/trunk/App/Games/Jungle_Rumble/src/UserPlayer.cpp
r1378 r1403 66 66 } 67 67 }*/ 68 69 extern bool GLOBAL_player_freezeQ; 70 71 void UserPlayer::update(float dt) 72 { 73 if(GLOBAL_player_freezeQ) { 74 this->setBehaveAs(Node::KINEMATIC); 75 return; 76 } 77 78 Player::update(dt); 79 } -
GTP/trunk/App/Games/Jungle_Rumble/src/UserPlayer.h
r1378 r1403 17 17 /*void initWin(); 18 18 void initLose(); 19 */ 20 virtual void update(float dt); 19 21 20 virtual void update(float dt);*/21 22 protected: 22 23 float finalTimer;
Note: See TracChangeset
for help on using the changeset viewer.