public override void Draw() { var spriteBatch = GameManager.SpriteBatch; RealTimeDebug.Append("Player Position", Player.Position); RealTimeDebug.Append("Animation", Player.CurrentAnimation); spriteBatch.Begin(transformMatrix: GameManager.MainCamera.TranslationMatrix); GameManager.LevelManager.Draw(spriteBatch); Player.Draw(spriteBatch); spriteBatch.End(); }
public override void Draw() { var spriteBatch = GameManager.SpriteBatch; if (GameManager.ShowDebugInfo) { RealTimeDebug.Append("File Selector Dimensions", _fileSelector.AbsoluteDimensions); } spriteBatch.Begin(transformMatrix: GameManager.MainCamera.TranslationMatrix); GameManager.LevelManager.Draw(spriteBatch); spriteBatch.Draw(_cursorTexture, _editorCursor.MousePosition, Color.White); spriteBatch.End(); }
public void LoadContent(ContentManager contentManager) { ContentManager = contentManager; LevelManager.LoadContent(contentManager); UIManager.LoadContent(contentManager); GameStateManager.AddState(new MainMenuState()); RealTimeDebug = new RealTimeDebug( new UIDimension() { WidthMode = UIDimensionModes.Stretch, HeightMode = UIDimensionModes.Fixed, Y = 49, Height = 99, } ) { Anchor = AnchorPoints.TopMiddle, Active = false }; UIManager.AddElement(RealTimeDebug); Console = new DebugConsole( new UIDimension() { WidthMode = UIDimensionModes.Stretch, HeightMode = UIDimensionModes.Fixed, Y = 49, Height = 99, } ) { Anchor = AnchorPoints.TopMiddle, Active = false }; UIManager.AddElement(Console); }