Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12365


Ignore:
Timestamp:
May 9, 2019, 4:24:20 PM (5 years ago)
Author:
rueegseb
Message:

Laser boom boom

Location:
code/branches/3DPacman_FS19/src/modules/pacman
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS19/src/modules/pacman/Pacman.cc

    r12338 r12365  
    8787        if(deathtime != 0){
    8888            dead(dt);
     89
     90            if(point > 230){
     91             
     92                for(PacmanPointSphere* pointer : ObjectList<PacmanPointSphere>()){
     93                     pointSpherePosition = pointer->getPosition();
     94
     95                     if(pointSpherePosition.y > 0){
     96                        PacmanLaser* pos = ObjectList<PacmanLaser>(); //to do
     97                        pos->setPosition(pointSpherePosition);
     98                        break;
     99                    }
     100
     101
     102                }
     103
     104            }
     105         
    89106        }
    90107
     
    94111            //Register ghosts
    95112            int i = 0;
    96             for(PacmanGhost* nextghost : ObjectList<PacmanGhost>()){
     113            for(PacmanGhost* nextghost: ObjectList<PacmanGhost>()){
    97114                ghosts[i] = nextghost;
    98115                i++;
     
    206223    void Pacman::takePoint(PacmanPointSphere* taken){
    207224        ++point;
     225        }
    208226        if(point == totallevelpoint){
    209227            this->levelUp();
  • code/branches/3DPacman_FS19/src/modules/pacman/Pacman.h

    r12313 r12365  
    4040#include "PacmanPointSphere.h"
    4141#include "PacmanPointAfraid.h"
    42 
     42#include "PacmanLaser.h"
    4343
    4444#include "core/EventIncludes.h"
  • code/branches/3DPacman_FS19/src/modules/pacman/PacmanPointSphere.cc

    r12009 r12365  
    8282      return false;
    8383    }
     84    bool showLaserPointSphere = false;
     85
     86
     87   
    8488
    8589    //Reset position
Note: See TracChangeset for help on using the changeset viewer.