From b145e7629f8a3a7d229c0978b35e8b275447124b Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Mon, 18 Apr 2022 15:00:12 -0400 Subject: [PATCH] html5 fixes... again lol --- source/funkin/animate/ParseAnimate.hx | 2 ++ source/funkin/play/VanillaCutscenes.hx | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/source/funkin/animate/ParseAnimate.hx b/source/funkin/animate/ParseAnimate.hx index 9c2fa17a4..c41aba0f7 100644 --- a/source/funkin/animate/ParseAnimate.hx +++ b/source/funkin/animate/ParseAnimate.hx @@ -4,7 +4,9 @@ import haxe.format.JsonParser; import openfl.Assets; import openfl.geom.Matrix3D; import openfl.geom.Matrix; +#if sys import sys.io.File; +#end /** * Generally designed / written in a way that can be easily taken out of FNF and used elsewhere diff --git a/source/funkin/play/VanillaCutscenes.hx b/source/funkin/play/VanillaCutscenes.hx index a67ff8773..6985f90b4 100644 --- a/source/funkin/play/VanillaCutscenes.hx +++ b/source/funkin/play/VanillaCutscenes.hx @@ -1,11 +1,11 @@ package funkin.play; -import flixel.util.FlxTimer; -import flixel.tweens.FlxTween; -import flixel.tweens.FlxTween; -import flixel.tweens.FlxEase; -import flixel.util.FlxColor; import flixel.FlxSprite; +import flixel.tweens.FlxEase; +import flixel.tweens.FlxTween; +import flixel.tweens.FlxTween; +import flixel.util.FlxColor; +import flixel.util.FlxTimer; /** * Static methods for playing cutscenes in the PlayState. @@ -44,8 +44,8 @@ class VanillaCutscenes PlayState.instance.add(blackScreen); #if html5 - vid:FlxVideo = new FlxVideo(path); - vid.finishCallback = finishVideoCutscene(); + var vid:FlxVideo = new FlxVideo(path); + vid.finishCallback = finishVideoCutscene; #else finishVideoCutscene(); #end