TapTitan_DeanoDan.Hero.LoadContent C# (CSharp) Méthode

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void
        public void LoadContent()
        {
            player = content.Load<Texture2D>("HeroSprite/Goku1");

            idleAnimation = new Animation(player, 0.1f, true, 6);

            int positionX = (Level.windowWidth / 2) - (idleAnimation.FrameWidth / 4);
            int positionY = (Level.windowHeight / 2) - (idleAnimation.FrameHeight / 4) - 60;
            playerPosition = new Vector2((float)positionX, (float)positionY);

            spritePlayer.PlayAnimation(idleAnimation);
        }