Paths.getFrames()
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
1307
|
||||
1309
|
||||
@@ -124,7 +124,7 @@ class Character extends FlxSprite implements IBeatReceiver implements IOffsetCom
|
||||
if (xml.has.antialiasing) antialiasing = (xml.att.antialiasing == "true");
|
||||
if (xml.has.sprite) sprite = xml.att.sprite;
|
||||
|
||||
frames = CoolUtil.loadFrames(Paths.image('characters/$sprite', null, true));
|
||||
frames = Paths.getFrames('characters/$sprite', null);
|
||||
for(anim in xml.nodes.anim) {
|
||||
XMLUtil.addXMLAnimation(this, anim);
|
||||
}
|
||||
|
||||
@@ -1087,6 +1087,7 @@ class PlayState extends MusicBeatState
|
||||
// notes.add(unspawnNotes.shift());
|
||||
|
||||
|
||||
|
||||
if (generatedMusic)
|
||||
{
|
||||
notes.forEachAlive(function(daNote:Note)
|
||||
@@ -1137,7 +1138,7 @@ class PlayState extends MusicBeatState
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (!inCutscene)
|
||||
keyShit();
|
||||
|
||||
|
||||
@@ -168,6 +168,10 @@ class Paths
|
||||
{
|
||||
return FlxAtlasFrames.fromSparrow(image(key, library), file('images/$key.xml', library));
|
||||
}
|
||||
|
||||
inline static public function getFrames(key:String, ?library:String) {
|
||||
return CoolUtil.loadFrames(Paths.image(key, library, true));
|
||||
}
|
||||
inline static public function getSparrowAtlasAlt(key:String)
|
||||
{
|
||||
return FlxAtlasFrames.fromSparrow('$key.png', '$key.xml');
|
||||
|
||||
Reference in New Issue
Block a user