示例#1
0
        public Projectile(Vector2 pos,Enemy e,double damage,Vector2 speed)
        {
            this.pos = pos;
            this.speed = -1*speed;
            this.e = e;
            this.damage = damage;

            this.LoadContent(GV.content);

            GV.ProjectileList.Add(this);
        }
示例#2
0
 public virtual void Update(GraphicsDevice graphics)
 {
     this.vectorToTarget=this.TrackTarget();
     //Fire
     if (this.LastFireTick+60 <= GV.tick) {
         this.Fire();
         this.LastFireTick=GV.tick;
     }
     if (!GV.EnemyList.Contains(this.target)) {
         this.target = GV.EnemyList[0];
     }
 }
示例#3
0
 public Tower(Vector2 pos,Grid grid,float layer)
 {
     this.pos = pos;
     this.layer = layer;
     this.target = GV.EnemyList[0];
 }