예제 #1
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            background.Update(gameTime);
            pokemonName.Update(gameTime);
            pokemonLevel.TextValue = "Lvl " + pokemon.LVL.ToString();
            pokemonLevel.Update(gameTime);
            hpbar.Update(gameTime);

            if (mine)
            {
                hpStatus.TextValue = pokemon.HP.ToString() + " / " + pokemon.MaxHP.ToString();
                hpStatus.Update(gameTime);
                expbar.Update(gameTime);
            }
        }
예제 #2
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            Background.Update(gameTime);
            pokemonImage.Update(gameTime);
            pokemonName.Update(gameTime);
            pokemonLevel.Update(gameTime);
            hpbar.Update(gameTime);
            hpStatus.TextValue = pokemon.HP.ToString() + " / " + pokemon.MaxHP.ToString();
            hpStatus.Update(gameTime);
            expbar.Update(gameTime);

            for (int i = 0; i < 6; ++i)
            {
                pokemonStats[i].Update(gameTime);
            }
        }