Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2014, 5:06:11 PM (11 years ago)
Author:
erbj
Message:

waves added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseHS14/src/modules/towerdefense/TowerDefenseEnemy.cc

    r10142 r10151  
    4242        SUPER(TowerDefenseEnemy, tick, dt);
    4343
    44         //ArtificialController* controller = (ArtificialController*)this->getController();
    45         Vector3 ship = this->getRVWorldPosition();
    46         Vector3* endpoint = new Vector3(500, 700, 150);
    47 
    48         float distance = ship.distance(*endpoint);
    49 
    50         //orxout() << "distance" << distance << endl;
    51         if(distance <50){
    52         //      orxout() << "ENEMY KILLED!!!!" << endl;
    53                 this->destroy(); }
    5444    }
    5545
Note: See TracChangeset for help on using the changeset viewer.