Update Paths.hx

This commit is contained in:
Joalor64 2023-03-04 19:02:02 -05:00 committed by GitHub
parent 11be158abe
commit bf3fac3a6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -153,6 +153,9 @@ class Paths
inline static public function font(key:String)
return 'assets/fonts/$key';
inline static public function video(key:String)
return 'assets/$key.mp4';
inline static public function getSparrowAtlas(key:String, ?library:String, ?cache:Bool = true)
return FlxAtlasFrames.fromSparrow(returnGraphic('images/$key', cache), xml('images/$key'));
@ -195,4 +198,4 @@ class Paths
trace('$key its null');
return null;
}
}
}