Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2012, 1:22:20 PM (13 years ago)
Author:
jo
Message:

Some hints added on how to proceed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/newlevel2012/src/modules/towerdefense/Tower.cc

    r9141 r9143  
    3131                */
    3232    }
    33        
     33        // This function is called whenever a player presses the up or the down key.
     34    // You have to implement what happens when the up or the down key is pressed.
     35    // value.x < 0 means: down key is pressed.
     36    // I suggest to create a new class which is a controllable entity I will refer to as "TowerMover". This is the controllable entity that the
     37    // player controls in order to move the tower along the centerpoint and in order to place the tower at the appropriate position.
     38    //
     39
     40    // The tower itsself is controlled by a WayPointPatroController at the instance you place it on the centerpoint.
     41    //(don't forget to set the team_ parameter such that all tower are in the same team)
     42
     43    //How to move a tower: simply attach the tower to the TowerMover
     44    //How to place a tower: detach the tower from the TowerMover
     45
    3446    /**
    3547         @brief
Note: See TracChangeset for help on using the changeset viewer.