mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-19 21:33:06 +00:00
Fix SetCameraBopSongEvent to be additive
This commit is contained in:
parent
e2851818b3
commit
08e8530ad4
2
art
2
art
|
@ -1 +1 @@
|
|||
Subproject commit 03e7c2a2353b184e45955c96d763b7cdf1acbc34
|
||||
Subproject commit 00463685fa570f0c853d08e250b46ef80f30bc48
|
|
@ -866,7 +866,7 @@ class PlayState extends MusicBeatSubState
|
|||
|
||||
// Reset camera zooming
|
||||
cameraBopIntensity = Constants.DEFAULT_BOP_INTENSITY;
|
||||
hudCameraZoomIntensity = 0.015 * 2.0;
|
||||
hudCameraZoomIntensity = (cameraBopIntensity - 1.0) * 2.0;
|
||||
cameraZoomRate = Constants.DEFAULT_ZOOM_RATE;
|
||||
|
||||
health = Constants.HEALTH_STARTING;
|
||||
|
@ -976,6 +976,7 @@ class PlayState extends MusicBeatSubState
|
|||
FlxG.watch.addQuick('bfAnim', currentStage.getBoyfriend().getCurrentAnimation());
|
||||
}
|
||||
FlxG.watch.addQuick('health', health);
|
||||
FlxG.watch.addQuick('cameraBopIntensity', cameraBopIntensity);
|
||||
|
||||
// TODO: Add a song event for Handle GF dance speed.
|
||||
|
||||
|
|
|
@ -50,8 +50,8 @@ class SetCameraBopSongEvent extends SongEvent
|
|||
var intensity:Null<Float> = data.getFloat('intensity');
|
||||
if (intensity == null) intensity = 1.0;
|
||||
|
||||
PlayState.instance.cameraBopIntensity = Constants.DEFAULT_BOP_INTENSITY * intensity;
|
||||
PlayState.instance.hudCameraZoomIntensity = 1.015 * intensity * 2.0;
|
||||
PlayState.instance.cameraBopIntensity = (Constants.DEFAULT_BOP_INTENSITY - 1.0) * intensity + 1.0;
|
||||
PlayState.instance.hudCameraZoomIntensity = (Constants.DEFAULT_BOP_INTENSITY - 1.0) * intensity * 2.0;
|
||||
PlayState.instance.cameraZoomRate = rate;
|
||||
trace('Set camera zoom rate to ${PlayState.instance.cameraZoomRate}');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue