Skip to content

Commit

Permalink
Revert camCutscene rename
Browse files Browse the repository at this point in the history
  • Loading branch information
gamerbross authored and EliteMasterEric committed Jul 12, 2024
1 parent e23e6c1 commit e6c9767
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions source/funkin/play/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ class PlayState extends MusicBeatSubState
/**
* The camera which contains, and controls visibility of, a video cutscene, dialogue, pause menu and sticker transition.
*/
public var camOther:FlxCamera;
public var camCutscene:FlxCamera;

/**
* The combo popups. Includes the real-time combo counter and the rating.
Expand Down Expand Up @@ -975,7 +975,7 @@ class PlayState extends MusicBeatSubState

FlxTransitionableState.skipNextTransIn = true;
FlxTransitionableState.skipNextTransOut = true;
pauseSubState.camera = camOther;
pauseSubState.camera = camCutscene;
openSubState(pauseSubState);
// boyfriendPos.put(); // TODO: Why is this here?
}
Expand Down Expand Up @@ -1543,12 +1543,12 @@ class PlayState extends MusicBeatSubState
camGame.bgColor = BACKGROUND_COLOR; // Show a pink background behind the stage.
camHUD = new FlxCamera();
camHUD.bgColor.alpha = 0; // Show the game scene behind the camera.
camOther = new FlxCamera();
camOther.bgColor.alpha = 0; // Show the game scene behind the camera.
camCutscene = new FlxCamera();
camCutscene.bgColor.alpha = 0; // Show the game scene behind the camera.

FlxG.cameras.reset(camGame);
FlxG.cameras.add(camHUD, false);
FlxG.cameras.add(camOther, false);
FlxG.cameras.add(camCutscene, false);

// Configure camera follow point.
if (previousCameraFollowPoint != null)
Expand Down Expand Up @@ -1952,7 +1952,7 @@ class PlayState extends MusicBeatSubState
if (!currentConversation.alive) currentConversation.revive();

currentConversation.completeCallback = onConversationComplete;
currentConversation.cameras = [camOther];
currentConversation.cameras = [camCutscene];
currentConversation.zIndex = 1000;
add(currentConversation);
refresh();
Expand Down Expand Up @@ -2787,7 +2787,7 @@ class PlayState extends MusicBeatSubState
persistentUpdate = false;
FlxTransitionableState.skipNextTransIn = true;
FlxTransitionableState.skipNextTransOut = true;
pauseSubState.camera = camOther;
pauseSubState.camera = camCutscene;
openSubState(pauseSubState);
}
}
Expand All @@ -2803,7 +2803,7 @@ class PlayState extends MusicBeatSubState
persistentUpdate = false;
FlxTransitionableState.skipNextTransIn = true;
FlxTransitionableState.skipNextTransOut = true;
pauseSubState.camera = camOther;
pauseSubState.camera = camCutscene;
openSubState(pauseSubState);
}
}
Expand Down
6 changes: 3 additions & 3 deletions source/funkin/play/cutscene/VideoCutscene.hx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class VideoCutscene
// Display a black screen to hide the game while the video is playing.
blackScreen = new FlxSprite(-200, -200).makeGraphic(FlxG.width * 2, FlxG.height * 2, FlxColor.BLACK);
blackScreen.scrollFactor.set(0, 0);
blackScreen.cameras = [PlayState.instance.camOther];
blackScreen.cameras = [PlayState.instance.camCutscene];
PlayState.instance.add(blackScreen);

VideoCutscene.cutsceneType = cutsceneType;
Expand Down Expand Up @@ -119,7 +119,7 @@ class VideoCutscene

vid.finishCallback = finishVideo.bind(0.5);

vid.cameras = [PlayState.instance.camOther];
vid.cameras = [PlayState.instance.camCutscene];

PlayState.instance.add(vid);

Expand All @@ -146,7 +146,7 @@ class VideoCutscene
vid.bitmap.onEndReached.add(finishVideo.bind(0.5));
vid.autoPause = FlxG.autoPause;

vid.cameras = [PlayState.instance.camOther];
vid.cameras = [PlayState.instance.camCutscene];

PlayState.instance.add(vid);

Expand Down

0 comments on commit e6c9767

Please sign in to comment.