protected override void LoadContent() { //Create play state. var playState = new PlayState(GraphicsDevice, Content); playState.Initialize(); playState.LoadLevel("Maps/debug0.tmx"); keyboard.KeyDown += e => { if (e.Key == Keys.F2) { playState.ReloadLevel(); } }; //screen.DebugProfilers.RegisterProfiler(typeof(Entity), new EntityDebugProfiler()); //screen.DebugProfilers.RegisterProfiler(typeof(Player), new PlayerDebugProfiler()); playState.Enabled = true; playState.Visible = true; //Load it into the manager. GameStateManager.AddState(playState); }