Skip to content

Commit

Permalink
it seems to be brok
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 committed Dec 5, 2024
1 parent f4930f6 commit 01dbfb6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/StartupState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ class StartupState extends MusicBeatState
var skipTxt:FlxText;

var maxIntros:Int = 3;
var maxSecretIntros:Int = -1; // trolley
var maxSecretIntros:Int = 0; // trolley

override public function create():Void
{
#if VIDEOS_ALLOWED maxIntros = maxSecretIntros += 2; #end
#if VIDEOS_ALLOWED
maxIntros += 2;
maxSecretIntros += 1;
#end
var theIntro:Int = FlxG.random.int(0, maxIntros);
var theSecretIntro:Int = FlxG.random.int(0, maxSecretIntros);
FlxTransitionableState.skipNextTransIn = true;
Expand Down Expand Up @@ -89,10 +92,10 @@ class StartupState extends MusicBeatState
{
switch (theSecretIntro)
{
case 0:
playVideo('oops');
case 1:
playVideo('haxe');
default:
playVideo('oops');
}
}
});
Expand Down

0 comments on commit 01dbfb6

Please sign in to comment.