Beispiel #1
0
        public void LoadScene(Scene scene)
        {
            this.level = scene;

            Input.ClearInstance();
            Gizmos.ClearInstance();
            RegisterKeyEvents();

            this.mainTarget      = new RenderTarget2D(GraphicsDevice, (int)level.Width, (int)level.Height);
            this.lightningTarget = new RenderTarget2D(GraphicsDevice, (int)level.Width, (int)level.Height);

            this.target = new RenderTarget2D(GraphicsDevice, (int)level.Width, (int)level.Height);

            this.level.Initialize(Content, this);
        }