Пример #1
0
        /// <summary>
        /// RESET WINDOW
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            AnimationProvider.EnableAnimation();

            // Set Window Opacity to 100%
            SpotifyProvider.ResetAndInitOpacity();
            SpotifyProvider.ResetWindow();
        }
Пример #2
0
        public PlayerActor(World world, AnimationProvider animations, SystemAnimationProvider sysanimations,
                           ActionProvider actions)
            : base(world, animations, sysanimations, actions)
        {
            ImmuneGravity  = false;
            DefaultGravity = 1.0f;
            Priority       = 100;

            CollisionEnabled = true;
        }
Пример #3
0
        public BulletActor(World world, AnimationProvider animations, SystemAnimationProvider sysanimations,
                           ActionProvider actions)
            : base(world, animations, sysanimations, actions)
        {
            ImmuneGravity = true;
            IsInAir       = true;

            DefaultGravity   = 0.0f;
            Priority         = 300;
            CollisionEnabled = false;
        }
Пример #4
0
        public Actor(World theWorld, AnimationProvider animations, SystemAnimationProvider sysanimations,
                     ActionProvider actions)
        {
            this.World = theWorld;

            this.Animations       = animations;
            this.SystemAnimations = sysanimations;
            this.Actions          = actions;

            this.ScaleX = 1;
            this.ScaleY = 1;

            this.Alpha = 1.0f;
            this.Red   = 1.0f;
            this.Green = 1.0f;
            this.Blue  = 1.0f;

            this.ImmuneGravity = true;

            this.IsInAir = true;
        }
Пример #5
0
 public AnimationManager(Animator animator, AnimationProvider animationProvider)
 {
     this.animator          = animator;
     this.animationProvider = animationProvider;
 }