From 86955d6670d4d5af035a3c11de32dd5aefc3f8e2 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sun, 14 Feb 2021 19:45:18 -0500 Subject: [PATCH] icons and changelog and newgrounds --- CHANGELOG.md | 4 ++++ Project.xml | 2 +- source/NGio.hx | 6 +++++- source/TitleState.hx | 10 +++++++--- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6ce02987..865d1a9f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [unreleased] +### Added +- Easter eggs ### Changed - New icons, old one was placeholder since October woops! - Made the transitions between the story mode levels more seamless. +- Offset of the Newgrounds logo on boot screen. ### Fixed +- Should show intro credits on desktop versions of the game more consistently - Layering on Week 4 songs with GF and the LIMO LOL HOW TF I MISS THIS - Chart's and chart editor now support changeBPM, GOD BLESS MTH FOR THIS ONE I BEEN STRUGGLIN WIT THAT SINCE OCTOBER LMAO ([GOD BLESS MTH](https://github.com/ninjamuffin99/Funkin/pull/382)) - Fixed sustain note trails ALSO THANKS TO MTH U A REAL ONE ([MTH VERY POWERFUL](https://github.com/ninjamuffin99/Funkin/pull/415)) diff --git a/Project.xml b/Project.xml index 9a04d2611..4957653de 100644 --- a/Project.xml +++ b/Project.xml @@ -2,7 +2,7 @@ - + diff --git a/source/NGio.hx b/source/NGio.hx index 0c2631b86..c799c4bd2 100644 --- a/source/NGio.hx +++ b/source/NGio.hx @@ -14,6 +14,8 @@ import io.newgrounds.objects.events.Result.GetVersionResult; import lime.app.Application; import openfl.display.Stage; +using StringTools; + /** * MADE BY GEOKURELI THE LEGENED GOD HERO MVP */ @@ -28,6 +30,7 @@ class NGio public static var ngScoresLoaded(default, null):FlxSignal = new FlxSignal(); public static var GAME_VER:String = ""; + public static var GAME_VER_NUMS:String = ''; public static var gotOnlineVer:Bool = false; public static function noLogin(api:String) @@ -43,7 +46,8 @@ class NGio { var call = NG.core.calls.app.getCurrentVersion(GAME_VER).addDataHandler(function(response:Response) { - GAME_VER = response.result.data.current_version; + GAME_VER = response.result.data.currentVersion; + GAME_VER_NUMS = GAME_VER.split(" ")[0].trim(); trace('CURRENT NG VERSION: ' + GAME_VER); gotOnlineVer = true; }); diff --git a/source/TitleState.hx b/source/TitleState.hx index 53452e45c..6defd5b78 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -88,7 +88,10 @@ class TitleState extends MusicBeatState #elseif CHARTING FlxG.switchState(new ChartingState()); #else - startIntro(); + new FlxTimer().start(1, function(tmr:FlxTimer) + { + startIntro(); + }); #end } @@ -223,7 +226,8 @@ class TitleState extends MusicBeatState override function update(elapsed:Float) { - Conductor.songPosition = FlxG.sound.music.time; + if (FlxG.sound.music != null) + Conductor.songPosition = FlxG.sound.music.time; // FlxG.watch.addQuick('amp', FlxG.sound.music.amplitude); if (FlxG.keys.justPressed.F) @@ -270,7 +274,7 @@ class TitleState extends MusicBeatState var version:String = "v" + Application.current.meta.get('version'); - if (version.trim() != NGio.GAME_VER.trim() && !OutdatedSubState.leftState) + if (version.trim() != NGio.GAME_VER_NUMS && !OutdatedSubState.leftState) { trace('OLD VERSION!'); FlxG.switchState(new OutdatedSubState());