Ejemplo n.º 1
0
 public void createtower(Vector2 destination, tower ptower)
 {
     tower _tower;
     //get a fresh tower
     _tower = towers.unitpool.Retrieve().Item;
     _tower.clone(ptower);
     _tower.position = destination;
     _tower.add(physics);            
 }
Ejemplo n.º 2
0
 public void createtower(Vector2 destination, tower ptower, Vector2 direction)
 {
     tower _tower;
     _tower = towers.unitpool.Retrieve().Item;
     _tower.clone(ptower);
     _tower.position = destination;
     _tower.target = destination + direction;
 }
Ejemplo n.º 3
0
 public player()
     : base()
 {
     //create the pickups for the player
     pweapon = new w_machinegun();
     ptower = new t_machinegun();
     //room for more different custom pickups for a later time
 }