mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-10 00:34:40 +00:00
darnell character
This commit is contained in:
parent
d108f7c39d
commit
380241bc6a
|
@ -486,6 +486,20 @@ class Character extends FlxSprite
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
|
|
||||||
flipX = true;
|
flipX = true;
|
||||||
|
case 'darnell':
|
||||||
|
frames = Paths.getSparrowAtlas('characters/darnell');
|
||||||
|
|
||||||
|
quickAnimAdd('idle', 'Darnell Idle');
|
||||||
|
quickAnimAdd('singUP', "Darnell pose up");
|
||||||
|
quickAnimAdd('singDOWN', 'Darnell Pose Down');
|
||||||
|
quickAnimAdd('singRIGHT', 'Darnell pose right');
|
||||||
|
quickAnimAdd('singLEFT', 'darnell pose left');
|
||||||
|
quickAnimAdd('laugh', 'darnell laugh');
|
||||||
|
|
||||||
|
// temp
|
||||||
|
loadOffsetFile(curCharacter);
|
||||||
|
|
||||||
|
playAnim('idle');
|
||||||
}
|
}
|
||||||
|
|
||||||
dance();
|
dance();
|
||||||
|
|
|
@ -4,6 +4,11 @@ import haxe.format.JsonParser;
|
||||||
import openfl.Assets;
|
import openfl.Assets;
|
||||||
import sys.io.File;
|
import sys.io.File;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generally designed / written in a way that can be easily taken out of FNF and used elsewhere
|
||||||
|
* I don't think it even has ties to OpenFL? Could probably just use it for ANY haxe
|
||||||
|
* project if needed, DOES NEED A LOT OF CLEANUP THOUGH!
|
||||||
|
*/
|
||||||
class ParseAnimate
|
class ParseAnimate
|
||||||
{
|
{
|
||||||
// make list of frames needed to render (with ASI)
|
// make list of frames needed to render (with ASI)
|
||||||
|
@ -11,6 +16,9 @@ class ParseAnimate
|
||||||
public static var symbolMap:Map<String, Symbol> = new Map();
|
public static var symbolMap:Map<String, Symbol> = new Map();
|
||||||
public static var actualSprites:Map<String, Sprite> = new Map();
|
public static var actualSprites:Map<String, Sprite> = new Map();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Not used, was used for testing stuff though!
|
||||||
|
*/
|
||||||
public static function init()
|
public static function init()
|
||||||
{
|
{
|
||||||
// Main.gids
|
// Main.gids
|
||||||
|
@ -175,8 +183,7 @@ class ParseAnimate
|
||||||
frameName: element.ASI.N,
|
frameName: element.ASI.N,
|
||||||
M3D: element.ASI.M3D,
|
M3D: element.ASI.M3D,
|
||||||
depthString: depthTypeBeat,
|
depthString: depthTypeBeat,
|
||||||
matrixArray: matrixHelp[matrixHelp.length - 1],
|
matrixArray: matrixHelp[matrixHelp.length - 1]
|
||||||
randomLol: FlxG.random.int(0, 100)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
trpMap.set(element.ASI.N, trpHelpIDK);
|
trpMap.set(element.ASI.N, trpHelpIDK);
|
||||||
|
@ -226,8 +233,7 @@ typedef VALIDFRAME =
|
||||||
frameName:String,
|
frameName:String,
|
||||||
M3D:Array<Float>,
|
M3D:Array<Float>,
|
||||||
depthString:String,
|
depthString:String,
|
||||||
matrixArray:Array<Array<Float>>,
|
matrixArray:Array<Array<Float>>
|
||||||
?randomLol:Float
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef AnimJson =
|
typedef AnimJson =
|
||||||
|
|
Loading…
Reference in a new issue