Exemplo n.º 1
0
        private void AddProjectile(Vector2 position)
        {
            Projectile projectile = new Projectile();
            projectile.Initialize(GraphicsDevice.Viewport, projectileTexture, position);

            projectiles.Add(projectile);
        }
Exemplo n.º 2
0
        private void AddProjectile(Vector2 position, float angle, Player player)
        {
            Projectile projectile = new Projectile();
            projectile.Initialize(GraphicsDevice.Viewport, projectileTexture, position, angle, player, textures);

            projectiles.Add(projectile);

            tankFire.Play(0.6f, 0, 0);
        }