private const float RESOLUTION_W = 1280;
private const float RESOLUTION_H = 720;
float scaleW = graphics.GraphicsDevice.Viewport.TitleSafeArea.Width / RESOLUTION_W;
float scaleH = graphics.GraphicsDevice.Viewport.TitleSafeArea.Height / RESOLUTION_H;
scale = new Vector2(scaleW, scaleH);
Created
June 5, 2019 21:28
-
-
Save fdrobidoux/10b71ea4e4e5cc163fbc9645468e8a56 to your computer and use it in GitHub Desktop.
[MonoGame] Scale by resolution
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment