mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-30 11:26:53 -05:00
37 lines
676 B
Haxe
37 lines
676 B
Haxe
package;
|
|
|
|
import lime.utils.Assets;
|
|
|
|
using StringTools;
|
|
|
|
class CoolUtil
|
|
{
|
|
public static var difficultyArray:Array<String> = ['EASY', "NORMAL", "HARD"];
|
|
|
|
public static function difficultyString():String
|
|
{
|
|
return difficultyArray[PlayState.storyDifficulty];
|
|
}
|
|
|
|
public static function coolTextFile(path:String):Array<String>
|
|
{
|
|
var daList:Array<String> = Assets.getText(path).trim().split('\n');
|
|
|
|
for (i in 0...daList.length)
|
|
{
|
|
daList[i] = daList[i].trim();
|
|
}
|
|
|
|
return daList;
|
|
}
|
|
|
|
public static function numberArray(max:Int, ?min = 0):Array<Int>
|
|
{
|
|
var dumbArray:Array<Int> = [];
|
|
for (i in min...max)
|
|
{
|
|
dumbArray.push(i);
|
|
}
|
|
return dumbArray;
|
|
}
|
|
}
|