mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-08-18 22:14:37 +00:00
added lucky, highscore fix??
This commit is contained in:
parent
bc91e6d3b8
commit
11ba4ac690
|
@ -52,7 +52,6 @@ class Character extends FlxSprite
|
||||||
addOffset('scared');
|
addOffset('scared');
|
||||||
|
|
||||||
playAnim('danceRight');
|
playAnim('danceRight');
|
||||||
|
|
||||||
case 'dad':
|
case 'dad':
|
||||||
// DAD ANIMATION LOADING CODE
|
// DAD ANIMATION LOADING CODE
|
||||||
tex = FlxAtlasFrames.fromSparrow(AssetPaths.DADDY_DEAREST__png, AssetPaths.DADDY_DEAREST__xml);
|
tex = FlxAtlasFrames.fromSparrow(AssetPaths.DADDY_DEAREST__png, AssetPaths.DADDY_DEAREST__xml);
|
||||||
|
@ -103,6 +102,21 @@ class Character extends FlxSprite
|
||||||
addOffset("singLEFT", -30);
|
addOffset("singLEFT", -30);
|
||||||
addOffset("singDOWN", -30, -40);
|
addOffset("singDOWN", -30, -40);
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
|
case 'lucky':
|
||||||
|
tex = FlxAtlasFrames.fromSparrow(AssetPaths.lucky_guitar_assets__png, AssetPaths.lucky_guitar_assets__xml);
|
||||||
|
frames = tex;
|
||||||
|
animation.addByPrefix('idle', 'lucky guitar idle', 24);
|
||||||
|
animation.addByPrefix('singUP', 'lucky UP NOTE', 24);
|
||||||
|
animation.addByPrefix('singRIGHT', 'lucky sing right', 24);
|
||||||
|
animation.addByPrefix('singDOWN', 'lucky DOWN note', 24);
|
||||||
|
animation.addByPrefix('singLEFT', 'lucky sing left', 24);
|
||||||
|
|
||||||
|
addOffset('idle');
|
||||||
|
addOffset("singUP", -6, 50);
|
||||||
|
addOffset("singRIGHT", 0, 27);
|
||||||
|
addOffset("singLEFT", -10, 10);
|
||||||
|
addOffset("singDOWN", 0, -30);
|
||||||
|
playAnim('idle');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,6 +149,8 @@ class Character extends FlxSprite
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
case 'monster':
|
case 'monster':
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
|
case 'lucky':
|
||||||
|
playAnim('idle');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,11 @@ import flixel.FlxG;
|
||||||
|
|
||||||
class Highscore
|
class Highscore
|
||||||
{
|
{
|
||||||
|
#if (haxe >= "4.0.0")
|
||||||
public static var songScores:Map<String, Int> = new Map();
|
public static var songScores:Map<String, Int> = new Map();
|
||||||
|
#else
|
||||||
|
public static var songScores:Map<String, Int> = new Map<String, Int>();
|
||||||
|
#end
|
||||||
|
|
||||||
public static function saveScore(song:String, score:Int = 0, ?diff:Int = 0):Void
|
public static function saveScore(song:String, score:Int = 0, ?diff:Int = 0):Void
|
||||||
{
|
{
|
||||||
|
|
|
@ -59,7 +59,7 @@ class TitleState extends MusicBeatState
|
||||||
|
|
||||||
super.create();
|
super.create();
|
||||||
|
|
||||||
#if (!switch && !debug && NG_LOGIN)
|
#if (web && !debug && NG_LOGIN)
|
||||||
var ng:NGio = new NGio(APIStuff.API, APIStuff.EncKey);
|
var ng:NGio = new NGio(APIStuff.API, APIStuff.EncKey);
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue