Exemplo n.º 1
0
            public static void Update(Player player)
            {
                //animation.RemoveAllFromQueue();

                //if (player.Health <= 0)
                //{
                //    animation.AddToQueue("dead");
                //}
                //else if (player.IsPoisoned)
                //{
                //    animation.AddToQueue("poison");
                //}
                //else
                //{
                //    animation.AddToQueue("normal");
                //}

                animation.Update();

                health = player.Health;

                if (health < 0)
                {
                    health = 0;
                }

                maxHealth = player.MaxHealth;
            }
Exemplo n.º 2
0
            public static void Update(Player player)
            {
                animation.Update();

                score = player.Score;
            }