- Timestamp:
- May 24, 2018, 4:22:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/Pacman.cc
r11992 r12003 121 121 122 122 //Check for collision with PointSpheres and PacmanPointAfraid 123 i = 0;124 123 for(PacmanPointSphere* nextsphere : ObjectList<PacmanPointSphere>()){ 125 if(collis(nextsphere->getPosition(),currentPosition))126 takePoint(nextsphere);124 if(nextsphere->taken(currentPosition)) 125 takePoint(nextsphere); 127 126 } 128 127 … … 208 207 return; 209 208 } 210 //Set PointSphere under map211 Vector3 postaken = taken->getPosition();212 postaken.y = -50;213 taken->setPosition(postaken);214 209 } 215 210
Note: See TracChangeset
for help on using the changeset viewer.