Example #1
0
 public Player() : base()
 {
     _position      = Vector2.Zero;
     _stand         = new Image();
     _ammo          = Upgrades.ammunition.Fire;
     damageModifier = 0;
     speedModifier  = 1;
 }
Example #2
0
 public static Projectile Shoot(Vector2 _position, int damageMod, Upgrades.ammunition x, bool isAlly = false)
 {
     if (Upgrades.ammunition.Laser == x)
     {
         return(CreateLaserShot(_position, damageMod, isAlly));
     }
     else if (Upgrades.ammunition.Fire == x)
     {
         return(CreateFireShot(_position, damageMod, isAlly));
     }
     else if (Upgrades.ammunition.Gun == x)
     {
         return(CreateGunShot(_position, damageMod, isAlly));
     }
     return(null);
 }
Example #3
0
 public void upgradeWeapon(Upgrades.ammunition x)
 {
     ammo = x;
 }