[Orxonox-commit 7789] r12381 - code/branches/3DPacman_FS19/src/modules/pacman

rueegseb at orxonox.net rueegseb at orxonox.net
Thu May 16 15:23:21 CEST 2019


Author: rueegseb
Date: 2019-05-16 15:23:21 +0200 (Thu, 16 May 2019)
New Revision: 12381

Modified:
   code/branches/3DPacman_FS19/src/modules/pacman/Pacman.cc
   code/branches/3DPacman_FS19/src/modules/pacman/Pacman.h
Log:
debug message removed

Modified: code/branches/3DPacman_FS19/src/modules/pacman/Pacman.cc
===================================================================
--- code/branches/3DPacman_FS19/src/modules/pacman/Pacman.cc	2019-05-16 13:10:44 UTC (rev 12380)
+++ code/branches/3DPacman_FS19/src/modules/pacman/Pacman.cc	2019-05-16 13:23:21 UTC (rev 12381)
@@ -47,6 +47,7 @@
         lives = 3;
         point = 0;
         level = 1;
+        laser = 5; //after that number of eaten pointSpheres, the laser appears
 
     }
 
@@ -93,16 +94,17 @@
 
         //ingame loop
         else{
-            if(point > 5){
+
+            //support by laser
+            if(point > laser){
               
                 for(PacmanPointSphere* pointer : ObjectList<PacmanPointSphere>()){
                     Vector3 pointSpherePosition = pointer->getPosition();
 
-                     if(pointSpherePosition.y > 0){
+                     if(pointSpherePosition.y > 0){// pointSphere above surface =not eaten yet
 
                         PacmanLaser* pos = *(ObjectList<PacmanLaser>().begin());
                         pos->setPosition(pointSpherePosition);
-                        orxout()<<"hellooooo" <<endl;
                         break;
                     }
 

Modified: code/branches/3DPacman_FS19/src/modules/pacman/Pacman.h
===================================================================
--- code/branches/3DPacman_FS19/src/modules/pacman/Pacman.h	2019-05-16 13:10:44 UTC (rev 12380)
+++ code/branches/3DPacman_FS19/src/modules/pacman/Pacman.h	2019-05-16 13:23:21 UTC (rev 12381)
@@ -113,6 +113,7 @@
             int level;
             int point;
             int lives;
+            int laser;
         
     };
 }



More information about the Orxonox-commit mailing list