menu spam fixie

This commit is contained in:
Cameron Taylor 2024-06-15 03:27:59 -04:00
parent b1b7a032be
commit 8dfd36d227
2 changed files with 10 additions and 7 deletions

View file

@ -327,7 +327,8 @@
"INLINE",
"DYNAMIC",
"FINAL"
]
],
"severity": "IGNORE"
},
"type": "ModifierOrder"
},

View file

@ -69,7 +69,7 @@ class CharSelectSubState extends MusicBeatSubState
availableChars.set(3, "pico");
}
override public function create()
override public function create():Void
{
super.create();
@ -79,6 +79,8 @@ class CharSelectSubState extends MusicBeatSubState
selectSound.volume = 0.7;
FlxG.sound.defaultSoundGroup.add(selectSound);
Conductor.instance.forceBPM(90);
FunkinSound.playMusic('charSelect',
{
startingVolume: 0.0,
@ -343,11 +345,11 @@ class CharSelectSubState extends MusicBeatSubState
var spamLeft:Bool = false;
var spamRight:Bool = false;
override public function update(elapsed:Float)
override public function update(elapsed:Float):Void
{
super.update(elapsed);
// Conductor.update();
Conductor.instance.update();
if (controls.UI_UP_R || controls.UI_DOWN_R || controls.UI_LEFT_R || controls.UI_RIGHT_R) selectSound.pitch = 1;
@ -503,7 +505,7 @@ class CharSelectSubState extends MusicBeatSubState
cursorDarkBlue.y = MathUtil.coolLerp(cursorDarkBlue.y, cursorLocIntended.y, lerpAmnt * 0.2);
}
function spamOnStep()
function spamOnStep():Void
{
if (spamUp || spamDown || spamLeft || spamRight)
{
@ -534,7 +536,7 @@ class CharSelectSubState extends MusicBeatSubState
}
}
private function updateLockAnims()
private function updateLockAnims():Void
{
for (index => member in grpIcons.group.members)
{
@ -572,7 +574,7 @@ class CharSelectSubState extends MusicBeatSubState
}
}
function getCurrentSelected()
function getCurrentSelected():Int
{
var tempX:Int = cursorX + 1;
var tempY:Int = cursorY + 1;