Changeset 11874
- Timestamp:
- Apr 17, 2018, 8:15:52 AM (7 years ago)
- Location:
- code/branches/3DPacman_FS18/src/modules/Pacman
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.cc
r11873 r11874 76 76 bcolli = false; 77 77 for(int nrghost = 0; (nrghost<3) && (!bcolli); ++nrghost){ 78 bcolli = collis(ghosts[nrghost]->getPosition(), currentPosition) 78 bcolli = collis(ghosts[nrghost]->getPosition(), currentPosition); 79 79 } 80 80 if(bcolli){ … … 117 117 void Pacman::takePoint(PacmanPointSphere* taken){ 118 118 ++point; 119 if(point == totallevelpoint) this->levelUp ;119 if(point == totallevelpoint) this->levelUp(); 120 120 121 121 Vector3 postaken = taken->getPosition(); … … 161 161 if (Highscore::exists()) 162 162 { 163 int score = this->getPoints();163 //int score = this->getPoints(); 164 164 //Highscore::getInstance().storeScore("3DPacman", score, this->playerInfo_); 165 165 } -
code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.h
r11873 r11874 89 89 float counter; 90 90 int pattern; 91 float currentPosition;91 92 92 float lastPosition; 93 93 … … 98 98 bool bcolli = false; 99 99 Vector3 startposplayer = Vector3(0,10,245); 100 int totallevelpoint = 1; 100 101 101 102
Note: See TracChangeset
for help on using the changeset viewer.