mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-30 22:55:03 -07:00
Can toggle game music now.
This commit is contained in:
+4
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user