Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11874 for code


Ignore:
Timestamp:
Apr 17, 2018, 8:15:52 AM (7 years ago)
Author:
dreherm
Message:

Tes Game 10

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  
    7676        bcolli = false;
    7777        for(int nrghost = 0; (nrghost<3) && (!bcolli); ++nrghost){
    78             bcolli = collis(ghosts[nrghost]->getPosition(), currentPosition)
     78            bcolli = collis(ghosts[nrghost]->getPosition(), currentPosition);
    7979        }
    8080        if(bcolli){
     
    117117    void Pacman::takePoint(PacmanPointSphere* taken){
    118118        ++point;
    119         if(point == totallevelpoint) this->levelUp;
     119        if(point == totallevelpoint) this->levelUp();
    120120
    121121        Vector3 postaken = taken->getPosition();
     
    161161        if (Highscore::exists())
    162162        {
    163             int score = this->getPoints();
     163            //int score = this->getPoints();
    164164            //Highscore::getInstance().storeScore("3DPacman", score, this->playerInfo_);
    165165        }
  • code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.h

    r11873 r11874  
    8989            float counter;
    9090            int pattern;
    91             float currentPosition;
     91           
    9292            float lastPosition;
    9393
     
    9898            bool bcolli = false;
    9999            Vector3 startposplayer = Vector3(0,10,245);
     100            int totallevelpoint = 1;
    100101
    101102
Note: See TracChangeset for help on using the changeset viewer.