Exemple #1
0
        public override void Load(IServiceProvider provider, World world, Vector2 position)
        {
            base.Load(provider, world, position);
            #if !EDITOR

            SetupPlayerSettings();

            _animations.Clear();
            AddAnimations();

            _steamSprite = new Sprite();
            _steamSprite.Init(Vector2.Zero, "Assets/Images/Effects/steam");
            _steamSprite.Load(_content, world);
            _steamSprite.CastShadows = true;
            _steamSprite.Alpha = 0.6f;
            _steamSprite.AlphaDecay = 0.05f;
            _steamSprite.RotationSpeed = 0.1f;
            _steamSprite.Scale = 0.3f;
            _steamSprite.ScaleFactor = 0.01f;

            #endif
        }