Esempio n. 1
0
        /// <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
        }
Esempio n. 2
0
 private void _RendererMap(Map map)
 {
     this.map = map;
     this.effect = new BasicEffect(Device);
 }
Esempio n. 3
0
 public RendererMap(SpriteBatch batch, Map map)
     : base(batch)
 {
     _RendererMap(map);
 }
Esempio n. 4
0
 public RendererMap(GraphicsDevice device, Map map)
     : base(device)
 {
     _RendererMap(map);
 }
Esempio n. 5
0
 public Block(Map map)
 {
     this.map = map;
     this.Type = BlockType.Stone;
     this.Height = 1;
 }