Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to center a window in monogame

Window.Position = new Point(GraphicsDevice.Adapter.CurrentDisplayMode.Width / 2 - WIDTH * SCALE / 2, GraphicsDevice.Adapter.CurrentDisplayMode.Height / 2 - HEIGHT * SCALE / 2);
 
PREVIOUS NEXT
Tagged: #center #window #monogame
ADD COMMENT
Topic
Name
9+5 =