예제 #1
0
 /// <summary>
 /// reload the apperance using the character apperanceKeys
 /// </summary>
 public void RefreshApperance()
 {
     appearanceSprites = new Sprite[apperanceKeys.Length]; //clear the whole sprite list.
     for (int i = 0; i < apperanceKeys.Length; i++)
     {
         appearanceSprites[i] = CharacterAppearance.GetSprite(characterSex, (slot)i, apperanceKeys[i]);
     }
 }
예제 #2
0
        /// <summary>
        /// Randomize just the Body, Hair, and Facial Slots
        /// </summary>
        public void RandomApperance()
        {
            apperanceKeys[(int)slot.body]   = CharacterAppearance.RandomApperanceSlotKey(characterSex, slot.body);
            apperanceKeys[(int)slot.facial] = CharacterAppearance.RandomApperanceSlotKey(characterSex, slot.facial);
            apperanceKeys[(int)slot.hair]   = CharacterAppearance.RandomApperanceSlotKey(characterSex, slot.hair);

            //RefreshApperance();
        }
예제 #3
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            //load static recorces used thought the game
            Fonts.LoadContent(Content);
            CharacterAppearance.LoadContent(Content);



            debugConsole.LoadContent(Content);
            // TODO: use this.Content to load your game content here


            //
        }