Skip to content

Commit f14a9aa

Browse files
committed
april fools shit
1 parent a283015 commit f14a9aa

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed
193 KB
Binary file not shown.

assets/splash/images/autism.png

111 KB
Loading
12.7 KB
Binary file not shown.

source/StartupState.hx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ class StartupState extends MusicBeatState
6565
canChristmas = true;
6666
maxIntros += 1; //JOLLY SANTA!!!
6767
}
68+
else if (date.getMonth() == 4 && date.getDate() == 1) // funny
69+
{
70+
canAutism = true;
71+
maxIntros += 1; //autism!!!!!!!!!!!!!!!!!!!!!!oubgrebiugerbiuegrs
72+
}
6873

6974
FlxTransitionableState.skipNextTransIn = true;
7075
FlxTransitionableState.skipNextTransOut = true;
@@ -162,6 +167,20 @@ class StartupState extends MusicBeatState
162167
}
163168
else
164169
doIntro();
170+
171+
case 7:
172+
if (canAutism)
173+
{
174+
FlxG.sound.play(Paths.sound('aprilFools', 'splash'));
175+
logo.loadGraphic(Paths.image('autism', 'splash'));
176+
logo.scale.set(0.1,0.1);
177+
logo.updateHitbox();
178+
logo.screenCenter();
179+
FlxTween.tween(logo, {alpha: 1, "scale.x": 1, "scale.y": 1}, 0.95, {ease: FlxEase.linear, onComplete: _ -> onIntroDone()});
180+
}
181+
else
182+
doIntro();
183+
165184
}
166185
}
167186
#end

source/TitleState.hx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,12 @@ class TitleState extends MusicBeatState
251251
{
252252
if (!initialized)
253253
{
254-
if(FlxG.sound.music == null) {
254+
if (date.getMonth() == 4 && date.getDate() == 1)
255+
{
256+
FlxG.sound.playMusic(Paths.music('aprilFools'), 0);
257+
}
258+
else if(FlxG.sound.music == null)
259+
{
255260
FlxG.sound.playMusic(Paths.music('freakyMenu-' + ClientPrefs.daMenuMusic), 0);
256261
}
257262
}

0 commit comments

Comments
 (0)