Changeset 12381 for code/branches/3DPacman_FS19/src/modules
- Timestamp:
- May 16, 2019, 3:23:21 PM (6 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
r12380 r12381 48 48 point = 0; 49 49 level = 1; 50 laser = 5; //after that number of eaten pointSpheres, the laser appears 50 51 51 52 } … … 94 95 //ingame loop 95 96 else{ 96 if(point > 5){ 97 98 //support by laser 99 if(point > laser){ 97 100 98 101 for(PacmanPointSphere* pointer : ObjectList<PacmanPointSphere>()){ 99 102 Vector3 pointSpherePosition = pointer->getPosition(); 100 103 101 if(pointSpherePosition.y > 0){ 104 if(pointSpherePosition.y > 0){// pointSphere above surface =not eaten yet 102 105 103 106 PacmanLaser* pos = *(ObjectList<PacmanLaser>().begin()); 104 107 pos->setPosition(pointSpherePosition); 105 orxout()<<"hellooooo" <<endl;106 108 break; 107 109 } -
code/branches/3DPacman_FS19/src/modules/pacman/Pacman.h
r12365 r12381 114 114 int point; 115 115 int lives; 116 int laser; 116 117 117 118 };
Note: See TracChangeset
for help on using the changeset viewer.