fix songs with spaces (part 200)
This commit is contained in:
parent
c403a6a40a
commit
aab9cab7b4
@ -260,7 +260,7 @@ class Character extends FlxSprite
|
|||||||
case 'bf-car':
|
case 'bf-car':
|
||||||
var tex = Paths.getSparrowAtlas('bfCar','shared',true);
|
var tex = Paths.getSparrowAtlas('bfCar','shared',true);
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('idle', 'BF idle dance', 16, false);
|
animation.addByPrefix('idle', 'BF idle dance', 24, false);
|
||||||
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
|
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
|
||||||
animation.addByPrefix('singLEFT', 'BF NOTE LEFT0', 24, false);
|
animation.addByPrefix('singLEFT', 'BF NOTE LEFT0', 24, false);
|
||||||
animation.addByPrefix('singRIGHT', 'BF NOTE RIGHT0', 24, false);
|
animation.addByPrefix('singRIGHT', 'BF NOTE RIGHT0', 24, false);
|
||||||
|
@ -2549,7 +2549,12 @@ class ChartingState extends MusicBeatState
|
|||||||
|
|
||||||
function loadJson(song:String):Void
|
function loadJson(song:String):Void
|
||||||
{
|
{
|
||||||
PlayState.SONG = Song.loadFromJson(song.toLowerCase(), song.toLowerCase());
|
var format = StringTools.replace(PlayState.SONG.song.toLowerCase(), " ", "-");
|
||||||
|
switch (format) {
|
||||||
|
case 'Dad-Battle': format = 'Dadbattle';
|
||||||
|
case 'Philly-Nice': format = 'Philly';
|
||||||
|
}
|
||||||
|
PlayState.SONG = Song.loadFromJson(format, format);
|
||||||
LoadingState.loadAndSwitchState(new ChartingState());
|
LoadingState.loadAndSwitchState(new ChartingState());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ class PlayState extends MusicBeatState
|
|||||||
var notesHitArray:Array<Date> = [];
|
var notesHitArray:Array<Date> = [];
|
||||||
var currentFrames:Int = 0;
|
var currentFrames:Int = 0;
|
||||||
var idleToBeat:Bool = true; // change if bf and dad would idle to the beat of the song
|
var idleToBeat:Bool = true; // change if bf and dad would idle to the beat of the song
|
||||||
var idleBeat:Int = 1; // how frequently bf and dad would play their idle animation(1 - every beat, 2 - every 2 beats and so on)
|
var idleBeat:Int = 4; // how frequently bf and dad would play their idle animation(1 - every beat, 2 - every 2 beats and so on)
|
||||||
|
|
||||||
public var dialogue:Array<String> = ['dad:blah blah blah', 'bf:coolswag'];
|
public var dialogue:Array<String> = ['dad:blah blah blah', 'bf:coolswag'];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user