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