public Level(VoxelRenderer voxelRenderer) { Initialize(); lightDirection.Normalize(); voxelRenderer.Reset(GetMap(), lightDirection); SetInstanceUpdateMethod(voxelRenderer.Update); }
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(); }
public Level2(VoxelRenderer voxelRenderer) : base(voxelRenderer) { }
public Level4(VoxelRenderer voxelRenderer) : base(voxelRenderer) { }
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(); }