예제 #1
0
파일: Game1.cs 프로젝트: steffan88/Bevelle
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            _camera = new ControlledCamera();
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            _worldMap = new WorldMap(_camera);
            _worldMap.Load(Content);
            _worldMap.Create();

            _cursor = new Cursor();
            _cursor.Load(Content);

            AsyncPathfinding.Start();

            GuiSystem.Load(GraphicsDevice);

            _light = Content.Load<Texture2D>("light");

            PrioritySystem.CreatePriorityBoxes();

            // TODO: use this.Content to load your game content here
        }
예제 #2
0
파일: Game1.cs 프로젝트: steffan88/Bevelle
        /// <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);
            _worldMap = new WorldMap();
            _worldMap.Load(Content);
            _worldMap.Create();

            _cursor = new Cursor(_worldMap);
            _cursor.Load(Content);

            TaskManager.Start();
            // TODO: use this.Content to load your game content here
        }