/// <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.
            batch = new SpriteBatch(GraphicsDevice);

            map = new Map();
            rendererMap = new RendererMap(GraphicsDevice, map);
            // TODO: use this.Content to load your game content here
        }
 private void _RendererMap(Map map)
 {
     this.map = map;
     this.effect = new BasicEffect(Device);
 }
 public RendererMap(SpriteBatch batch, Map map)
     : base(batch)
 {
     _RendererMap(map);
 }
 public RendererMap(GraphicsDevice device, Map map)
     : base(device)
 {
     _RendererMap(map);
 }
Exemple #5
0
 public Block(Map map)
 {
     this.map = map;
     this.Type = BlockType.Stone;
     this.Height = 1;
 }