Esempio n. 1
0
        /// <summary>
        /// Loads the content for the teddy bear and prepare texture
        /// </summary>
        /// <param name="contentManager">the content manager to use</param>
        /// <param name="spriteName">the name of the sprite for the teddy bear</param>
        private void LoadContent(ContentManager contentManager, string spriteName)
        {
            // Load entity texture
            _sprite = contentManager.Load <Texture2D>(spriteName);

            // Create field of view texture
            _fieldOfView = GraphicsHelper.CreateCircle(Behavior.ViewDistance,
                                                       _world.GraphicsDevice,
                                                       _color);
        }