Can toggle game music now.

This commit is contained in:
jme9
2025-03-30 14:55:16 -07:00
parent 43903e6c42
commit 218f4da157
4 changed files with 18 additions and 20 deletions
+4 -4
View File
@@ -7,9 +7,9 @@ namespace LunaLightXMG
public class RenderHandler
{
// fields
private GraphicsDevice graphicsDevice;
private SpriteBatch spriteBatch;
private RenderTarget2D renderTarget;
private readonly GraphicsDevice graphicsDevice;
private readonly SpriteBatch spriteBatch;
private readonly RenderTarget2D renderTarget;
private Rectangle renderDestination;
private readonly float retroWidth;
@@ -54,7 +54,7 @@ namespace LunaLightXMG
{
// interpolate to target
zoomLevel = MathHelper.Lerp(zoomLevel, zoomTarget, zoomSpeed);
// snap to target when we're close enough
// snap to target when we're close enough
if (Math.Abs(zoomLevel - zoomTarget) < 0.001f)
{
zoomLevel = zoomTarget;