Changeset 12389 for code/branches/3DPacman_FS19/src
- Timestamp:
- May 16, 2019, 4:37:19 PM (5 years ago)
- Location:
- code/branches/3DPacman_FS19/src/modules/pacman
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS19/src/modules/pacman/Pacman.cc
r12386 r12389 59 59 } 60 60 61 62 PacmanLaser* pos = *(ObjectList<PacmanLaser>().begin()); 63 pos->resetPacmanLaser(); 64 65 66 61 67 for(PacmanPointAfraid* next : ObjectList<PacmanPointAfraid>()){ 62 68 next->resetPacmanPointAfraid(); … … 97 103 98 104 //support by laser 99 if(point > laser ){105 if(point > laser + 240*(level-1)){ 100 106 101 107 for(PacmanPointSphere* pointer : ObjectList<PacmanPointSphere>()){ … … 288 294 i++; 289 295 } 290 291 296 292 297 //Set maximum of points of first level -
code/branches/3DPacman_FS19/src/modules/pacman/PacmanLaser.cpp
r12380 r12389 46 46 void PacmanLaser::resetPacmanLaser(){ 47 47 resetposition = this->getPosition(); 48 resetposition.y = - 50;48 resetposition.y = -20000; 49 49 this->setPosition(resetposition); 50 50 }
Note: See TracChangeset
for help on using the changeset viewer.