* senpai fucking dies * final flash fadeout * made cutscene not play on restart * winter horrorland + fixes * fix for pixel perfect shader * trail + fixes * better + shaking last update about it, i swear * never fucking mind + repacks + accuracy * more fixes + chromatic aberration * i hate how pixel shader fucks everything up * aberration in the cutscene & its cool twitch * camera beats when twitching * tank stuff pt1 now the cutscenes look 99% like og (still gotta freeze the stage animated sprites n stuff) PS: Deleting the lipSycn function in ugh and guns cutscenes cause its not needed + sometimes breaks the animations so lets just leave it in stress only like it was in og * week 5 completed + retrocompatibility with altanim now chrima parents work * philly train * gameplay shaders option better adding it now * tank stuff pt2 * blue balled text (death counter) * winter horrorland better rework WIP colored vignette usable by everyone (you can change its color, amount and strength) wip cuz i wanna edit the amount/strength based on the zoom, i'll do later, now i dont have time gotta do christmas irl stuff yay * winter horrorland better rework completed * seen cutscene variable finally * even better cutscenes * oops * tank stuff pt3 * tank stuff pt4 WIP running tanks Co-Authored-By: Ne_Eo <NeeEoo@users.noreply.github.com> * tankstuff pt4.5 imma check tmr why do some tankmen spawn too much up * tank stuff pt4.75 * dumb * tank stuff pt 4.9 * type on xml sprite type fix and more Co-Authored-By: Ne_Eo <NeeEoo@users.noreply.github.com> --------- Co-authored-by: Ne_Eo <NeeEoo@users.noreply.github.com> Co-authored-by: lunarcleint <88809950+lunarcleint@users.noreply.github.com>
88 lines
2.0 KiB
Haxe
88 lines
2.0 KiB
Haxe
package funkin.menus;
|
|
|
|
import flixel.graphics.frames.FlxAtlasFrames;
|
|
|
|
class GitarooPause extends MusicBeatState
|
|
{
|
|
var replayButton:FlxSprite;
|
|
var cancelButton:FlxSprite;
|
|
|
|
var replaySelect:Bool = false;
|
|
|
|
public function new():Void
|
|
{
|
|
super();
|
|
}
|
|
|
|
override function create()
|
|
{
|
|
if (FlxG.sound.music != null)
|
|
FlxG.sound.music.stop();
|
|
|
|
var bg:FlxSprite = new FlxSprite().loadAnimatedGraphic(Paths.image('menus/pauseAlt//pauseBG'));
|
|
add(bg);
|
|
|
|
var bf:FlxSprite = new FlxSprite(0, 30);
|
|
bf.frames = Paths.getFrames('menus/pauseAlt//bfLol');
|
|
bf.animation.addByPrefix('lol', "funnyThing", 13);
|
|
bf.animation.play('lol');
|
|
add(bf);
|
|
bf.screenCenter(X);
|
|
|
|
replayButton = new FlxSprite(FlxG.width * 0.28, FlxG.height * 0.7);
|
|
replayButton.frames = Paths.getFrames('menus/pauseAlt//pauseUI');
|
|
replayButton.animation.addByPrefix('selected', 'bluereplay', 0, false);
|
|
replayButton.animation.appendByPrefix('selected', 'yellowreplay');
|
|
replayButton.animation.play('selected');
|
|
add(replayButton);
|
|
|
|
cancelButton = new FlxSprite(FlxG.width * 0.58, replayButton.y);
|
|
cancelButton.frames = Paths.getFrames('menus/pauseAlt//pauseUI');
|
|
cancelButton.animation.addByPrefix('selected', 'bluecancel', 0, false);
|
|
cancelButton.animation.appendByPrefix('selected', 'cancelyellow');
|
|
cancelButton.animation.play('selected');
|
|
add(cancelButton);
|
|
|
|
changeThing();
|
|
|
|
super.create();
|
|
}
|
|
|
|
override function update(elapsed:Float)
|
|
{
|
|
if (controls.LEFT_P || controls.RIGHT_P)
|
|
changeThing();
|
|
|
|
if (controls.ACCEPT)
|
|
{
|
|
if (replaySelect)
|
|
{
|
|
FlxG.switchState(new PlayState());
|
|
}
|
|
else
|
|
{
|
|
PlayState.resetSongInfos();
|
|
FlxG.switchState(new MainMenuState());
|
|
}
|
|
}
|
|
|
|
super.update(elapsed);
|
|
}
|
|
|
|
function changeThing():Void
|
|
{
|
|
replaySelect = !replaySelect;
|
|
|
|
if (replaySelect)
|
|
{
|
|
cancelButton.animation.curAnim.curFrame = 0;
|
|
replayButton.animation.curAnim.curFrame = 1;
|
|
}
|
|
else
|
|
{
|
|
cancelButton.animation.curAnim.curFrame = 1;
|
|
replayButton.animation.curAnim.curFrame = 0;
|
|
}
|
|
}
|
|
}
|