Changeset 1406


Ignore:
Timestamp:
09/18/06 02:54:51 (18 years ago)
Author:
giegl
Message:

GTPD - Jungle Rumble - GLOBAL_player_freezeQ (F6 kill opponents, F7 freeze player) working

Location:
GTP/trunk/App/Games/Jungle_Rumble
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Games/Jungle_Rumble/bin/config.xml

    r1403 r1406  
    33        <width>1024</width> 
    44        <height>768</height> 
    5         <fullscreen>0</fullscreen> <!-- 1 = TRUE, 0 = FALSE --> 
     5        <fullscreen>1</fullscreen> <!-- 1 = TRUE, 0 = FALSE --> 
    66        <cubemapsize>512</cubemapsize> <!-- 512, 1024, 2048, ... - current ATI cards have problems with size above 512 --> 
    77        <physxdebug>0</physxdebug>   <!-- 1 = TRUE, 0 = FALSE --> 
  • GTP/trunk/App/Games/Jungle_Rumble/src/GameManager.cpp

    r1403 r1406  
    105105                                                #if(0) 
    106106                                                        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); 
    107                                                 #elif(0) // MG 
    108                                                         std::string s(""); 
    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"; 
    110                                                          
    111                                                         s += "\n F9: Depth Imposters On/Off "; 
    112                                                         if(this->gs.useDepthImposter) { s+= "[ON]"; } else { s+= "[OFF]"; } 
    113                                                          
    114                                                         s += "\n F10: Raytracer On/Off "; 
    115                                                         if(this->gs.useRaytracer) { s+= "[ON]"; } else { s+= "[OFF]"; } 
    116                                                          
    117                                                         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"; 
    118                                                         this->gs.getHUD()->message(s, 2, 0.01f, true); 
    119107                                                #elif(1) // MG 
    120108                                                        // Toggle help with F1 
     
    146134                                case VK_F6: 
    147135                                        //this->gs.getHUD()->message("hallo martin", 3, 0.01f); 
     136                                        if(this->activeScene == &this->gs) { gs.hasWon();       } // MG 
    148137                                        break; 
    149138                                case VK_F7: 
  • GTP/trunk/App/Games/Jungle_Rumble/src/GameScene.cpp

    r1403 r1406  
    136136        this->currentlypaused = false; 
    137137        this->preparepaused = false; 
     138 
     139        GLOBAL_player_freezeQ = false; 
     140 
    138141        Scene::initScene(_manager); 
    139142         
     
    991994                } 
    992995                if(this->won && this->resultShowingTimer<=5.75f) { 
    993                         //this->player->resetValues(); 
    994                         GLOBAL_player_freezeQ = true; 
     996                        this->player->resetValues(); 
     997                        //GLOBAL_player_freezeQ = true; 
    995998                        this->ignoreKeys = true; 
    996999                } 
  • GTP/trunk/App/Games/Jungle_Rumble/src/UserPlayer.cpp

    r1403 r1406  
    7373        if(GLOBAL_player_freezeQ) {  
    7474                this->setBehaveAs(Node::KINEMATIC); 
     75                if(this->winPe->isEmitting()) { 
     76                        this->winPe->update(dt); 
     77                } 
    7578                return;  
    7679        } 
Note: See TracChangeset for help on using the changeset viewer.