Scale Matrix Independent Resolution Rendering in MonoGame #monogame #gamedev
Описание
In this tutorial, I discuss how to use a scale matrix to achieve independent screen resolution rendering in your MonoGame game. This is an alternative technique to the RenderTarget2D method in my previous tutorial https://youtu.be/Zla4q0Z6Zwc
Image used in game is from the Pixel Platformer package page from Kenny, licensed under the CC0 license. https://kenney.nl/assets/pixel-platformer
---
Patreon: https://patreon.com/aristurtledev
Twitter: https://twitter.com/aristurtledev
Twitch: https://twitch.tv/aristurtledev
MonoGame Discord: https://discord.gg/monogame
---
Timestamps
00:00 Introduction
00:45 What is Independent Screen Resolution Rendering
02:00 Project Setup
04:12 Defining Resolution
06:09 Showing the Problem to Solve
07:24 Add Scale Matrix
07:45 Add Update Matrix Method
08:37 Adding Matrix To SpriteBatch.Begin
09:44 Using A Scale Matrix
11:28 Calculating The Scale Factor
20:20 Updating Scale Matrix When Window Changes
24:50 Centering With Viewport
29:07 Recap
32:50 Ending
Рекомендуемые видео
![[MIX] Gorillaz Inspired Insane Trip-Hop Dub Electro Odyssey _ AI MIX](/images/video/2026-04-29/62/f0/62f01a306c5996de93db7a283a2a363c.jpg?width=640)


















