Exemplo n.º 1
0
        private WorldView()
        {
            backgroundTex = Recellection.textureMap.GetTexture(Globals.TextureTypes.white);
            backgroundTarget = new RenderTarget2D(Recellection.graphics.GraphicsDevice, Recellection.viewPort.Width, Recellection.viewPort.Height, 1, Recellection.graphics.GraphicsDevice.DisplayMode.Format);
            lps = new LightParticleSystem(0.05f, Recellection.textureMap.GetTexture(Globals.TextureTypes.Light));
            gs = new GrainSystem(0.01f, 0.2f, 0.3f, Recellection.contentMngr);

            myLogger = LoggerFactory.GetLogger();
            //myLogger.SetTarget(LoggerSetup.GetLogFileTarget("WorldView.log"));
            myLogger.SetThreshold(LogLevel.FATAL);
            myLogger.Info("Created a WorldView.");

            tileCollection = new List<Tile>();

            //this.World.LookingAt = new Vector2(0, 0);

            Instance = this;
        }
Exemplo n.º 2
0
        private WorldView()
        {
            backgroundTex    = Recellection.textureMap.GetTexture(Globals.TextureTypes.white);
            backgroundTarget = new RenderTarget2D(Recellection.graphics.GraphicsDevice, Recellection.viewPort.Width, Recellection.viewPort.Height, 1, Recellection.graphics.GraphicsDevice.DisplayMode.Format);
            lps = new LightParticleSystem(0.05f, Recellection.textureMap.GetTexture(Globals.TextureTypes.Light));
            gs  = new GrainSystem(0.01f, 0.2f, 0.3f, Recellection.contentMngr);

            myLogger = LoggerFactory.GetLogger();
            //myLogger.SetTarget(LoggerSetup.GetLogFileTarget("WorldView.log"));
            myLogger.SetThreshold(LogLevel.FATAL);
            myLogger.Info("Created a WorldView.");

            tileCollection = new List <Tile>();

            //this.World.LookingAt = new Vector2(0, 0);


            Instance = this;
        }