示例#1
0
        public Level(VoxelRenderer voxelRenderer)
        {
            Initialize();

            lightDirection.Normalize();
            voxelRenderer.Reset(GetMap(), lightDirection);
            SetInstanceUpdateMethod(voxelRenderer.Update);
        }
示例#2
0
        public Level(VoxelRenderer voxelRenderer)
        {
            Initialize();

            lightDirection.Normalize();
            voxelRenderer.Reset(GetMap(), lightDirection);
            SetInstanceUpdateMethod(voxelRenderer.Update);
        }
示例#3
0
        protected override void LoadContent()
        {
            _voxelRenderer = new VoxelRenderer(GraphicsDevice, Content);
            _currentLevel  = new Level1(_voxelRenderer);

            _seedbar = new Seedbar(Window.NativeWindow as System.Windows.Forms.Control);
            _seedbar.LoadContent(GraphicsDevice, Content);

            _background = new Background(GraphicsDevice);

            _spriteBatch = new SpriteBatch(GraphicsDevice);
            _largeFont   = Content.Load <SpriteFont>("largefont.tkfnt");
            _pixTexture  = Content.Load <Texture2D>("pixel.png");

            base.LoadContent();
        }
示例#4
0
 public Level2(VoxelRenderer voxelRenderer)
     : base(voxelRenderer)
 {
 }
示例#5
0
 public Level4(VoxelRenderer voxelRenderer)
     : base(voxelRenderer)
 {
 }
示例#6
0
        protected override void LoadContent()
        {
            _voxelRenderer = new VoxelRenderer(GraphicsDevice, Content);
            _currentLevel = new Level1(_voxelRenderer);

            _seedbar = new Seedbar(Window.NativeWindow as System.Windows.Forms.Control);
            _seedbar.LoadContent(GraphicsDevice, Content);

            _background = new Background(GraphicsDevice);

            _spriteBatch = new SpriteBatch(GraphicsDevice);
            _largeFont = Content.Load<SpriteFont>("largefont.tkfnt");
            _pixTexture = Content.Load<Texture2D>("pixel.png");

            base.LoadContent();
        }