Город МОСКОВСКИЙ
00:34:06

Scale Matrix Independent Resolution Rendering in MonoGame #monogame #gamedev

Аватар
Conquer Your Goals
Просмотры:
20
Дата загрузки:
16.10.2024 02:27
Длительность:
00:34:06
Категория:
Видеоигры

Описание

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

Рекомендуемые видео