public Weapon(string name, int cooldown, int damage, float bulletSpeed, float recoil, Mode mode, List <Texture2D> animationFrames, int animationSpeed, Animation.Mode animationMode) { _animation = new Animation(animationFrames, animationSpeed, animationMode); _mode = mode; _cooldown = cooldown; image = _animation.CurrentFrame; IsExpired = false; Velocity = Vector2.Zero; _bulletSpeed = bulletSpeed; _recoil = recoil; _damage = damage; }
public Effect(Vector2 position, List <Texture2D> animationFrames, int animationSpeed, Animation.Mode animationMode) { _animation = new Animation(animationFrames, animationSpeed, animationMode); image = _animation.CurrentFrame; Position = position; Velocity = Vector2.Zero; IsExpired = false; _animation.Play = true; }