Exemple #1
0
 public WorldMap(Camera camera)
 {
     Camera = camera;
     Instance = this;
     new SimulationWorld(_mapX, _mapY);
 }
Exemple #2
0
        /// <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
        }