Skip to content

Commit 835c5e1

Browse files
committed
fixing
1 parent b87ba54 commit 835c5e1

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

source/Main.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Main extends Sprite
8282
}
8383

8484
ClientPrefs.loadDefaultKeys();
85-
addChild(new FlxGame(gameWidth, gameHeight, initialState, zoom, framerate, framerate, skipSplash, startFullscreen));
85+
addChild(new FlxGame(gameWidth, gameHeight, initialState, #if (flixel < "5.0.0") zoom, #end framerate, framerate, skipSplash, startFullscreen));
8686

8787
#if !mobile
8888
fpsVar = new FPS(10, 3, 0xFFFFFF);

source/PlayState.hx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ using StringTools;
7171

7272
class PlayState extends MusicBeatState
7373
{
74+
var focusshit:String = '';
7475
var notecomboSpritelol:FlxSprite;
7576
var focusfornotecombo:String = 'dad';
7677
var coolcombo:Int = 0;
@@ -1729,6 +1730,7 @@ class PlayState extends MusicBeatState
17291730
// Move camera to BF
17301731
cutsceneHandler.timer(3, function()
17311732
{
1733+
focusshit = 'bf';
17321734
camFollow.x += 750;
17331735
camFollow.y += 100;
17341736
});
@@ -1744,6 +1746,7 @@ class PlayState extends MusicBeatState
17441746
// Move camera to Tankman
17451747
cutsceneHandler.timer(6, function()
17461748
{
1749+
focusshit = 'dad';
17471750
camFollow.x -= 750;
17481751
camFollow.y -= 100;
17491752

@@ -1759,6 +1762,8 @@ class PlayState extends MusicBeatState
17591762
tankman.y += 10;
17601763
precacheList.set('tankSong2', 'sound');
17611764

1765+
focusshit = 'dad';
1766+
17621767
var tightBars:FlxSound = new FlxSound().loadEmbedded(Paths.sound('tankSong2'));
17631768
FlxG.sound.list.add(tightBars);
17641769

@@ -1776,14 +1781,17 @@ class PlayState extends MusicBeatState
17761781

17771782
cutsceneHandler.timer(4, function()
17781783
{
1784+
focusshit = 'gf'
17791785
gf.playAnim('sad', true);
17801786
gf.animation.finishCallback = function(name:String)
17811787
{
17821788
gf.playAnim('sad', true);
17831789
};
1790+
focusshit = 'dad';
17841791
});
17851792

17861793
case 'stress':
1794+
focusshit = 'dad';
17871795
cutsceneHandler.endTime = 35.5;
17881796
tankman.x -= 54;
17891797
tankman.y -= 14;
@@ -1863,6 +1871,7 @@ class PlayState extends MusicBeatState
18631871

18641872
cutsceneHandler.timer(15.2, function()
18651873
{
1874+
focusshit = 'gf';
18661875
FlxTween.tween(camFollow, {x: 650, y: 300}, 1, {ease: FlxEase.sineOut});
18671876
FlxTween.tween(FlxG.camera, {zoom: 0.9 * 1.2 * 1.2}, 2.25, {ease: FlxEase.quadInOut});
18681877

@@ -1875,6 +1884,7 @@ class PlayState extends MusicBeatState
18751884
{
18761885
gfCutscene.animation.play('getRektLmao', true);
18771886
gfCutscene.offset.set(224, 445);
1887+
focusshit = 'gf';
18781888
}
18791889
else
18801890
{
@@ -1912,6 +1922,7 @@ class PlayState extends MusicBeatState
19121922

19131923
cutsceneHandler.timer(19.5, function()
19141924
{
1925+
focusshit = 'dad';
19151926
tankman2.animation.addByPrefix('lookWhoItIs', 'TANK TALK 3', 24, false);
19161927
tankman2.animation.play('lookWhoItIs', true);
19171928
tankman2.alpha = 1;
@@ -1925,6 +1936,7 @@ class PlayState extends MusicBeatState
19251936

19261937
cutsceneHandler.timer(31.2, function()
19271938
{
1939+
focusshit = 'bf';
19281940
boyfriend.playAnim('singUPmiss', true);
19291941
boyfriend.animation.finishCallback = function(name:String)
19301942
{
@@ -1942,6 +1954,7 @@ class PlayState extends MusicBeatState
19421954

19431955
cutsceneHandler.timer(32.2, function()
19441956
{
1957+
focusshit = 'dad';
19451958
zoomBack();
19461959
});
19471960
}
@@ -3550,6 +3563,7 @@ class PlayState extends MusicBeatState
35503563

35513564
isCameraOnForcedPos = false;
35523565
if(!Math.isNaN(Std.parseFloat(value1)) || !Math.isNaN(Std.parseFloat(value2))) {
3566+
focusshit = 'none';
35533567
camFollow.x = val1;
35543568
camFollow.y = val2;
35553569
isCameraOnForcedPos = true;
@@ -3713,18 +3727,21 @@ class PlayState extends MusicBeatState
37133727
camFollow.y += gf.cameraPosition[1] + girlfriendCameraOffset[1];
37143728
tweenCamIn();
37153729
callOnLuas('onMoveCamera', ['gf']);
3730+
focusshit = 'gf';
37163731
return;
37173732
}
37183733

37193734
if (!SONG.notes[curSection].mustHitSection)
37203735
{
37213736
moveCamera(true);
37223737
callOnLuas('onMoveCamera', ['dad']);
3738+
focusshit = 'dad';
37233739
}
37243740
else
37253741
{
37263742
moveCamera(false);
37273743
callOnLuas('onMoveCamera', ['boyfriend']);
3744+
focusshit = 'bf';
37283745
}
37293746
}
37303747

0 commit comments

Comments
 (0)