Update Paths.hx
This commit is contained in:
parent
11be158abe
commit
bf3fac3a6b
|
@ -153,6 +153,9 @@ class Paths
|
||||||
|
|
||||||
inline static public function font(key:String)
|
inline static public function font(key:String)
|
||||||
return 'assets/fonts/$key';
|
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)
|
inline static public function getSparrowAtlas(key:String, ?library:String, ?cache:Bool = true)
|
||||||
return FlxAtlasFrames.fromSparrow(returnGraphic('images/$key', cache), xml('images/$key'));
|
return FlxAtlasFrames.fromSparrow(returnGraphic('images/$key', cache), xml('images/$key'));
|
||||||
|
@ -195,4 +198,4 @@ class Paths
|
||||||
trace('$key its null');
|
trace('$key its null');
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue