diff --git a/assets/data/specialThanks.txt b/assets/data/specialThanks.txt index ebe2a612b..3eaae488f 100644 --- a/assets/data/specialThanks.txt +++ b/assets/data/specialThanks.txt @@ -9,4 +9,6 @@ mmatt_ugh Squidly Luis GeoKureli -Will Blanton \ No newline at end of file +Will Blanton + +BIT BOY - MIKE WELSH \ No newline at end of file diff --git a/assets/data/spookeez/spookeez.json b/assets/data/spookeez/spookeez.json new file mode 100644 index 000000000..5797e2814 --- /dev/null +++ b/assets/data/spookeez/spookeez.json @@ -0,0 +1 @@ +{"song":{"song":"Spookeez","notes":[{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[6400,0,0],[6600,1,0],[6800,3,0],[7200,3,0],[7600,2,0],[7800,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[8000,1,0],[8200,3,0],[8400,3,0],[9300,0,0],[9400,3,0],[8800,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[9600,0,0],[9800,1,0],[10000,3,0],[10400,3,0],[10800,2,0],[11000,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[11200,1,0],[11400,3,0],[11600,3,0],[12500,0,0],[12600,3,0],[12000,2,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[12800,2,0],[13000,3,0],[13100,1,0],[13200,0,0],[13400,0,0],[13500,1,0],[13700,2,0],[13800,3,0],[13900,0,0],[14000,1,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[14700,1,0],[15100,1,0],[14400,1,0],[14600,0,0],[14800,3,0],[15000,3,0],[15300,0,0],[15500,0,0],[15700,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[16000,2,0],[16200,3,0],[16300,1,0],[16400,0,0],[16600,0,0],[16700,1,0],[16900,2,0],[17000,3,0],[17100,0,0],[17200,1,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[17900,1,0],[18300,1,0],[17600,1,0],[17800,0,0],[18000,3,0],[18200,3,0],[18500,0,0],[18700,0,0],[18900,2,0],[19000,4,0],[19100,7,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[20000,3,0],[20600,3,0],[19700,3,0],[20400,3,0],[19200,2,0],[19300,0,0],[19400,3,0],[19500,1,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[20800,2,0],[21100,1,0],[20900,3,0],[21000,0,0],[21300,3,0],[21600,3,0],[21900,1,0],[22000,3,0],[22200,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[22900,3,0],[23200,3,0],[23600,3,0],[23800,3,0],[22700,1,0],[22400,2,0],[22500,0,0],[22600,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[24500,3,0],[24300,1,0],[24000,2,0],[24200,0,0],[24100,3,0],[24800,1,0],[25200,2,0],[25400,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[26400,3,0],[27000,3,0],[26100,3,0],[26800,3,0],[25600,2,0],[25700,0,0],[25800,3,0],[25900,1,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[27200,2,0],[27500,1,0],[27300,3,0],[27400,0,0],[27700,3,0],[28000,3,0],[28300,1,0],[28400,3,0],[28600,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[29300,3,0],[29600,3,0],[30000,3,0],[30200,3,0],[29100,1,0],[28800,2,0],[28900,0,0],[29000,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[30900,3,0],[30700,1,0],[30400,2,0],[30600,0,0],[30500,3,0],[31200,1,0],[31600,2,0],[31800,2,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[32000,0,0],[32200,1,0],[32400,3,0],[32800,3,0],[33200,2,0],[33400,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[33600,1,0],[33800,3,0],[34000,3,0],[34900,0,0],[35000,3,0],[34400,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[35200,0,0],[35400,1,0],[35600,3,0],[36000,3,0],[36400,2,0],[36600,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[36800,1,0],[37000,3,0],[37200,3,0],[38100,0,0],[38200,3,0],[37600,2,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[38400,2,0],[38600,3,0],[38700,1,0],[38800,0,0],[39000,0,0],[39100,1,0],[39300,2,0],[39400,3,0],[39500,0,0],[39600,1,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[40300,1,0],[40700,1,0],[40000,1,0],[40200,0,0],[40400,3,0],[40600,3,0],[40900,0,0],[41100,0,0],[41300,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[41600,2,0],[41800,3,0],[41900,1,0],[42000,0,0],[42200,0,0],[42300,1,0],[42500,2,0],[42600,3,0],[42700,0,0],[42800,1,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[43500,1,0],[43900,1,0],[43200,1,0],[43400,0,0],[43600,3,0],[43800,3,0],[44100,0,0],[44300,0,0],[44500,2,0],[44600,4,0],[44700,7,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[45600,3,0],[46200,3,0],[45300,3,0],[46000,3,0],[44800,2,0],[44900,0,0],[45000,3,0],[45100,1,0],[45700,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[46400,2,0],[46700,1,0],[46500,3,0],[46600,0,0],[46900,3,0],[47200,3,0],[47600,3,0],[47800,3,0],[47300,1,0],[47500,0,0],[47538,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[48500,3,0],[48800,3,0],[49200,3,0],[49400,3,0],[48300,1,0],[48000,2,0],[48100,0,0],[48200,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[50100,3,0],[49900,1,0],[49600,2,0],[49800,0,0],[49700,3,0],[50400,3,0],[50800,4,0],[51000,7,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[52000,3,0],[52600,3,0],[51700,3,0],[52400,3,0],[51200,2,0],[51300,0,0],[51400,3,0],[51500,1,0],[52100,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[52800,2,0],[53100,1,0],[52900,3,0],[53000,0,0],[53300,3,0],[53600,3,0],[54000,3,0],[54200,3,0],[53700,1,0],[53900,0,0],[53938,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[54900,3,0],[55200,3,0],[55600,3,0],[55800,3,0],[54700,1,0],[54400,2,0],[54500,0,0],[54600,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[56500,3,0],[56300,1,0],[56000,2,0],[56200,0,0],[56100,3,0],[56800,3,0],[57200,4,0],[57400,7,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]}],"bpm":150,"sections":0,"needsVoices":true,"player1":"bf","player2":"spooky","sectionLengths":[],"speed":1.9000000000000008},"bpm":150,"sections":40,"notes":[{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[6400,0,0],[6600,1,0],[6800,3,0],[7200,3,0],[7600,2,0],[7800,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[8000,1,0],[8200,3,0],[8400,3,0],[9300,0,0],[9400,3,0],[8800,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[9600,0,0],[9800,1,0],[10000,3,0],[10400,3,0],[10800,2,0],[11000,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[11200,1,0],[11400,3,0],[11600,3,0],[12500,0,0],[12600,3,0],[12000,2,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[12800,2,0],[13000,3,0],[13100,1,0],[13200,0,0],[13400,0,0],[13500,1,0],[13700,2,0],[13800,3,0],[13900,0,0],[14000,1,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[14700,1,0],[15100,1,0],[14400,1,0],[14600,0,0],[14800,3,0],[15000,3,0],[15300,0,0],[15500,0,0],[15700,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[16000,2,0],[16200,3,0],[16300,1,0],[16400,0,0],[16600,0,0],[16700,1,0],[16900,2,0],[17000,3,0],[17100,0,0],[17200,1,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[17900,1,0],[18300,1,0],[17600,1,0],[17800,0,0],[18000,3,0],[18200,3,0],[18500,0,0],[18700,0,0],[18900,2,0],[19000,4,0],[19100,7,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[20000,3,0],[20600,3,0],[19700,3,0],[20400,3,0],[19200,2,0],[19300,0,0],[19400,3,0],[19500,1,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[20800,2,0],[21100,1,0],[20900,3,0],[21000,0,0],[21300,3,0],[21600,3,0],[21900,1,0],[22000,3,0],[22200,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[22900,3,0],[23200,3,0],[23600,3,0],[23800,3,0],[22700,1,0],[22400,2,0],[22500,0,0],[22600,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[24500,3,0],[24300,1,0],[24000,2,0],[24200,0,0],[24100,3,0],[24800,1,0],[25200,2,0],[25400,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[26400,3,0],[27000,3,0],[26100,3,0],[26800,3,0],[25600,2,0],[25700,0,0],[25800,3,0],[25900,1,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[27200,2,0],[27500,1,0],[27300,3,0],[27400,0,0],[27700,3,0],[28000,3,0],[28300,1,0],[28400,3,0],[28600,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[29300,3,0],[29600,3,0],[30000,3,0],[30200,3,0],[29100,1,0],[28800,2,0],[28900,0,0],[29000,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[30900,3,0],[30700,1,0],[30400,2,0],[30600,0,0],[30500,3,0],[31200,1,0],[31600,2,0],[31800,2,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[32000,0,0],[32200,1,0],[32400,3,0],[32800,3,0],[33200,2,0],[33400,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[33600,1,0],[33800,3,0],[34000,3,0],[34900,0,0],[35000,3,0],[34400,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[35200,0,0],[35400,1,0],[35600,3,0],[36000,3,0],[36400,2,0],[36600,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[36800,1,0],[37000,3,0],[37200,3,0],[38100,0,0],[38200,3,0],[37600,2,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[38400,2,0],[38600,3,0],[38700,1,0],[38800,0,0],[39000,0,0],[39100,1,0],[39300,2,0],[39400,3,0],[39500,0,0],[39600,1,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[40300,1,0],[40700,1,0],[40000,1,0],[40200,0,0],[40400,3,0],[40600,3,0],[40900,0,0],[41100,0,0],[41300,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[41600,2,0],[41800,3,0],[41900,1,0],[42000,0,0],[42200,0,0],[42300,1,0],[42500,2,0],[42600,3,0],[42700,0,0],[42800,1,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[43500,1,0],[43900,1,0],[43200,1,0],[43400,0,0],[43600,3,0],[43800,3,0],[44100,0,0],[44300,0,0],[44500,2,0],[44600,4,0],[44700,7,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[45600,3,0],[46200,3,0],[45300,3,0],[46000,3,0],[44800,2,0],[44900,0,0],[45000,3,0],[45100,1,0],[45700,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[46400,2,0],[46700,1,0],[46500,3,0],[46600,0,0],[46900,3,0],[47200,3,0],[47600,3,0],[47800,3,0],[47300,1,0],[47500,0,0],[47538,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[48500,3,0],[48800,3,0],[49200,3,0],[49400,3,0],[48300,1,0],[48000,2,0],[48100,0,0],[48200,3,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[50100,3,0],[49900,1,0],[49600,2,0],[49800,0,0],[49700,3,0],[50400,3,0],[50800,4,0],[51000,7,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[52000,3,0],[52600,3,0],[51700,3,0],[52400,3,0],[51200,2,0],[51300,0,0],[51400,3,0],[51500,1,0],[52100,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[52800,2,0],[53100,1,0],[52900,3,0],[53000,0,0],[53300,3,0],[53600,3,0],[54000,3,0],[54200,3,0],[53700,1,0],[53900,0,0],[53938,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[54900,3,0],[55200,3,0],[55600,3,0],[55800,3,0],[54700,1,0],[54400,2,0],[54500,0,0],[54600,3,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[56500,3,0],[56300,1,0],[56000,2,0],[56200,0,0],[56100,3,0],[56800,3,0],[57200,4,0],[57400,7,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[]}]} \ No newline at end of file diff --git a/assets/images/bg.png b/assets/images/bg.png deleted file mode 100644 index 3b3a7bdc9..000000000 Binary files a/assets/images/bg.png and /dev/null differ diff --git a/assets/music/Spookeez.mp3 b/assets/music/Spookeez.mp3 new file mode 100644 index 000000000..74a958ebd Binary files /dev/null and b/assets/music/Spookeez.mp3 differ diff --git a/assets/music/Spookeez_Inst.mp3 b/assets/music/Spookeez_Inst.mp3 new file mode 100644 index 000000000..14bde4c0f Binary files /dev/null and b/assets/music/Spookeez_Inst.mp3 differ diff --git a/assets/music/Spookeez_Voices.mp3 b/assets/music/Spookeez_Voices.mp3 new file mode 100644 index 000000000..854301d9b Binary files /dev/null and b/assets/music/Spookeez_Voices.mp3 differ diff --git a/assets/music/freakyMenu.ogg b/assets/music/freakyMenu.ogg new file mode 100644 index 000000000..372111d6f Binary files /dev/null and b/assets/music/freakyMenu.ogg differ diff --git a/source/Alphabet.hx b/source/Alphabet.hx index bb8cce924..20556e359 100644 --- a/source/Alphabet.hx +++ b/source/Alphabet.hx @@ -17,6 +17,8 @@ class Alphabet extends FlxSpriteGroup public var delay:Float = 0.05; public var paused:Bool = false; + public var text:String = ""; + var _finalText:String = ""; var _curText:String = ""; @@ -28,15 +30,79 @@ class Alphabet extends FlxSpriteGroup // amp, backslash, question mark, apostrophy, comma, angry faic, period var lastSprite:AlphaCharacter; var xPosResetted:Bool = false; + var lastWasSpace:Bool = false; - public function new(x:Float, y:Float, text:String = "", ?bold:Bool = false) + var splitWords:Array = []; + + public function new(x:Float, y:Float, text:String = "", ?bold:Bool = false, typed:Bool = false) { super(x, y); _finalText = text; + this.text = text; - var arrayShit:Array = text.split(""); - trace(arrayShit); + if (typed) + { + startTypedText(); + } + else + { + addText(); + } + } + + public function addText() + { + doSplitWords(); + + for (character in splitWords) + { + // if (character.fastCodeAt() == " ") + // { + // } + + if (character == " ") + { + lastWasSpace = true; + } + + if (AlphaCharacter.alphabet.contains(character.toLowerCase())) + { + var xPos:Float = 0; + if (lastSprite != null) + { + xPos = lastSprite.x + lastSprite.frameWidth; + } + + if (lastWasSpace) + { + xPos += 40; + lastWasSpace = false; + } + + // var letter:AlphaCharacter = new AlphaCharacter(30 * loopNum, 0); + var letter:AlphaCharacter = new AlphaCharacter(xPos, 0); + letter.createBold(character); + add(letter); + + lastSprite = letter; + } + + // loopNum += 1; + } + } + + function doSplitWords():Void + { + splitWords = _finalText.split(""); + } + + public function startTypedText():Void + { + _finalText = text; + doSplitWords(); + + // trace(arrayShit); var loopNum:Int = 0; @@ -52,7 +118,7 @@ class Alphabet extends FlxSpriteGroup // xPos = 0; } - if (AlphaCharacter.alphabet.contains(arrayShit[loopNum].toLowerCase())) + if (AlphaCharacter.alphabet.contains(splitWords[loopNum].toLowerCase())) { if (lastSprite != null && !xPosResetted) { @@ -67,7 +133,7 @@ class Alphabet extends FlxSpriteGroup // var letter:AlphaCharacter = new AlphaCharacter(30 * loopNum, 0); var letter:AlphaCharacter = new AlphaCharacter(xPos, 55 * yMulti); - letter.createBold(arrayShit[loopNum]); + letter.createBold(splitWords[loopNum]); add(letter); lastSprite = letter; @@ -76,32 +142,7 @@ class Alphabet extends FlxSpriteGroup loopNum += 1; tmr.time = FlxG.random.float(0.03, 0.09); - }, arrayShit.length); - - for (character in arrayShit) - { - // if (character.fastCodeAt() == " ") - // { - // } - - if (AlphaCharacter.alphabet.contains(character.toLowerCase())) - { - /* var xPos:Float = 0; - if (lastSprite != null) - { - xPos = lastSprite.x + lastSprite.frameWidth - 40; - } - - // var letter:AlphaCharacter = new AlphaCharacter(30 * loopNum, 0); - var letter:AlphaCharacter = new AlphaCharacter(xPos, 0); - letter.createBold(character); - add(letter); - - lastSprite = letter; */ - } - - // loopNum += 1; - } + }, splitWords.length); } override function update(elapsed:Float) diff --git a/source/Character.hx b/source/Character.hx index 85df3268f..0f881814a 100644 --- a/source/Character.hx +++ b/source/Character.hx @@ -73,7 +73,7 @@ class Character extends FlxSprite animation.addByPrefix('singDOWN', 'spooky DOWN note', 24, false); animation.addByPrefix('singLEFT', 'note sing left', 24, false); animation.addByPrefix('singRIGHT', 'spooky sing right', 24, false); - animation.addByIndices('danceLeft', 'spooky dance idle', [16, 0, 2, 6], "", 12, false); + animation.addByIndices('danceLeft', 'spooky dance idle', [0, 2, 6], "", 12, false); animation.addByIndices('danceRight', 'spooky dance idle', [8, 10, 12, 14], "", 12, false); addOffset('danceLeft'); diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 87d0409f4..9483b506b 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -81,7 +81,7 @@ class ChartingState extends MusicBeatState else { _song = { - song: 'tutorial', + song: 'Spookeez', notes: [], bpm: 100, sections: 0, diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index f745d5da6..e10db5261 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -23,8 +23,9 @@ class FreeplayState extends MusicBeatState for (i in 0...songs.length) { - var songText:Alphabet = new Alphabet(40, (70 * i) + 30, songs[i]); + var songText:Alphabet = new Alphabet(40, (70 * i) + 30, songs[i], true, false); add(songText); + // songText.screenCenter(X); } selector = new FlxText(); diff --git a/source/Main.hx b/source/Main.hx index e2e0f4dee..13376db44 100644 --- a/source/Main.hx +++ b/source/Main.hx @@ -9,7 +9,7 @@ class Main extends Sprite public function new() { super(); - addChild(new FlxGame(0, 0, FreeplayState)); + addChild(new FlxGame(0, 0, TitleState)); #if !mobile addChild(new FPS(10, 3, 0xFFFFFF)); diff --git a/source/PlayState.hx b/source/PlayState.hx index ef165d435..48df0fea6 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1200,6 +1200,12 @@ class PlayState extends MusicBeatState vocals.time = Conductor.songPosition; vocals.play(); } + + if (dad.curCharacter == 'spooky' && totalSteps % 4 == 2) + { + // dad.dance(); + } + super.stepHit(); } @@ -1219,7 +1225,9 @@ class PlayState extends MusicBeatState healthHeads.setGraphicSize(Std.int(healthHeads.width + 20)); if (totalBeats % gfSpeed == 0) + { gf.dance(); + } if (!boyfriend.animation.curAnim.name.startsWith("sing")) boyfriend.playAnim('idle'); diff --git a/source/TitleState.hx b/source/TitleState.hx index b575df457..5c5ed9413 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -25,7 +25,8 @@ class TitleState extends MusicBeatState var blackScreen:FlxSprite; var credGroup:FlxGroup; - var credTextShit:FlxText; + var credTextShit:Alphabet; + var textGroup:FlxGroup; override public function create():Void { @@ -78,19 +79,21 @@ class TitleState extends MusicBeatState credGroup = new FlxGroup(); add(credGroup); + textGroup = new FlxGroup(); blackScreen = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK); credGroup.add(blackScreen); - credTextShit = new FlxText(0, 0, 0, "ninjamuffin99\nPhantomArcade\nEvilsk8er\nAnd Kawaisprite", 24); + credTextShit = new Alphabet(0, 0, "ninjamuffin99\nPhantomArcade\nkawaisprite\nevilsk8er", true); credTextShit.screenCenter(); - credTextShit.alignment = CENTER; + + // credTextShit.alignment = CENTER; credTextShit.visible = false; FlxTween.tween(credTextShit, {y: credTextShit.y + 20}, 2.9, {ease: FlxEase.quadInOut, type: PINGPONG}); - credGroup.add(credTextShit); + // credGroup.add(credTextShit); FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt, 0, false); @@ -135,6 +138,36 @@ class TitleState extends MusicBeatState super.update(elapsed); } + function createCoolText(textArray:Array) + { + for (i in 0...textArray.length) + { + var money:Alphabet = new Alphabet(0, 0, textArray[i], true, false); + money.screenCenter(X); + money.y += (i * 60) + 200; + credGroup.add(money); + textGroup.add(money); + } + } + + function addMoreText(text:String) + { + var coolText:Alphabet = new Alphabet(0, 0, text, true, false); + coolText.screenCenter(X); + coolText.y += (textGroup.length * 60) + 200; + credGroup.add(coolText); + textGroup.add(coolText); + } + + function deleteCoolText() + { + while (textGroup.members.length > 0) + { + credGroup.remove(textGroup.members[0], true); + textGroup.remove(textGroup.members[0], true); + } + } + override function beatHit() { super.beatHit(); @@ -144,35 +177,47 @@ class TitleState extends MusicBeatState switch (curBeat) { case 1: - credTextShit.visible = true; + createCoolText(['ninjamuffin99', 'phantomArcade', 'kawaisprite', 'evilsk8er']); + // credTextShit.visible = true; case 3: - credTextShit.text += '\npresent...'; + addMoreText('present'); + // credTextShit.text += '\npresent...'; + // credTextShit.addText(); case 4: - credTextShit.visible = false; - credTextShit.text = 'In association \nwith'; - credTextShit.screenCenter(); + deleteCoolText(); + // credTextShit.visible = false; + // credTextShit.text = 'In association \nwith'; + // credTextShit.screenCenter(); case 5: - credTextShit.visible = true; + createCoolText(['In association', 'with']); case 7: - credTextShit.text += '\nNewgrounds'; + addMoreText('newgrounds'); + // credTextShit.text += '\nNewgrounds'; case 8: - credTextShit.visible = false; - credTextShit.text = 'Shoutouts Tom Fulp'; - credTextShit.screenCenter(); + deleteCoolText(); + // credTextShit.visible = false; + + // credTextShit.text = 'Shoutouts Tom Fulp'; + // credTextShit.screenCenter(); case 9: - credTextShit.visible = true; + createCoolText(['Shoutouts Tom Fulp']); + // credTextShit.visible = true; case 11: - credTextShit.text += '\nlmao'; + addMoreText('lmao'); + // credTextShit.text += '\nlmao'; case 12: - credTextShit.visible = false; - credTextShit.text = "Friday"; - credTextShit.screenCenter(); + deleteCoolText(); + // credTextShit.visible = false; + // credTextShit.text = "Friday"; + // credTextShit.screenCenter(); case 13: - credTextShit.visible = true; + addMoreText('Friday'); + // credTextShit.visible = true; case 14: - credTextShit.text += '\nNight'; + addMoreText('Night'); + // credTextShit.text += '\nNight'; case 15: - credTextShit.text += '\nFunkin'; + addMoreText('Funkin'); // credTextShit.text += '\nFunkin'; case 16: skipIntro();