Discord Rich Presence

This commit is contained in:
KadeDev
2021-03-21 19:05:45 -07:00
parent b215f5bf2a
commit 64a72cbe13
7 changed files with 225 additions and 0 deletions

View File

@@ -24,6 +24,11 @@ import io.newgrounds.NG;
import lime.app.Application;
import openfl.Assets;
#if desktop
import Discord.DiscordClient;
import sys.thread.Thread;
#end
using StringTools;
class TitleState extends MusicBeatState
@@ -51,8 +56,13 @@ class TitleState extends MusicBeatState
sys.FileSystem.createDirectory(Sys.getCwd() + "\\assets\\replays");
#end
PlayerSettings.init();
#if desktop
DiscordClient.initialize();
#end
curWacky = FlxG.random.getObject(getIntroTextShit());
// DEBUG BULLSHIT