diff --git a/source/funkin/InitState.hx b/source/funkin/InitState.hx index 4d74e1a05..686453603 100644 --- a/source/funkin/InitState.hx +++ b/source/funkin/InitState.hx @@ -142,10 +142,13 @@ class InitState extends FlxTransitionableState diamond.persist = true; diamond.destroyOnNoUse = false; - // FlxTransitionableState.defaultTransIn = new TransitionData(FADE, FlxColor.BLACK, 1, new FlxPoint(0, -1), {asset: diamond, width: 32, height: 32}, - // new FlxRect(-200, -200, FlxG.width * 1.4, FlxG.height * 1.4)); - // FlxTransitionableState.defaultTransOut = new TransitionData(FADE, FlxColor.BLACK, 0.7, new FlxPoint(0, 1), {asset: diamond, width: 32, height: 32}, - // new FlxRect(-200, -200, FlxG.width * 1.4, FlxG.height * 1.4)); + // NOTE: tileData is ignored if TransitionData.type is FADE instead of TILES. + var tileData:TransitionTileData = {asset: diamond, width: 32, height: 32}; + + FlxTransitionableState.defaultTransIn = new TransitionData(FADE, FlxColor.BLACK, 1, new FlxPoint(1, 1), tileData, + new FlxRect(-200, -200, FlxG.width * 1.4, FlxG.height * 1.4)); + FlxTransitionableState.defaultTransOut = new TransitionData(FADE, FlxColor.BLACK, 0.7, new FlxPoint(1, 1), tileData, + new FlxRect(-200, -200, FlxG.width * 1.4, FlxG.height * 1.4)); // Don't play transition in when entering the title state. FlxTransitionableState.skipNextTransIn = true;