Example #1
0
 public WorldMap(Camera camera)
 {
     Camera = camera;
     Instance = this;
     new SimulationWorld(_mapX, _mapY);
 }
Example #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()
        {
            GlobalContent = new ContentManager(Services);
            GlobalContent.RootDirectory = "Content";

            _camera = new ControlledCamera();
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            _worldMap = new WorldMap(_camera);
            LoadCursor();
            LoadGui();
            LoadWorld();

            LoadPathfinding();

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

            // TODO: use this.Content to load your game content here
        }