Ejemplo n.º 1
0
 public void Shoot(Creep cr,Game1 game,Tower tower)
 {
     System.Diagnostics.Debug.WriteLine("HERE!");
     Projectile p = new Projectile(tower.pos, game.texProj, game);
     //p.Damage = this.Damage;
     //p.Speed = this.Speed;
     p.Damage = 5;
     p.Speed = 2;
     p.setCreep(cr);
     game.Projs.Add(p);
 }
Ejemplo n.º 2
0
 public void spawnCreep(GameTime gameTime, Vector2 vec, Game1 game)
 {
     if (gameTime.TotalGameTime.TotalSeconds > spawnSeconds)
     {
         Creep cr = new Creep(vec, game.texCreep, game);
         game.Creeps.Add(cr);
         spawnSeconds = (int)(gameTime.TotalGameTime.TotalSeconds + 5);
     }
 }
Ejemplo n.º 3
0
 public void setCreep(Creep c)
 {
     this.creep = c;
 }