Skip to content

Commit

Permalink
Propose changes (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
usb-port-2 authored Jun 24, 2024
1 parent 5a5a25a commit d79959d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions source/funkin/game/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,19 @@ class PlayState extends MusicBeatState
* Camera zoom at which the game lerps to.
*/
public var defaultCamZoom:Float = 1.05;

/**
* Speed at which the game camera zoom lerps to.
*/
public var camGameZoomLerp:Float = 0.05;

/**
* Camera zoom at which the hud lerps to.
*/
public var defaultHudZoom:Float = 1.0;
/**
* Speed at which the hud camera zoom lerps to.
*/
public var camHUDZoomLerp:Float = 0.05;

/**
* Zoom for the pixel assets.
Expand Down Expand Up @@ -1290,8 +1298,8 @@ class PlayState extends MusicBeatState

if (camZooming)
{
FlxG.camera.zoom = lerp(FlxG.camera.zoom, defaultCamZoom, 0.05);
camHUD.zoom = lerp(camHUD.zoom, defaultHudZoom, 0.05);
FlxG.camera.zoom = lerp(FlxG.camera.zoom, defaultCamZoom, camGameZoomLerp);
camHUD.zoom = lerp(camHUD.zoom, defaultHudZoom, camHUDZoomLerp);
}

// RESET = Quick Game Over Screen
Expand Down

0 comments on commit d79959d

Please sign in to comment.