Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12381


Ignore:
Timestamp:
May 16, 2019, 3:23:21 PM (6 years ago)
Author:
rueegseb
Message:

debug message removed

Location:
code/branches/3DPacman_FS19/src/modules/pacman
Files:
2 edited

Legend:

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

    r12380 r12381  
    4848        point = 0;
    4949        level = 1;
     50        laser = 5; //after that number of eaten pointSpheres, the laser appears
    5051
    5152    }
     
    9495        //ingame loop
    9596        else{
    96             if(point > 5){
     97
     98            //support by laser
     99            if(point > laser){
    97100             
    98101                for(PacmanPointSphere* pointer : ObjectList<PacmanPointSphere>()){
    99102                    Vector3 pointSpherePosition = pointer->getPosition();
    100103
    101                      if(pointSpherePosition.y > 0){
     104                     if(pointSpherePosition.y > 0){// pointSphere above surface =not eaten yet
    102105
    103106                        PacmanLaser* pos = *(ObjectList<PacmanLaser>().begin());
    104107                        pos->setPosition(pointSpherePosition);
    105                         orxout()<<"hellooooo" <<endl;
    106108                        break;
    107109                    }
  • code/branches/3DPacman_FS19/src/modules/pacman/Pacman.h

    r12365 r12381  
    114114            int point;
    115115            int lives;
     116            int laser;
    116117       
    117118    };
Note: See TracChangeset for help on using the changeset viewer.