From 100565f9fcce2b7d3cd9d98797d0b09c5a36bb85 Mon Sep 17 00:00:00 2001
From: EliteMasterEric <ericmyllyoja@gmail.com>
Date: Tue, 27 Jun 2023 21:29:58 -0400
Subject: [PATCH] Messing with transitions.

---
 source/funkin/InitState.hx | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

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;