Exemplo n.º 1
0
        public void Initialize(Texture2D texture)
        {
            //set texture
            PlayerTexture = texture;

            //set state
            Active = true;

            //set health
            Health = 100;

            sprite = new BasicSprite(graphics.GraphicsDevice, Position, spriteEffect, PlayerTexture);
        }
Exemplo n.º 2
0
 public void LoadSprite(BasicSprite sprite)
 {
     sprites.Add(sprite);
 }