Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 24, 2019, 10:38:07 PM (5 years ago)
Author:
peterf
Message:

continued brown and cyan pacman. Pink pacman still causes SIGSEV

File:
1 edited

Legend:

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

    r12319 r12322  
    1616        this->target_x=0;
    1717        this->target_z=15;
    18         this->lastPlayerPassedPoint=Vector3(70,10,-135);
     18        this->lastPlayerPassedPoint=Vector3(0,0,0); //Vector3(70,10,-135);
    1919        this->isNearPlayer=false;
    2020         
     
    8181            }
    8282            //std::cout<<"LemanExpress4"<<endl;
     83        }
     84        else if(this->lastPlayerPassedPoint==Vector3(0,0,0)){
     85            //as long as the player has not started the game,
     86            //i.e. lastPlayerPastPoint is (0,0,0), red pacman
     87            //cannot possibly move, because it needs the position
     88            //of the player to move accordingly
     89
     90            this->ismoving=false;
    8391        }
    8492
Note: See TracChangeset for help on using the changeset viewer.