Skip to content

Commit

Permalink
hello guys
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Jul 17, 2024
1 parent ef026b0 commit 9c8652c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
2 changes: 2 additions & 0 deletions source/funkin/CoolUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import flixel.tweens.FlxEase;
import flixel.math.FlxPoint;
import flixel.math.FlxMath;

using StringTools;

/**
* Utility functions, most that aren't in the OG game, can be used for scripts maybe.
*/
Expand Down
16 changes: 1 addition & 15 deletions source/funkin/play/stage/Bopper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -187,33 +187,21 @@ class Bopper extends StageProp implements IPlayStateScriptedClass
public function dance(forceRestart:Bool = false):Void
{
if (this.animation == null)
{
return;
}

if (shouldAlternate == null)
{
update_shouldAlternate();
}

if (shouldAlternate)
{
if (hasDanced)
{
trace('DanceRight (alternate)');
playAnimation('danceRight$idleSuffix', forceRestart);
}
else
{
trace('DanceLeft (alternate)');
playAnimation('danceLeft$idleSuffix', forceRestart);
}
hasDanced = !hasDanced;
}
else
{
playAnimation('idle$idleSuffix', forceRestart);
}
}

public function hasAnimation(id:String):Bool
Expand Down Expand Up @@ -271,10 +259,8 @@ class Bopper extends StageProp implements IPlayStateScriptedClass
this.animation.play(correctName, restart, reversed, 0);

if (ignoreOther)
{
canPlayOtherAnims = false;
}


applyAnimationOffsets(correctName);
}

Expand Down
4 changes: 2 additions & 2 deletions source/funkin/ui/options/PreferencesMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class PreferencesMenu extends Page
Preferences.ghostTapping = value;
}, Preferences.ghostTapping);
#if !web
createPrefItemNumber('FPS Cap', 'The framerate that the game is running on', function(value:Float) {
createPrefItemNumber('FPS Cap', 'The cap of the framerate that the game is running on', function(value:Float) {
Preferences.framerate = Std.int(value);
}, null, Preferences.framerate, 60, 360, 1, 0);
}, null, Preferences.framerate, 12, 360, 1, 0);
#end
createPrefItemCheckbox('Naughtiness', 'Toggle displaying raunchy content', function(value:Bool):Void {
Preferences.naughtyness = value;
Expand Down

0 comments on commit 9c8652c

Please sign in to comment.