Example #1
0
 private void AddProjectile(Vector2 position)
 {
     Projectile projectile = new Projectile();
     projectile.Initialize(GraphicsDevice.Viewport, projectileTexture, position, projectileBoost);
     projectiles.Add(projectile);
 }
 private void AddProjectileTwo(Vector2 position)
 {
     Projectile projectile = new Projectile();
     projectile.Initialize(GraphicsDevice.Viewport, projectileTexture, position);
     if ( playerFacingLeft )
     {
         projectile.ProjectileMoveSpeed *= -1;
     }
     projectilesTwo.Add(projectile);
 }