From bf3fac3a6bb1728227d3f5dbdbee39f6ab55dbda Mon Sep 17 00:00:00 2001 From: Joalor64 Date: Sat, 4 Mar 2023 19:02:02 -0500 Subject: [PATCH] Update Paths.hx --- source/Paths.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/Paths.hx b/source/Paths.hx index f0b3f261b..6a22fc1df 100644 --- a/source/Paths.hx +++ b/source/Paths.hx @@ -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; } -} \ No newline at end of file +}