mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-21 17:39:20 +00:00
added lucky, highscore fix??
This commit is contained in:
parent
639bb94f6d
commit
f1b73b052c
|
@ -52,7 +52,6 @@ class Character extends FlxSprite
|
|||
addOffset('scared');
|
||||
|
||||
playAnim('danceRight');
|
||||
|
||||
case 'dad':
|
||||
// DAD ANIMATION LOADING CODE
|
||||
tex = FlxAtlasFrames.fromSparrow(AssetPaths.DADDY_DEAREST__png, AssetPaths.DADDY_DEAREST__xml);
|
||||
|
@ -103,6 +102,21 @@ class Character extends FlxSprite
|
|||
addOffset("singLEFT", -30);
|
||||
addOffset("singDOWN", -30, -40);
|
||||
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');
|
||||
case 'monster':
|
||||
playAnim('idle');
|
||||
case 'lucky':
|
||||
playAnim('idle');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,11 @@ import flixel.FlxG;
|
|||
|
||||
class Highscore
|
||||
{
|
||||
#if (haxe >= "4.0.0")
|
||||
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
|
||||
{
|
||||
|
|
|
@ -59,7 +59,7 @@ class TitleState extends MusicBeatState
|
|||
|
||||
super.create();
|
||||
|
||||
#if (!switch && !debug && NG_LOGIN)
|
||||
#if (web && !debug && NG_LOGIN)
|
||||
var ng:NGio = new NGio(APIStuff.API, APIStuff.EncKey);
|
||||
#end
|
||||
|
||||
|
|
Loading…
Reference in a new issue