diff --git a/source/Main.hx b/source/Main.hx index 9ad6652..97d4320 100644 --- a/source/Main.hx +++ b/source/Main.hx @@ -23,6 +23,8 @@ class Main extends Sprite var skipSplash:Bool = true; // Whether to skip the flixel splash screen that appears in release mode. var startFullscreen:Bool = false; // Whether to start the game in fullscreen on desktop targets + public static var watermarks = true; // Whether to put Kade Engine liteartly anywhere + // You can pretty much ignore everything from here on - your code should go in your states. public static function main():Void diff --git a/source/Options.hx b/source/Options.hx index 0ce8df0..b09ff7b 100644 --- a/source/Options.hx +++ b/source/Options.hx @@ -438,6 +438,27 @@ class CustomizeGameplay extends Option } } +class WatermarkOption extends Option +{ + public function new(desc:String) + { + super(); + description = desc; + } + + public override function press():Bool + { + Main.watermarks = !Main.watermarks; + display = updateDisplay(); + return false; + } + + private override function updateDisplay():String + { + return "Watermarks " + (Main.watermarks ? "on" : "off"); + } +} + class OffsetMenu extends Option { public function new(desc:String) diff --git a/source/PlayState.hx b/source/PlayState.hx index 7bd4879..baf899b 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -820,7 +820,7 @@ class PlayState extends MusicBeatState add(healthBar); // Add Kade Engine watermark - var kadeEngineWatermark = new FlxText(4,healthBarBG.y + 50,0,SONG.song + " " + (storyDifficulty == 2 ? "Hard" : storyDifficulty == 1 ? "Normal" : "Easy") + " - KE " + MainMenuState.kadeEngineVer + " - " + (FlxG.save.data.etternaMode ? "E.Mode" : "FNF"), 16); + var kadeEngineWatermark = new FlxText(4,healthBarBG.y + 50,0,SONG.song + " " + (storyDifficulty == 2 ? "Hard" : storyDifficulty == 1 ? "Normal" : "Easy") + (Main.watermarks ? " - KE " + MainMenuState.kadeEngineVer : ""), 16); kadeEngineWatermark.setFormat(Paths.font("vcr.ttf"), 16, FlxColor.WHITE, RIGHT, FlxTextBorderStyle.OUTLINE,FlxColor.BLACK); kadeEngineWatermark.scrollFactor.set(); add(kadeEngineWatermark); diff --git a/source/TitleState.hx b/source/TitleState.hx index e38e58e..def04db 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -398,9 +398,18 @@ class TitleState extends MusicBeatState // credTextShit.text = 'In association \nwith'; // credTextShit.screenCenter(); case 5: - createCoolText(['Kade Engine', 'by']); + if (Main.watermarks) + createCoolText(['Kade Engine', 'by']); + else + createCoolText(['In Partnership', 'with']); case 7: - addMoreText('KadeDeveloper'); + if (Main.watermarks) + addMoreText('KadeDeveloper'); + else + { + addMoreText('Newgrounds'); + ngSpr.visible = true; + } // credTextShit.text += '\nNewgrounds'; case 8: deleteCoolText();