Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2018, 1:44:20 PM (6 years ago)
Author:
dreherm
Message:

Collisionshapes and Powerpoints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/src/modules/pacman/Pacman.cc

    r11954 r11956  
    4545
    4646       // firstGame = true;                   //needed for the HUD
    47         lives = 10;
     47        lives = 3;
    4848        point = 0;
    4949        level = 1;
     
    6868        //orxout() << timer << endl;
    6969        //orxout() << afraid << endl;
     70        //orxout() << totallevelpoint << endl;
    7071
    7172
     
    167168
    168169    void Pacman::posreset(){
    169         for(PacmanGhost* nextghost : ObjectList<PacmanGhost>()){
    170             nextghost->resetGhost();
     170        for(int i = 0; i<4; ++i){
     171            ghosts[i]->resetGhost();
    171172        }
    172173        player->setPosition(startposplayer);
     
    206207                nextghost->dontmove =  true;
    207208            };
    208            
    209209            i++;
    210210        }
     211
     212        totallevelpoint = ObjectList<PacmanPointSphere>().size();
     213
    211214    }
    212215
Note: See TracChangeset for help on using the changeset viewer.