Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2019, 1:07:32 AM (6 years ago)
Author:
peterf
Message:

Red and Pink seem to work better

File:
1 edited

Legend:

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

    r12323 r12325  
    6464        }*/
    6565
     66            std::cout<<this->lastPlayerPassedPoint<<endl;
     67            std::cout<<this->pointInFrontOfPlayer<<endl;
    6668
    6769
     
    109111
    110112            int directionV = findPlayerTravDir (lastPlayerPassedPoint, this->getPlayerPos());
    111             this->pointInFrontOfPlayer=getPointInFrontOfPacman(lastPlayerPassedPoint, directionV);
     113            this->pointInFrontOfPlayer=frontPosition(); //getPointInFrontOfPacman(lastPlayerPassedPoint, directionV);
    112114
    113115
     
    146148        Vector3 nextTarget;
    147149
     150        if(redPosP!=playerPos){
    148151           nextTarget = getShortestPath(redPosP, playerPos);
    149        
    150            setNewTargetGhost(nextTarget);
     152       setNewTargetGhost(nextTarget);
     153        }
    151154        }
    152155
    153 
    154 
    155     //save last checkpoint crossed by player
    156     /*
    157         void PacmanGelb::tick(float dt){ //last passed point of player
    158             for(int u=0; u < 67; u++){
    159             if(findpos(this->getPosition(), possibleposition[u])){
    160             this->lastPassedPoint=possibleposition[u];
    161                     }
    162                 }
    163         }
    164     */
    165 
    166156}
Note: See TracChangeset for help on using the changeset viewer.