Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2014, 3:43:28 PM (9 years ago)
Author:
maxima
Message:

Changes of Nico. Upgrading the towers included.

File:
1 edited

Legend:

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

    r10151 r10158  
    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(); }
    4454    }
    4555
Note: See TracChangeset for help on using the changeset viewer.