From d16091dc24dbeda962ce9d70375ec5fc0cb4b912 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Mon, 8 Feb 2021 15:34:48 -0600 Subject: [PATCH 01/11] add Paths asset name helper --- source/Alphabet.hx | 4 +- source/BackgroundDancer.hx | 2 +- source/BackgroundGirls.hx | 2 +- source/Character.hx | 41 +++++++------ source/ChartingState.hx | 2 +- source/DialogueBox.hx | 43 +++++++------- source/FreeplayState.hx | 8 +-- source/GameOverSubstate.hx | 6 +- source/HealthIcon.hx | 2 +- source/LatencyState.hx | 2 +- source/MainMenuState.hx | 14 ++--- source/MenuCharacter.hx | 2 +- source/MenuItem.hx | 2 +- source/Note.hx | 10 ++-- source/OptionsMenu.hx | 4 +- source/Paths.hx | 52 +++++++++++++++++ source/PauseSubState.hx | 2 +- source/PlayState.hx | 114 ++++++++++++++++++------------------- source/StoryMenuState.hx | 10 ++-- source/TitleState.hx | 18 +++--- source/import.hx | 1 + 21 files changed, 199 insertions(+), 142 deletions(-) create mode 100644 source/Paths.hx create mode 100644 source/import.hx diff --git a/source/Alphabet.hx b/source/Alphabet.hx index f9bfe23..77ac5dc 100644 --- a/source/Alphabet.hx +++ b/source/Alphabet.hx @@ -204,7 +204,7 @@ class Alphabet extends FlxSpriteGroup if (FlxG.random.bool(40)) { var daSound:String = "GF_"; - FlxG.sound.play('assets/sounds/' + daSound + FlxG.random.int(1, 4) + TitleState.soundExt, 0.4); + FlxG.sound.play(Paths.soundRandom(daSound, 1, 4)); } add(letter); @@ -245,7 +245,7 @@ class AlphaCharacter extends FlxSprite public function new(x:Float, y:Float) { super(x, y); - var tex = FlxAtlasFrames.fromSparrow('assets/images/alphabet.png', 'assets/images/alphabet.xml'); + var tex = Paths.getSparrowAtlas('alphabet'); frames = tex; antialiasing = true; diff --git a/source/BackgroundDancer.hx b/source/BackgroundDancer.hx index e88c019..a619dac 100644 --- a/source/BackgroundDancer.hx +++ b/source/BackgroundDancer.hx @@ -9,7 +9,7 @@ class BackgroundDancer extends FlxSprite { super(x, y); - frames = FlxAtlasFrames.fromSparrow("assets/images/limo/limoDancer.png", "assets/images/limo/limoDancer.xml"); + frames = Paths.getSparrowAtlas("limo/limoDancer"); animation.addByIndices('danceLeft', 'bg dancer sketch PINK', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false); animation.addByIndices('danceRight', 'bg dancer sketch PINK', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false); animation.play('danceLeft'); diff --git a/source/BackgroundGirls.hx b/source/BackgroundGirls.hx index 57739fb..c37b16f 100644 --- a/source/BackgroundGirls.hx +++ b/source/BackgroundGirls.hx @@ -10,7 +10,7 @@ class BackgroundGirls extends FlxSprite super(x, y); // BG fangirls dissuaded - frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/bgFreaks.png', 'assets/images/weeb/bgFreaks.xml'); + frames = Paths.getSparrowAtlas('weeb/bgFreaks'); animation.addByIndices('danceLeft', 'BG girls group', CoolUtil.numberArray(14), "", 24, false); animation.addByIndices('danceRight', 'BG girls group', CoolUtil.numberArray(30, 15), "", 24, false); diff --git a/source/Character.hx b/source/Character.hx index 821c928..4177e2b 100644 --- a/source/Character.hx +++ b/source/Character.hx @@ -31,7 +31,7 @@ class Character extends FlxSprite { case 'gf': // GIRLFRIEND CODE - tex = FlxAtlasFrames.fromSparrow('assets/images/GF_assets.png', 'assets/images/GF_assets.xml'); + tex = Paths.getSparrowAtlas('GF_assets'); frames = tex; animation.addByPrefix('cheer', 'GF Cheer', 24, false); animation.addByPrefix('singLEFT', 'GF left note', 24, false); @@ -62,7 +62,7 @@ class Character extends FlxSprite playAnim('danceRight'); case 'gf-christmas': - tex = FlxAtlasFrames.fromSparrow('assets/images/christmas/gfChristmas.png', 'assets/images/christmas/gfChristmas.xml'); + tex = Paths.getSparrowAtlas('christmas/gfChristmas'); frames = tex; animation.addByPrefix('cheer', 'GF Cheer', 24, false); animation.addByPrefix('singLEFT', 'GF left note', 24, false); @@ -93,7 +93,7 @@ class Character extends FlxSprite playAnim('danceRight'); case 'gf-car': - tex = FlxAtlasFrames.fromSparrow('assets/images/gfCar.png', 'assets/images/gfCar.xml'); + tex = Paths.getSparrowAtlas('gfCar'); frames = tex; animation.addByIndices('singUP', 'GF Dancing Beat Hair blowing CAR', [0], "", 24, false); animation.addByIndices('danceLeft', 'GF Dancing Beat Hair blowing CAR', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false); @@ -106,7 +106,7 @@ class Character extends FlxSprite playAnim('danceRight'); case 'gf-pixel': - tex = FlxAtlasFrames.fromSparrow('assets/images/weeb/gfPixel.png', 'assets/images/weeb/gfPixel.xml'); + tex = Paths.getSparrowAtlas('weeb/gfPixel'); frames = tex; animation.addByIndices('singUP', 'GF IDLE', [2], "", 24, false); animation.addByIndices('danceLeft', 'GF IDLE', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false); @@ -123,7 +123,7 @@ class Character extends FlxSprite case 'dad': // DAD ANIMATION LOADING CODE - tex = FlxAtlasFrames.fromSparrow('assets/images/DADDY_DEAREST.png', 'assets/images/DADDY_DEAREST.xml'); + tex = Paths.getSparrowAtlas('DADDY_DEAREST'); frames = tex; animation.addByPrefix('idle', 'Dad idle dance', 24); animation.addByPrefix('singUP', 'Dad Sing Note UP', 24); @@ -139,7 +139,7 @@ class Character extends FlxSprite playAnim('idle'); case 'spooky': - tex = FlxAtlasFrames.fromSparrow('assets/images/spooky_kids_assets.png', 'assets/images/spooky_kids_assets.xml'); + tex = Paths.getSparrowAtlas('spooky_kids_assets'); frames = tex; animation.addByPrefix('singUP', 'spooky UP NOTE', 24, false); animation.addByPrefix('singDOWN', 'spooky DOWN note', 24, false); @@ -158,7 +158,7 @@ class Character extends FlxSprite playAnim('danceRight'); case 'mom': - tex = FlxAtlasFrames.fromSparrow('assets/images/Mom_Assets.png', 'assets/images/Mom_Assets.xml'); + tex = Paths.getSparrowAtlas('Mom_Assets'); frames = tex; animation.addByPrefix('idle', "Mom Idle", 24, false); @@ -178,7 +178,7 @@ class Character extends FlxSprite playAnim('idle'); case 'mom-car': - tex = FlxAtlasFrames.fromSparrow('assets/images/momCar.png', 'assets/images/momCar.xml'); + tex = Paths.getSparrowAtlas('momCar'); frames = tex; animation.addByPrefix('idle', "Mom Idle", 24, false); @@ -197,7 +197,7 @@ class Character extends FlxSprite playAnim('idle'); case 'monster': - tex = FlxAtlasFrames.fromSparrow('assets/images/Monster_Assets.png', 'assets/images/Monster_Assets.xml'); + tex = Paths.getSparrowAtlas('Monster_Assets'); frames = tex; animation.addByPrefix('idle', 'monster idle', 24, false); animation.addByPrefix('singUP', 'monster up note', 24, false); @@ -212,7 +212,7 @@ class Character extends FlxSprite addOffset("singDOWN", -30, -40); playAnim('idle'); case 'monster-christmas': - tex = FlxAtlasFrames.fromSparrow('assets/images/christmas/monsterChristmas.png', 'assets/images/christmas/monsterChristmas.xml'); + tex = Paths.getSparrowAtlas('christmas/monsterChristmas'); frames = tex; animation.addByPrefix('idle', 'monster idle', 24, false); animation.addByPrefix('singUP', 'monster up note', 24, false); @@ -227,7 +227,7 @@ class Character extends FlxSprite addOffset("singDOWN", -40, -94); playAnim('idle'); case 'pico': - tex = FlxAtlasFrames.fromSparrow('assets/images/Pico_FNF_assetss.png', 'assets/images/Pico_FNF_assetss.xml'); + tex = Paths.getSparrowAtlas('Pico_FNF_assetss'); frames = tex; animation.addByPrefix('idle', "Pico Idle Dance", 24); animation.addByPrefix('singUP', 'pico Up note0', 24, false); @@ -266,7 +266,7 @@ class Character extends FlxSprite flipX = true; case 'bf': - var tex = FlxAtlasFrames.fromSparrow('assets/images/BOYFRIEND.png', 'assets/images/BOYFRIEND.xml'); + var tex = Paths.getSparrowAtlas('BOYFRIEND'); frames = tex; animation.addByPrefix('idle', 'BF idle dance', 24, false); animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false); @@ -305,7 +305,7 @@ class Character extends FlxSprite flipX = true; case 'bf-christmas': - var tex = FlxAtlasFrames.fromSparrow('assets/images/christmas/bfChristmas.png', 'assets/images/christmas/bfChristmas.xml'); + var tex = Paths.getSparrowAtlas('christmas/bfChristmas'); frames = tex; animation.addByPrefix('idle', 'BF idle dance', 24, false); animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false); @@ -333,7 +333,7 @@ class Character extends FlxSprite flipX = true; case 'bf-car': - var tex = FlxAtlasFrames.fromSparrow('assets/images/bfCar.png', 'assets/images/bfCar.xml'); + var tex = Paths.getSparrowAtlas('bfCar'); frames = tex; animation.addByPrefix('idle', 'BF idle dance', 24, false); animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false); @@ -358,7 +358,7 @@ class Character extends FlxSprite flipX = true; case 'bf-pixel': - frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/bfPixel.png', 'assets/images/weeb/bfPixel.xml'); + frames = Paths.getSparrowAtlas('weeb/bfPixel'); animation.addByPrefix('idle', 'BF IDLE', 24, false); animation.addByPrefix('singUP', 'BF UP NOTE', 24, false); animation.addByPrefix('singLEFT', 'BF LEFT NOTE', 24, false); @@ -391,7 +391,7 @@ class Character extends FlxSprite flipX = true; case 'bf-pixel-dead': - frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/bfPixelsDEAD.png', 'assets/images/weeb/bfPixelsDEAD.xml'); + frames = Paths.getSparrowAtlas('weeb/bfPixelsDEAD'); animation.addByPrefix('singUP', "BF Dies pixel", 24, false); animation.addByPrefix('firstDeath', "BF Dies pixel", 24, false); animation.addByPrefix('deathLoop', "Retry Loop", 24, true); @@ -409,7 +409,7 @@ class Character extends FlxSprite flipX = true; case 'senpai': - frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/senpai.png', 'assets/images/weeb/senpai.xml'); + frames = Paths.getSparrowAtlas('weeb/senpai'); animation.addByPrefix('idle', 'Senpai Idle', 24, false); animation.addByPrefix('singUP', 'SENPAI UP NOTE', 24, false); animation.addByPrefix('singLEFT', 'SENPAI LEFT NOTE', 24, false); @@ -429,7 +429,7 @@ class Character extends FlxSprite antialiasing = false; case 'senpai-angry': - frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/senpai.png', 'assets/images/weeb/senpai.xml'); + frames = Paths.getSparrowAtlas('weeb/senpai'); animation.addByPrefix('idle', 'Angry Senpai Idle', 24, false); animation.addByPrefix('singUP', 'Angry Senpai UP NOTE', 24, false); animation.addByPrefix('singLEFT', 'Angry Senpai LEFT NOTE', 24, false); @@ -449,7 +449,7 @@ class Character extends FlxSprite antialiasing = false; case 'spirit': - frames = FlxAtlasFrames.fromSpriteSheetPacker('assets/images/weeb/spirit.png', 'assets/images/weeb/spirit.txt'); + frames = Paths.getPackerAtlas('weeb/spirit'); animation.addByPrefix('idle', "idle spirit_", 24, false); animation.addByPrefix('singUP', "up_", 24, false); animation.addByPrefix('singRIGHT', "right_", 24, false); @@ -470,8 +470,7 @@ class Character extends FlxSprite antialiasing = false; case 'parents-christmas': - frames = FlxAtlasFrames.fromSparrow('assets/images/christmas/mom_dad_christmas_assets.png', - 'assets/images/christmas/mom_dad_christmas_assets.xml'); + frames = Paths.getSparrowAtlas('christmas/mom_dad_christmas_assets'); animation.addByPrefix('idle', 'Parent Christmas Idle', 24, false); animation.addByPrefix('singUP', 'Parent Up Note Dad', 24, false); animation.addByPrefix('singDOWN', 'Parent Down Note Dad', 24, false); diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 4ed3dd9..0e7afa2 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -354,7 +354,7 @@ class ChartingState extends MusicBeatState FlxG.sound.playMusic('assets/music/' + daSong + "_Inst" + TitleState.soundExt, 0.6); // WONT WORK FOR TUTORIAL OR TEST SONG!!! REDO LATER - vocals = new FlxSound().loadEmbedded("assets/music/" + daSong + "_Voices" + TitleState.soundExt); + vocals = new FlxSound().loadEmbedded(Paths.music(daSong + "_Voices")); FlxG.sound.list.add(vocals); FlxG.sound.music.pause(); diff --git a/source/DialogueBox.hx b/source/DialogueBox.hx index f9c4439..868c780 100644 --- a/source/DialogueBox.hx +++ b/source/DialogueBox.hx @@ -41,10 +41,10 @@ class DialogueBox extends FlxSpriteGroup switch (PlayState.SONG.song.toLowerCase()) { case 'senpai': - FlxG.sound.playMusic('assets/music/Lunchbox' + TitleState.soundExt, 0); + FlxG.sound.playMusic(Paths.music('Lunchbox'), 0); FlxG.sound.music.fadeIn(1, 0, 0.8); case 'thorns': - FlxG.sound.playMusic('assets/music/LunchboxScary' + TitleState.soundExt, 0); + FlxG.sound.playMusic(Paths.music('LunchboxScary'), 0); FlxG.sound.music.fadeIn(1, 0, 0.8); } @@ -61,7 +61,7 @@ class DialogueBox extends FlxSpriteGroup }, 5); portraitLeft = new FlxSprite(-20, 40); - portraitLeft.frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/senpaiPortrait.png', 'assets/images/weeb/senpaiPortrait.xml'); + portraitLeft.frames = Paths.getSparrowAtlas('weeb/senpaiPortrait'); portraitLeft.animation.addByPrefix('enter', 'Senpai Portrait Enter', 24, false); portraitLeft.setGraphicSize(Std.int(portraitLeft.width * PlayState.daPixelZoom * 0.9)); portraitLeft.updateHitbox(); @@ -70,7 +70,7 @@ class DialogueBox extends FlxSpriteGroup portraitLeft.visible = false; portraitRight = new FlxSprite(0, 40); - portraitRight.frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/bfPortrait.png', 'assets/images/weeb/bfPortrait.xml'); + portraitRight.frames = Paths.getSparrowAtlas('weeb/bfPortrait'); portraitRight.animation.addByPrefix('enter', 'Boyfriend portrait enter', 24, false); portraitRight.setGraphicSize(Std.int(portraitRight.width * PlayState.daPixelZoom * 0.9)); portraitRight.updateHitbox(); @@ -79,38 +79,43 @@ class DialogueBox extends FlxSpriteGroup portraitRight.visible = false; box = new FlxSprite(-20, 45); - + + var hasDialog = false; switch (PlayState.SONG.song.toLowerCase()) { case 'senpai': - box.frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/pixelUI/dialogueBox-pixel.png', - 'assets/images/weeb/pixelUI/dialogueBox-pixel.xml'); + hasDialog = true; + box.frames = Paths.getSparrowAtlas('weeb/pixelUI/dialogueBox-pixel'); box.animation.addByPrefix('normalOpen', 'Text Box Appear', 24, false); box.animation.addByIndices('normal', 'Text Box Appear', [4], "", 24); case 'roses': - FlxG.sound.play('assets/sounds/ANGRY_TEXT_BOX' + TitleState.soundExt); + hasDialog = true; + FlxG.sound.play(Paths.sound('ANGRY_TEXT_BOX')); - box.frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/pixelUI/dialogueBox-senpaiMad.png', - 'assets/images/weeb/pixelUI/dialogueBox-senpaiMad.xml'); + box.frames = Paths.getSparrowAtlas('weeb/pixelUI/dialogueBox-senpaiMad'); box.animation.addByPrefix('normalOpen', 'SENPAI ANGRY IMPACT SPEECH', 24, false); box.animation.addByIndices('normal', 'SENPAI ANGRY IMPACT SPEECH', [4], "", 24); case 'thorns': - box.frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/pixelUI/dialogueBox-evil.png', 'assets/images/weeb/pixelUI/dialogueBox-evil.xml'); + hasDialog = true; + box.frames = Paths.getSparrowAtlas('weeb/pixelUI/dialogueBox-evil'); box.animation.addByPrefix('normalOpen', 'Spirit Textbox spawn', 24, false); box.animation.addByIndices('normal', 'Spirit Textbox spawn', [11], "", 24); - var face:FlxSprite = new FlxSprite(320, 170).loadGraphic('assets/images/weeb/spiritFaceForward.png'); + var face:FlxSprite = new FlxSprite(320, 170).loadGraphic(Paths.image('weeb/spiritFaceForward')); face.setGraphicSize(Std.int(face.width * 6)); add(face); } - box.animation.play('normalOpen'); - box.setGraphicSize(Std.int(box.width * PlayState.daPixelZoom * 0.9)); - box.updateHitbox(); - add(box); + if (hasDialog) + { + box.animation.play('normalOpen'); + box.setGraphicSize(Std.int(box.width * PlayState.daPixelZoom * 0.9)); + box.updateHitbox(); + add(box); + } - handSelect = new FlxSprite(FlxG.width * 0.9, FlxG.height * 0.9).loadGraphic('assets/images/weeb/pixelUI/hand_textbox.png'); + handSelect = new FlxSprite(FlxG.width * 0.9, FlxG.height * 0.9).loadGraphic(Paths.image('weeb/pixelUI/hand_textbox')); add(handSelect); box.screenCenter(X); @@ -129,7 +134,7 @@ class DialogueBox extends FlxSpriteGroup swagDialogue = new FlxTypeText(240, 500, Std.int(FlxG.width * 0.6), "", 32); swagDialogue.font = 'Pixel Arial 11 Bold'; swagDialogue.color = 0xFF3F2021; - swagDialogue.sounds = [FlxG.sound.load('assets/sounds/pixelText' + TitleState.soundExt, 0.6)]; + swagDialogue.sounds = [FlxG.sound.load(Paths.sound('pixelText'), 0.6)]; add(swagDialogue); dialogue = new Alphabet(0, 80, "", false, true); @@ -175,7 +180,7 @@ class DialogueBox extends FlxSpriteGroup { remove(dialogue); - FlxG.sound.play('assets/sounds/clickText' + TitleState.soundExt, 0.8); + FlxG.sound.play(Paths.sound('clickText'), 0.8); if (dialogueList[1] == null) { diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index 32373c3..a51c0c6 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -36,7 +36,7 @@ class FreeplayState extends MusicBeatState if (FlxG.sound.music != null) { if (!FlxG.sound.music.playing) - FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt); + FlxG.sound.playMusic(Paths.music('freakyMenu')); } */ @@ -85,7 +85,7 @@ class FreeplayState extends MusicBeatState // LOAD CHARACTERS - var bg:FlxSprite = new FlxSprite().loadGraphic('assets/images/menuBGBlue.png'); + var bg:FlxSprite = new FlxSprite().loadGraphic(Paths.image('menuBGBlue')); add(bg); grpSongs = new FlxTypedGroup(); @@ -120,7 +120,7 @@ class FreeplayState extends MusicBeatState changeSelection(); changeDiff(); - // FlxG.sound.playMusic('assets/music/title' + TitleState.soundExt, 0); + // FlxG.sound.playMusic(Paths.music('title'), 0); // FlxG.sound.music.fadeIn(2, 0, 0.8); selector = new FlxText(); @@ -235,7 +235,7 @@ class FreeplayState extends MusicBeatState #end // NGio.logEvent('Fresh'); - FlxG.sound.play('assets/sounds/scrollMenu' + TitleState.soundExt, 0.4); + FlxG.sound.play(Paths.sound('scrollMenu'), 0.4); curSelected += change; diff --git a/source/GameOverSubstate.hx b/source/GameOverSubstate.hx index 58fecb5..b403296 100644 --- a/source/GameOverSubstate.hx +++ b/source/GameOverSubstate.hx @@ -40,7 +40,7 @@ class GameOverSubstate extends MusicBeatSubstate camFollow = new FlxObject(bf.getGraphicMidpoint().x, bf.getGraphicMidpoint().y, 1, 1); add(camFollow); - FlxG.sound.play('assets/sounds/fnf_loss_sfx' + stageSuffix + TitleState.soundExt); + FlxG.sound.play(Paths.sound('fnf_loss_sfx' + stageSuffix)); Conductor.changeBPM(100); // FlxG.camera.followLerp = 1; @@ -77,7 +77,7 @@ class GameOverSubstate extends MusicBeatSubstate if (bf.animation.curAnim.name == 'firstDeath' && bf.animation.curAnim.finished) { - FlxG.sound.playMusic('assets/music/gameOver' + stageSuffix + TitleState.soundExt); + FlxG.sound.playMusic(Paths.music('gameOver' + stageSuffix)); } if (FlxG.sound.music.playing) @@ -102,7 +102,7 @@ class GameOverSubstate extends MusicBeatSubstate isEnding = true; bf.playAnim('deathConfirm', true); FlxG.sound.music.stop(); - FlxG.sound.play('assets/music/gameOverEnd' + stageSuffix + TitleState.soundExt); + FlxG.sound.play(Paths.music('gameOverEnd' + stageSuffix)); new FlxTimer().start(0.7, function(tmr:FlxTimer) { FlxG.camera.fade(FlxColor.BLACK, 2, false, function() diff --git a/source/HealthIcon.hx b/source/HealthIcon.hx index b9810e9..a7c7157 100644 --- a/source/HealthIcon.hx +++ b/source/HealthIcon.hx @@ -7,7 +7,7 @@ class HealthIcon extends FlxSprite public function new(char:String = 'bf', isPlayer:Bool = false) { super(); - loadGraphic('assets/images/iconGrid.png', true, 150, 150); + loadGraphic(Paths.image('iconGrid'), true, 150, 150); antialiasing = true; animation.add('bf', [0, 1], 0, false, isPlayer); diff --git a/source/LatencyState.hx b/source/LatencyState.hx index 8ff4fab..1136330 100644 --- a/source/LatencyState.hx +++ b/source/LatencyState.hx @@ -14,7 +14,7 @@ class LatencyState extends FlxState override function create() { - FlxG.sound.playMusic('assets/sounds/soundTest' + TitleState.soundExt); + FlxG.sound.playMusic(Paths.sound('soundTest')); noteGrp = new FlxTypedGroup(); add(noteGrp); diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index e1a1db2..dbd4b2a 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -34,12 +34,12 @@ class MainMenuState extends MusicBeatState { if (!FlxG.sound.music.playing) { - FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt); + FlxG.sound.playMusic(Paths.music('freakyMenu')); } persistentUpdate = persistentDraw = true; - var bg:FlxSprite = new FlxSprite(-80).loadGraphic('assets/images/menuBG.png'); + var bg:FlxSprite = new FlxSprite(-80).loadGraphic(Paths.image('menuBG')); bg.scrollFactor.x = 0; bg.scrollFactor.y = 0.18; bg.setGraphicSize(Std.int(bg.width * 1.1)); @@ -51,7 +51,7 @@ class MainMenuState extends MusicBeatState camFollow = new FlxObject(0, 0, 1, 1); add(camFollow); - magenta = new FlxSprite(-80).loadGraphic('assets/images/menuDesat.png'); + magenta = new FlxSprite(-80).loadGraphic(Paths.image('menuDesat')); magenta.scrollFactor.x = 0; magenta.scrollFactor.y = 0.18; magenta.setGraphicSize(Std.int(magenta.width * 1.1)); @@ -66,7 +66,7 @@ class MainMenuState extends MusicBeatState menuItems = new FlxTypedGroup(); add(menuItems); - var tex = FlxAtlasFrames.fromSparrow('assets/images/FNF_main_menu_assets.png', 'assets/images/FNF_main_menu_assets.xml'); + var tex = Paths.getSparrowAtlas('FNF_main_menu_assets'); for (i in 0...optionShit.length) { @@ -109,13 +109,13 @@ class MainMenuState extends MusicBeatState { if (controls.UP_P) { - FlxG.sound.play('assets/sounds/scrollMenu' + TitleState.soundExt); + FlxG.sound.play(Paths.sound('scrollMenu')); changeItem(-1); } if (controls.DOWN_P) { - FlxG.sound.play('assets/sounds/scrollMenu' + TitleState.soundExt); + FlxG.sound.play(Paths.sound('scrollMenu')); changeItem(1); } @@ -137,7 +137,7 @@ class MainMenuState extends MusicBeatState else { selectedSomethin = true; - FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt); + FlxG.sound.play(Paths.sound('confirmMenu')); FlxFlicker.flicker(magenta, 1.1, 0.15, false); diff --git a/source/MenuCharacter.hx b/source/MenuCharacter.hx index c8d5013..ca5f9b4 100644 --- a/source/MenuCharacter.hx +++ b/source/MenuCharacter.hx @@ -13,7 +13,7 @@ class MenuCharacter extends FlxSprite this.character = character; - var tex = FlxAtlasFrames.fromSparrow('assets/images/campaign_menu_UI_characters.png', 'assets/images/campaign_menu_UI_characters.xml'); + var tex = Paths.getSparrowAtlas('campaign_menu_UI_characters'); frames = tex; animation.addByPrefix('bf', "BF idle dance white", 24); diff --git a/source/MenuItem.hx b/source/MenuItem.hx index 431e8ac..fe3c9f2 100644 --- a/source/MenuItem.hx +++ b/source/MenuItem.hx @@ -14,7 +14,7 @@ class MenuItem extends FlxSpriteGroup { super(x, y); - var tex = FlxAtlasFrames.fromSparrow('assets/images/campaign_menu_UI_assets.png', 'assets/images/campaign_menu_UI_assets.xml'); + var tex = Paths.getSparrowAtlas('campaign_menu_UI_assets'); week = new FlxSprite(); week.frames = tex; diff --git a/source/Note.hx b/source/Note.hx index 32e1b5c..781206b 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -52,7 +52,7 @@ class Note extends FlxSprite switch (daStage) { case 'school': - loadGraphic('assets/images/weeb/pixelUI/arrows-pixels.png', true, 17, 17); + loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels'), true, 17, 17); animation.add('greenScroll', [6]); animation.add('redScroll', [7]); @@ -61,7 +61,7 @@ class Note extends FlxSprite if (isSustainNote) { - loadGraphic('assets/images/weeb/pixelUI/arrowEnds.png', true, 7, 6); + loadGraphic(Paths.image('weeb/pixelUI/arrowEnds'), true, 7, 6); animation.add('purpleholdend', [4]); animation.add('greenholdend', [6]); @@ -78,7 +78,7 @@ class Note extends FlxSprite updateHitbox(); case 'schoolEvil': // COPY PASTED CUZ I AM LAZY - loadGraphic('assets/images/weeb/pixelUI/arrows-pixels.png', true, 17, 17); + loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels'), true, 17, 17); animation.add('greenScroll', [6]); animation.add('redScroll', [7]); @@ -87,7 +87,7 @@ class Note extends FlxSprite if (isSustainNote) { - loadGraphic('assets/images/weeb/pixelUI/arrowEnds.png', true, 7, 6); + loadGraphic(Paths.image('weeb/pixelUI/arrowEnds'), true, 7, 6); animation.add('purpleholdend', [4]); animation.add('greenholdend', [6]); @@ -104,7 +104,7 @@ class Note extends FlxSprite updateHitbox(); default: - frames = FlxAtlasFrames.fromSparrow('assets/images/NOTE_assets.png', 'assets/images/NOTE_assets.xml'); + frames = Paths.getSparrowAtlas('NOTE_assets'); animation.addByPrefix('greenScroll', 'green0'); animation.addByPrefix('redScroll', 'red0'); diff --git a/source/OptionsMenu.hx b/source/OptionsMenu.hx index 299944a..76a1758 100644 --- a/source/OptionsMenu.hx +++ b/source/OptionsMenu.hx @@ -23,7 +23,7 @@ class OptionsMenu extends MusicBeatState override function create() { - var menuBG:FlxSprite = new FlxSprite().loadGraphic('assets/images/menuDesat.png'); + var menuBG:FlxSprite = new FlxSprite().loadGraphic(Paths.image('menuDesat')); controlsStrings = CoolUtil.coolTextFile('assets/data/controls.txt'); menuBG.color = 0xFFea71fd; menuBG.setGraphicSize(Std.int(menuBG.width * 1.1)); @@ -97,7 +97,7 @@ class OptionsMenu extends MusicBeatState NGio.logEvent('Fresh'); #end - FlxG.sound.play('assets/sounds/scrollMenu' + TitleState.soundExt, 0.4); + FlxG.sound.play(Paths.sound('scrollMenu'), 0.4); curSelected += change; diff --git a/source/Paths.hx b/source/Paths.hx new file mode 100644 index 0000000..90f3f91 --- /dev/null +++ b/source/Paths.hx @@ -0,0 +1,52 @@ +package; + +import openfl.utils.Assets as OpenFlAssets; + +import flixel.FlxG; +import flixel.graphics.frames.FlxAtlasFrames; + +class Paths +{ + inline public static var SOUND_EXT = #if web "mp3" #else "ogg" #end; + + static var currentLevel:String; + + static public function file(file:String) + { + var path = 'assets/$file'; + if (currentLevel != null && OpenFlAssets.exists('$currentLevel:$path')) + return '$currentLevel:$path'; + + return path; + } + + inline static public function sound(key:String) + { + return file('sounds/$key.$SOUND_EXT'); + } + + inline static public function soundRandom(key:String, min:Int, max:Int) + { + return file('sounds/$key${FlxG.random.int(min, max)}.$SOUND_EXT'); + } + + inline static public function music(key:String) + { + return file('music/$key.$SOUND_EXT'); + } + + inline static public function image(key:String) + { + return file('images/$key.png'); + } + + inline static public function getSparrowAtlas(key:String) + { + return FlxAtlasFrames.fromSparrow(image(key), file('images/$key.xml')); + } + + inline static public function getPackerAtlas(key:String) + { + return FlxAtlasFrames.fromSpriteSheetPacker(image(key), file('images/$key.txt')); + } +} \ No newline at end of file diff --git a/source/PauseSubState.hx b/source/PauseSubState.hx index ac747db..e7371ed 100644 --- a/source/PauseSubState.hx +++ b/source/PauseSubState.hx @@ -22,7 +22,7 @@ class PauseSubState extends MusicBeatSubstate { super(); - pauseMusic = new FlxSound().loadEmbedded('assets/music/breakfast' + TitleState.soundExt, true, true); + pauseMusic = new FlxSound().loadEmbedded(Paths.music('breakfast'), true, true); pauseMusic.volume = 0; pauseMusic.play(false, FlxG.random.int(0, Std.int(pauseMusic.length / 2))); diff --git a/source/PlayState.hx b/source/PlayState.hx index cc869e5..5536c92 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -174,7 +174,7 @@ class PlayState extends MusicBeatState curStage = "spooky"; halloweenLevel = true; - var hallowTex = FlxAtlasFrames.fromSparrow('assets/images/halloween_bg.png', 'assets/images/halloween_bg.xml'); + var hallowTex = Paths.getSparrowAtlas('halloween_bg'); halloweenBG = new FlxSprite(-200, -100); halloweenBG.frames = hallowTex; @@ -190,11 +190,11 @@ class PlayState extends MusicBeatState { curStage = 'philly'; - var bg:FlxSprite = new FlxSprite(-100).loadGraphic('assets/images/philly/sky.png'); + var bg:FlxSprite = new FlxSprite(-100).loadGraphic(Paths.image('philly/sky')); bg.scrollFactor.set(0.1, 0.1); add(bg); - var city:FlxSprite = new FlxSprite(-10).loadGraphic('assets/images/philly/city.png'); + var city:FlxSprite = new FlxSprite(-10).loadGraphic(Paths.image('philly/city')); city.scrollFactor.set(0.3, 0.3); city.setGraphicSize(Std.int(city.width * 0.85)); city.updateHitbox(); @@ -205,7 +205,7 @@ class PlayState extends MusicBeatState for (i in 0...5) { - var light:FlxSprite = new FlxSprite(city.x).loadGraphic('assets/images/philly/win' + i + '.png'); + var light:FlxSprite = new FlxSprite(city.x).loadGraphic(Paths.image('philly/win' + i)); light.scrollFactor.set(0.3, 0.3); light.visible = false; light.setGraphicSize(Std.int(light.width * 0.85)); @@ -213,18 +213,18 @@ class PlayState extends MusicBeatState phillyCityLights.add(light); } - var streetBehind:FlxSprite = new FlxSprite(-40, 50).loadGraphic('assets/images/philly/behindTrain.png'); + var streetBehind:FlxSprite = new FlxSprite(-40, 50).loadGraphic(Paths.image('philly/behindTrain')); add(streetBehind); - phillyTrain = new FlxSprite(2000, 360).loadGraphic('assets/images/philly/train.png'); + phillyTrain = new FlxSprite(2000, 360).loadGraphic(Paths.image('philly/train')); add(phillyTrain); - trainSound = new FlxSound().loadEmbedded('assets/sounds/train_passes' + TitleState.soundExt); + trainSound = new FlxSound().loadEmbedded(Paths.sound('train_passes')); FlxG.sound.list.add(trainSound); // var cityLights:FlxSprite = new FlxSprite().loadGraphic(AssetPaths.win0.png); - var street:FlxSprite = new FlxSprite(-40, streetBehind.y).loadGraphic('assets/images/philly/street.png'); + var street:FlxSprite = new FlxSprite(-40, streetBehind.y).loadGraphic(Paths.image('philly/street')); add(street); } else if (SONG.song.toLowerCase() == 'milf' || SONG.song.toLowerCase() == 'satin-panties' || SONG.song.toLowerCase() == 'high') @@ -232,12 +232,12 @@ class PlayState extends MusicBeatState curStage = 'limo'; defaultCamZoom = 0.90; - var skyBG:FlxSprite = new FlxSprite(-120, -50).loadGraphic('assets/images/limo/limoSunset.png'); + var skyBG:FlxSprite = new FlxSprite(-120, -50).loadGraphic(Paths.image('limo/limoSunset')); skyBG.scrollFactor.set(0.1, 0.1); add(skyBG); var bgLimo:FlxSprite = new FlxSprite(-200, 480); - bgLimo.frames = FlxAtlasFrames.fromSparrow('assets/images/limo/bgLimo.png', 'assets/images/limo/bgLimo.xml'); + bgLimo.frames = Paths.getSparrowAtlas('limo/bgLimo'); bgLimo.animation.addByPrefix('drive', "background limo pink", 24); bgLimo.animation.play('drive'); bgLimo.scrollFactor.set(0.4, 0.4); @@ -253,7 +253,7 @@ class PlayState extends MusicBeatState grpLimoDancers.add(dancer); } - var overlayShit:FlxSprite = new FlxSprite(-500, -600).loadGraphic('assets/images/limo/limoOverlay.png'); + var overlayShit:FlxSprite = new FlxSprite(-500, -600).loadGraphic(Paths.image('limo/limoOverlay')); overlayShit.alpha = 0.5; // add(overlayShit); @@ -263,7 +263,7 @@ class PlayState extends MusicBeatState // overlayShit.shader = shaderBullshit; - var limoTex = FlxAtlasFrames.fromSparrow('assets/images/limo/limoDrive.png', 'assets/images/limo/limoDrive.xml'); + var limoTex = Paths.getSparrowAtlas('limo/limoDrive'); limo = new FlxSprite(-120, 550); limo.frames = limoTex; @@ -271,7 +271,7 @@ class PlayState extends MusicBeatState limo.animation.play('drive'); limo.antialiasing = true; - fastCar = new FlxSprite(-300, 160).loadGraphic('assets/images/limo/fastCarLol.png'); + fastCar = new FlxSprite(-300, 160).loadGraphic(Paths.image('limo/fastCarLol')); // add(limo); } else if (SONG.song.toLowerCase() == 'cocoa' || SONG.song.toLowerCase() == 'eggnog') @@ -280,7 +280,7 @@ class PlayState extends MusicBeatState defaultCamZoom = 0.80; - var bg:FlxSprite = new FlxSprite(-1000, -500).loadGraphic('assets/images/christmas/bgWalls.png'); + var bg:FlxSprite = new FlxSprite(-1000, -500).loadGraphic(Paths.image('christmas/bgWalls')); bg.antialiasing = true; bg.scrollFactor.set(0.2, 0.2); bg.active = false; @@ -289,7 +289,7 @@ class PlayState extends MusicBeatState add(bg); upperBoppers = new FlxSprite(-240, -90); - upperBoppers.frames = FlxAtlasFrames.fromSparrow('assets/images/christmas/upperBop.png', 'assets/images/christmas/upperBop.xml'); + upperBoppers.frames = Paths.getSparrowAtlas('christmas/upperBop'); upperBoppers.animation.addByPrefix('bop', "Upper Crowd Bob", 24, false); upperBoppers.antialiasing = true; upperBoppers.scrollFactor.set(0.33, 0.33); @@ -297,7 +297,7 @@ class PlayState extends MusicBeatState upperBoppers.updateHitbox(); add(upperBoppers); - var bgEscalator:FlxSprite = new FlxSprite(-1100, -600).loadGraphic('assets/images/christmas/bgEscalator.png'); + var bgEscalator:FlxSprite = new FlxSprite(-1100, -600).loadGraphic(Paths.image('christmas/bgEscalator')); bgEscalator.antialiasing = true; bgEscalator.scrollFactor.set(0.3, 0.3); bgEscalator.active = false; @@ -305,13 +305,13 @@ class PlayState extends MusicBeatState bgEscalator.updateHitbox(); add(bgEscalator); - var tree:FlxSprite = new FlxSprite(370, -250).loadGraphic('assets/images/christmas/christmasTree.png'); + var tree:FlxSprite = new FlxSprite(370, -250).loadGraphic(Paths.image('christmas/christmasTree')); tree.antialiasing = true; tree.scrollFactor.set(0.40, 0.40); add(tree); bottomBoppers = new FlxSprite(-300, 140); - bottomBoppers.frames = FlxAtlasFrames.fromSparrow('assets/images/christmas/bottomBop.png', 'assets/images/christmas/bottomBop.xml'); + bottomBoppers.frames = Paths.getSparrowAtlas('christmas/bottomBop'); bottomBoppers.animation.addByPrefix('bop', 'Bottom Level Boppers', 24, false); bottomBoppers.antialiasing = true; bottomBoppers.scrollFactor.set(0.9, 0.9); @@ -319,13 +319,13 @@ class PlayState extends MusicBeatState bottomBoppers.updateHitbox(); add(bottomBoppers); - var fgSnow:FlxSprite = new FlxSprite(-600, 700).loadGraphic('assets/images/christmas/fgSnow.png'); + var fgSnow:FlxSprite = new FlxSprite(-600, 700).loadGraphic(Paths.image('christmas/fgSnow')); fgSnow.active = false; fgSnow.antialiasing = true; add(fgSnow); santa = new FlxSprite(-840, 150); - santa.frames = FlxAtlasFrames.fromSparrow('assets/images/christmas/santa.png', 'assets/images/christmas/santa.xml'); + santa.frames = Paths.getSparrowAtlas('christmas/santa'); santa.animation.addByPrefix('idle', 'santa idle in fear', 24, false); santa.antialiasing = true; add(santa); @@ -333,7 +333,7 @@ class PlayState extends MusicBeatState else if (SONG.song.toLowerCase() == 'winter-horrorland') { curStage = 'mallEvil'; - var bg:FlxSprite = new FlxSprite(-400, -500).loadGraphic('assets/images/christmas/evilBG.png'); + var bg:FlxSprite = new FlxSprite(-400, -500).loadGraphic(Paths.image('christmas/evilBG')); bg.antialiasing = true; bg.scrollFactor.set(0.2, 0.2); bg.active = false; @@ -341,12 +341,12 @@ class PlayState extends MusicBeatState bg.updateHitbox(); add(bg); - var evilTree:FlxSprite = new FlxSprite(300, -300).loadGraphic('assets/images/christmas/evilTree.png'); + var evilTree:FlxSprite = new FlxSprite(300, -300).loadGraphic(Paths.image('christmas/evilTree')); evilTree.antialiasing = true; evilTree.scrollFactor.set(0.2, 0.2); add(evilTree); - var evilSnow:FlxSprite = new FlxSprite(-200, 700).loadGraphic("assets/images/christmas/evilSnow.png"); + var evilSnow:FlxSprite = new FlxSprite(-200, 700).loadGraphic(Paths.image("christmas/evilSnow")); evilSnow.antialiasing = true; add(evilSnow); } @@ -356,26 +356,26 @@ class PlayState extends MusicBeatState // defaultCamZoom = 0.9; - var bgSky = new FlxSprite().loadGraphic('assets/images/weeb/weebSky.png'); + var bgSky = new FlxSprite().loadGraphic(Paths.image('weeb/weebSky')); bgSky.scrollFactor.set(0.1, 0.1); add(bgSky); var repositionShit = -200; - var bgSchool:FlxSprite = new FlxSprite(repositionShit, 0).loadGraphic('assets/images/weeb/weebSchool.png'); + var bgSchool:FlxSprite = new FlxSprite(repositionShit, 0).loadGraphic(Paths.image('weeb/weebSchool')); bgSchool.scrollFactor.set(0.6, 0.90); add(bgSchool); - var bgStreet:FlxSprite = new FlxSprite(repositionShit).loadGraphic('assets/images/weeb/weebStreet.png'); + var bgStreet:FlxSprite = new FlxSprite(repositionShit).loadGraphic(Paths.image('weeb/weebStreet')); bgStreet.scrollFactor.set(0.95, 0.95); add(bgStreet); - var fgTrees:FlxSprite = new FlxSprite(repositionShit + 170, 130).loadGraphic('assets/images/weeb/weebTreesBack.png'); + var fgTrees:FlxSprite = new FlxSprite(repositionShit + 170, 130).loadGraphic(Paths.image('weeb/weebTreesBack')); fgTrees.scrollFactor.set(0.9, 0.9); add(fgTrees); var bgTrees:FlxSprite = new FlxSprite(repositionShit - 380, -800); - var treetex = FlxAtlasFrames.fromSpriteSheetPacker('assets/images/weeb/weebTrees.png', 'assets/images/weeb/weebTrees.txt'); + var treetex = Paths.getPackerAtlas('weeb/weebTrees'); bgTrees.frames = treetex; bgTrees.animation.add('treeLoop', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], 12); bgTrees.animation.play('treeLoop'); @@ -383,7 +383,7 @@ class PlayState extends MusicBeatState add(bgTrees); var treeLeaves:FlxSprite = new FlxSprite(repositionShit, -40); - treeLeaves.frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/petals.png', 'assets/images/weeb/petals.xml'); + treeLeaves.frames = Paths.getSparrowAtlas('weeb/petals'); treeLeaves.animation.addByPrefix('leaves', 'PETALS ALL', 24, true); treeLeaves.animation.play('leaves'); treeLeaves.scrollFactor.set(0.85, 0.85); @@ -428,7 +428,7 @@ class PlayState extends MusicBeatState var posY = 200; var bg:FlxSprite = new FlxSprite(posX, posY); - bg.frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/animatedEvilSchool.png', 'assets/images/weeb/animatedEvilSchool.xml'); + bg.frames = Paths.getSparrowAtlas('weeb/animatedEvilSchool'); bg.animation.addByPrefix('idle', 'background 2', 24); bg.animation.play('idle'); bg.scrollFactor.set(0.8, 0.9); @@ -436,13 +436,13 @@ class PlayState extends MusicBeatState add(bg); /* - var bg:FlxSprite = new FlxSprite(posX, posY).loadGraphic('assets/images/weeb/evilSchoolBG.png'); + var bg:FlxSprite = new FlxSprite(posX, posY).loadGraphic(Paths.image('weeb/evilSchoolBG')); bg.scale.set(6, 6); // bg.setGraphicSize(Std.int(bg.width * 6)); // bg.updateHitbox(); add(bg); - var fg:FlxSprite = new FlxSprite(posX, posY).loadGraphic('assets/images/weeb/evilSchoolFG.png'); + var fg:FlxSprite = new FlxSprite(posX, posY).loadGraphic(Paths.image('weeb/evilSchoolFG')); fg.scale.set(6, 6); // fg.setGraphicSize(Std.int(fg.width * 6)); // fg.updateHitbox(); @@ -483,7 +483,7 @@ class PlayState extends MusicBeatState { defaultCamZoom = 0.9; curStage = 'stage'; - var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic('assets/images/stageback.png'); + var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic(Paths.image('stageback')); // bg.setGraphicSize(Std.int(bg.width * 2.5)); // bg.updateHitbox(); bg.antialiasing = true; @@ -491,7 +491,7 @@ class PlayState extends MusicBeatState bg.active = false; add(bg); - var stageFront:FlxSprite = new FlxSprite(-650, 600).loadGraphic('assets/images/stagefront.png'); + var stageFront:FlxSprite = new FlxSprite(-650, 600).loadGraphic(Paths.image('stagefront')); stageFront.setGraphicSize(Std.int(stageFront.width * 1.1)); stageFront.updateHitbox(); stageFront.antialiasing = true; @@ -499,7 +499,7 @@ class PlayState extends MusicBeatState stageFront.active = false; add(stageFront); - var stageCurtains:FlxSprite = new FlxSprite(-500, -300).loadGraphic('assets/images/stagecurtains.png'); + var stageCurtains:FlxSprite = new FlxSprite(-500, -300).loadGraphic(Paths.image('stagecurtains')); stageCurtains.setGraphicSize(Std.int(stageCurtains.width * 0.9)); stageCurtains.updateHitbox(); stageCurtains.antialiasing = true; @@ -662,7 +662,7 @@ class PlayState extends MusicBeatState FlxG.fixedTimestep = false; - healthBarBG = new FlxSprite(0, FlxG.height * 0.9).loadGraphic('assets/images/healthBar.png'); + healthBarBG = new FlxSprite(0, FlxG.height * 0.9).loadGraphic(Paths.image('healthBar')); healthBarBG.screenCenter(X); healthBarBG.scrollFactor.set(); add(healthBarBG); @@ -716,7 +716,7 @@ class PlayState extends MusicBeatState new FlxTimer().start(0.1, function(tmr:FlxTimer) { remove(blackScreen); - FlxG.sound.play('assets/sounds/Lights_Turn_On' + TitleState.soundExt); + FlxG.sound.play(Paths.sound('Lights_Turn_On')); camFollow.y = -2050; camFollow.x += 200; FlxG.camera.focusOn(camFollow.getPosition()); @@ -738,7 +738,7 @@ class PlayState extends MusicBeatState case 'senpai': schoolIntro(doof); case 'roses': - FlxG.sound.play('assets/sounds/ANGRY' + TitleState.soundExt); + FlxG.sound.play(Paths.sound('ANGRY')); schoolIntro(doof); case 'thorns': schoolIntro(doof); @@ -768,7 +768,7 @@ class PlayState extends MusicBeatState red.scrollFactor.set(); var senpaiEvil:FlxSprite = new FlxSprite(); - senpaiEvil.frames = FlxAtlasFrames.fromSparrow('assets/images/weeb/senpaiCrazy.png', 'assets/images/weeb/senpaiCrazy.xml'); + senpaiEvil.frames = Paths.getSparrowAtlas('weeb/senpaiCrazy'); senpaiEvil.animation.addByPrefix('idle', 'Senpai Pre Explosion', 24, false); senpaiEvil.setGraphicSize(Std.int(senpaiEvil.width * 6)); senpaiEvil.updateHitbox(); @@ -812,7 +812,7 @@ class PlayState extends MusicBeatState else { senpaiEvil.animation.play('idle'); - FlxG.sound.play('assets/sounds/Senpai_Dies' + TitleState.soundExt, 1, false, null, true, function() + FlxG.sound.play(Paths.sound('Senpai_Dies'), 1, false, null, true, function() { remove(senpaiEvil); remove(red); @@ -893,7 +893,7 @@ class PlayState extends MusicBeatState { case 0: - FlxG.sound.play('assets/sounds/intro3' + altSuffix + TitleState.soundExt, 0.6); + FlxG.sound.play(Paths.sound('intro3'), 0.6); case 1: var ready:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[0]); ready.scrollFactor.set(); @@ -911,7 +911,7 @@ class PlayState extends MusicBeatState ready.destroy(); } }); - FlxG.sound.play('assets/sounds/intro2' + altSuffix + TitleState.soundExt, 0.6); + FlxG.sound.play(Paths.sound('intro2'), 0.6); case 2: var set:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[1]); set.scrollFactor.set(); @@ -928,7 +928,7 @@ class PlayState extends MusicBeatState set.destroy(); } }); - FlxG.sound.play('assets/sounds/intro1' + altSuffix + TitleState.soundExt, 0.6); + FlxG.sound.play(Paths.sound('intro1'), 0.6); case 3: var go:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[2]); go.scrollFactor.set(); @@ -947,7 +947,7 @@ class PlayState extends MusicBeatState go.destroy(); } }); - FlxG.sound.play('assets/sounds/introGo' + altSuffix + TitleState.soundExt, 0.6); + FlxG.sound.play(Paths.sound('introGo'), 0.6); case 4: } @@ -968,7 +968,7 @@ class PlayState extends MusicBeatState lastReportedPlayheadPosition = 0; if (!paused) - FlxG.sound.playMusic("assets/music/" + SONG.song + "_Inst" + TitleState.soundExt, 1, false); + FlxG.sound.playMusic(Paths.music(SONG.song + "_Inst"), 1, false); FlxG.sound.music.onComplete = endSong; vocals.play(); } @@ -985,7 +985,7 @@ class PlayState extends MusicBeatState curSong = songData.song; if (SONG.needsVoices) - vocals = new FlxSound().loadEmbedded("assets/music/" + curSong + "_Voices" + TitleState.soundExt); + vocals = new FlxSound().loadEmbedded(Paths.music(curSong + "_Voices")); else vocals = new FlxSound(); @@ -1085,7 +1085,7 @@ class PlayState extends MusicBeatState switch (curStage) { case 'school': - babyArrow.loadGraphic('assets/images/weeb/pixelUI/arrows-pixels.png', true, 17, 17); + babyArrow.loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels'), true, 17, 17); babyArrow.animation.add('green', [6]); babyArrow.animation.add('red', [7]); babyArrow.animation.add('blue', [5]); @@ -1122,7 +1122,7 @@ class PlayState extends MusicBeatState case 'schoolEvil': // ALL THIS IS COPY PASTED CUZ IM LAZY - babyArrow.loadGraphic('assets/images/weeb/pixelUI/arrows-pixels.png', true, 17, 17); + babyArrow.loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels'), true, 17, 17); babyArrow.animation.add('green', [6]); babyArrow.animation.add('red', [7]); babyArrow.animation.add('blue', [5]); @@ -1157,7 +1157,7 @@ class PlayState extends MusicBeatState } default: - babyArrow.frames = FlxAtlasFrames.fromSparrow('assets/images/NOTE_assets.png', 'assets/images/NOTE_assets.xml'); + babyArrow.frames = Paths.getSparrowAtlas('NOTE_assets'); babyArrow.animation.addByPrefix('green', 'arrowUP'); babyArrow.animation.addByPrefix('blue', 'arrowDOWN'); babyArrow.animation.addByPrefix('purple', 'arrowLEFT'); @@ -1624,7 +1624,7 @@ class PlayState extends MusicBeatState if (storyPlaylist.length <= 0) { - FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt); + FlxG.sound.playMusic(Paths.music('freakyMenu')); FlxG.switchState(new StoryMenuState()); @@ -1661,7 +1661,7 @@ class PlayState extends MusicBeatState add(blackShit); camHUD.visible = false; - FlxG.sound.play('assets/sounds/Lights_Shut_off' + TitleState.soundExt); + FlxG.sound.play(Paths.sound('Lights_Shut_off')); } if (SONG.song.toLowerCase() == 'senpai') @@ -1750,7 +1750,7 @@ class PlayState extends MusicBeatState rating.velocity.y -= FlxG.random.int(140, 175); rating.velocity.x -= FlxG.random.int(0, 10); - var comboSpr:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + pixelShitPart1 + 'combo' + pixelShitPart2 + '.png'); + var comboSpr:FlxSprite = new FlxSprite().loadGraphic(Paths.image(pixelShitPart1 + 'combo' + pixelShitPart2)); comboSpr.screenCenter(); comboSpr.x = coolText.x; comboSpr.acceleration.y = 600; @@ -1784,7 +1784,7 @@ class PlayState extends MusicBeatState var daLoop:Int = 0; for (i in seperatedScore) { - var numScore:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + pixelShitPart1 + 'num' + Std.int(i) + pixelShitPart2 + '.png'); + var numScore:FlxSprite = new FlxSprite().loadGraphic(Paths.image(pixelShitPart1 + 'num' + Std.int(i) + pixelShitPart2)); numScore.screenCenter(); numScore.x = coolText.x + (43 * daLoop) - 90; numScore.y += 80; @@ -2048,8 +2048,8 @@ class PlayState extends MusicBeatState songScore -= 10; - FlxG.sound.play('assets/sounds/missnote' + FlxG.random.int(1, 3) + TitleState.soundExt, FlxG.random.float(0.1, 0.2)); - // FlxG.sound.play('assets/sounds/missnote1' + TitleState.soundExt, 1, false); + FlxG.sound.play(Paths.soundRandom('missnote', 1, 3), FlxG.random.float(0.1, 0.2)); + // FlxG.sound.play(Paths.sound('missnote1'), 1, false); // FlxG.log.add('played imss note'); boyfriend.stunned = true; @@ -2159,7 +2159,7 @@ class PlayState extends MusicBeatState function fastCarDrive() { - FlxG.sound.play('assets/sounds/carPass' + FlxG.random.int(0, 1) + TitleState.soundExt, 0.7); + FlxG.sound.play(Paths.soundRandom('carPass', 0, 1), 0.7); fastCar.velocity.x = (FlxG.random.int(170, 220) / FlxG.elapsed) * 3; fastCarCanDrive = false; @@ -2225,7 +2225,7 @@ class PlayState extends MusicBeatState function lightningStrikeShit():Void { - FlxG.sound.play('assets/sounds/thunder_' + FlxG.random.int(1, 2) + TitleState.soundExt); + FlxG.sound.play(Paths.soundRandom('thunder_', 1, 2)); halloweenBG.animation.play('lightning'); lightningStrikeBeat = curBeat; diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index d5787c5..73f2d2c 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -72,7 +72,7 @@ class StoryMenuState extends MusicBeatState if (FlxG.sound.music != null) { if (!FlxG.sound.music.playing) - FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt); + FlxG.sound.playMusic(Paths.music('freakyMenu')); } persistentUpdate = persistentDraw = true; @@ -90,7 +90,7 @@ class StoryMenuState extends MusicBeatState rankText.size = scoreText.size; rankText.screenCenter(X); - var ui_tex = FlxAtlasFrames.fromSparrow('assets/images/campaign_menu_UI_assets.png', 'assets/images/campaign_menu_UI_assets.xml'); + var ui_tex = Paths.getSparrowAtlas('campaign_menu_UI_assets'); var yellowBG:FlxSprite = new FlxSprite(0, 56).makeGraphic(FlxG.width, 400, 0xFFF9CF51); grpWeekText = new FlxTypedGroup(); @@ -267,7 +267,7 @@ class StoryMenuState extends MusicBeatState if (controls.BACK && !movedBack && !selectedWeek) { - FlxG.sound.play('assets/sounds/cancelMenu' + TitleState.soundExt); + FlxG.sound.play(Paths.sound('cancelMenu')); movedBack = true; FlxG.switchState(new MainMenuState()); } @@ -285,7 +285,7 @@ class StoryMenuState extends MusicBeatState { if (stopspamming == false) { - FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt); + FlxG.sound.play(Paths.sound('confirmMenu')); grpWeekText.members[curWeek].week.animation.resume(); grpWeekCharacters.members[1].animation.play('bfConfirm'); @@ -381,7 +381,7 @@ class StoryMenuState extends MusicBeatState bullShit++; } - FlxG.sound.play('assets/sounds/scrollMenu' + TitleState.soundExt); + FlxG.sound.play(Paths.sound('scrollMenu')); updateText(); } diff --git a/source/TitleState.hx b/source/TitleState.hx index 53452e4..cfdaea5 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -118,10 +118,10 @@ class TitleState extends MusicBeatState // https://github.com/HaxeFlixel/flixel-addons/pull/348 // var music:FlxSound = new FlxSound(); - // music.loadStream('assets/music/freakyMenu' + TitleState.soundExt); + // music.loadStream(Paths.music('freakyMenu')); // FlxG.sound.list.add(music); // music.play(); - FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt, 0); + FlxG.sound.playMusic(Paths.music('freakyMenu'), 0); FlxG.sound.music.fadeIn(4, 0, 0.7); } @@ -136,7 +136,7 @@ class TitleState extends MusicBeatState add(bg); logoBl = new FlxSprite(-150, -100); - logoBl.frames = FlxAtlasFrames.fromSparrow('assets/images/logoBumpin.png', 'assets/images/logoBumpin.xml'); + logoBl.frames = Paths.getSparrowAtlas('logoBumpin'); logoBl.antialiasing = true; logoBl.animation.addByPrefix('bump', 'logo bumpin', 24); logoBl.animation.play('bump'); @@ -145,7 +145,7 @@ class TitleState extends MusicBeatState // logoBl.color = FlxColor.BLACK; gfDance = new FlxSprite(FlxG.width * 0.4, FlxG.height * 0.07); - gfDance.frames = FlxAtlasFrames.fromSparrow('assets/images/gfDanceTitle.png', 'assets/images/gfDanceTitle.xml'); + gfDance.frames = Paths.getSparrowAtlas('gfDanceTitle'); gfDance.animation.addByIndices('danceLeft', 'gfDance', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false); gfDance.animation.addByIndices('danceRight', 'gfDance', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false); gfDance.antialiasing = true; @@ -153,7 +153,7 @@ class TitleState extends MusicBeatState add(logoBl); titleText = new FlxSprite(100, FlxG.height * 0.8); - titleText.frames = FlxAtlasFrames.fromSparrow('assets/images/titleEnter.png', 'assets/images/titleEnter.xml'); + titleText.frames = Paths.getSparrowAtlas('titleEnter'); titleText.animation.addByPrefix('idle', "Press Enter to Begin", 24); titleText.animation.addByPrefix('press', "ENTER PRESSED", 24); titleText.antialiasing = true; @@ -162,7 +162,7 @@ class TitleState extends MusicBeatState // titleText.screenCenter(X); add(titleText); - var logo:FlxSprite = new FlxSprite().loadGraphic('assets/images/logo.png'); + var logo:FlxSprite = new FlxSprite().loadGraphic(Paths.image('logo')); logo.screenCenter(); logo.antialiasing = true; // add(logo); @@ -184,7 +184,7 @@ class TitleState extends MusicBeatState credTextShit.visible = false; - ngSpr = new FlxSprite(0, FlxG.height * 0.52).loadGraphic('assets/images/newgrounds_logo.png'); + ngSpr = new FlxSprite(0, FlxG.height * 0.52).loadGraphic(Paths.image('newgrounds_logo')); add(ngSpr); ngSpr.visible = false; ngSpr.setGraphicSize(Std.int(ngSpr.width * 0.8)); @@ -259,7 +259,7 @@ class TitleState extends MusicBeatState titleText.animation.play('press'); FlxG.camera.flash(FlxColor.WHITE, 1); - FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt, 0.7); + FlxG.sound.play(Paths.sound('confirmMenu'), 0.7); transitioning = true; // FlxG.sound.music.stop(); @@ -280,7 +280,7 @@ class TitleState extends MusicBeatState FlxG.switchState(new MainMenuState()); } }); - // FlxG.sound.play('assets/music/titleShoot' + TitleState.soundExt, 0.7); + // FlxG.sound.play(Paths.music('titleShoot'), 0.7); } if (pressedEnter && !skippedIntro) diff --git a/source/import.hx b/source/import.hx new file mode 100644 index 0000000..e0a4198 --- /dev/null +++ b/source/import.hx @@ -0,0 +1 @@ +import Paths; \ No newline at end of file From 2a559f17509b70bb97d95714ef33451ba9fe9f36 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Mon, 8 Feb 2021 20:43:17 -0600 Subject: [PATCH 02/11] move files to libraries --- Project.xml | 92 ++++++++++++++++-- .../music/Inst.mp3} | Bin .../music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../music/Inst.mp3} | Bin .../music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../Cocoa_Inst.mp3 => cocoa/music/Inst.mp3} | Bin .../Cocoa_Inst.ogg => cocoa/music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../music/Inst.mp3} | Bin .../music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../Eggnog_Inst.mp3 => eggnog/music/Inst.mp3} | Bin .../Eggnog_Inst.ogg => eggnog/music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../Fresh_Inst.mp3 => fresh/music/Inst.mp3} | Bin .../Fresh_Inst.ogg => fresh/music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../High_Inst.mp3 => high/music/Inst.mp3} | Bin .../High_Inst.ogg => high/music/Inst.ogg} | Bin .../High_Voices.mp3 => high/music/Voices.mp3} | Bin .../High_Voices.ogg => high/music/Voices.ogg} | Bin .../Milf_Inst.mp3 => milf/music/Inst.mp3} | Bin .../Milf_Inst.ogg => milf/music/Inst.ogg} | Bin .../Milf_Voices.mp3 => milf/music/Voices.mp3} | Bin .../Milf_Voices.ogg => milf/music/Voices.ogg} | Bin .../music/Inst.mp3} | Bin .../music/Inst.ogg} | Bin assets/{ => monster}/music/Monster.mp3 | Bin assets/{ => monster}/music/Monster.ogg | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin assets/music/music-goes-here.txt | 0 .../Philly_Inst.mp3 => philly/music/Inst.mp3} | Bin .../Philly_Inst.ogg => philly/music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../Pico_Inst.mp3 => pico/music/Inst.mp3} | Bin .../Pico_Inst.ogg => pico/music/Inst.ogg} | Bin .../Pico_Voices.mp3 => pico/music/Voices.mp3} | Bin .../Pico_Voices.ogg => pico/music/Voices.ogg} | Bin .../data/blammed/blammed-easy.json | 0 .../data/blammed/blammed-hard.json | 0 .../{ => preload}/data/blammed/blammed.json | 0 .../data/bopeebo/bopeebo-easy.json | 0 .../data/bopeebo/bopeebo-hard.json | 0 .../{ => preload}/data/bopeebo/bopeebo.json | 0 assets/{ => preload}/data/characterList.txt | 0 .../{ => preload}/data/cocoa/cocoa-easy.json | 0 .../{ => preload}/data/cocoa/cocoa-hard.json | 0 assets/{ => preload}/data/cocoa/cocoa.json | 0 assets/{ => preload}/data/controls.txt | 0 .../data/dadbattle/dadbattle-easy.json | 0 .../data/dadbattle/dadbattle-hard.json | 0 .../data/dadbattle/dadbattle.json | 0 assets/{ => preload}/data/data-goes-here.txt | 0 .../data/eggnog/eggnog-easy.json | 0 .../data/eggnog/eggnog-hard.json | 0 assets/{ => preload}/data/eggnog/eggnog.json | 0 .../{ => preload}/data/freeplaySonglist.txt | 0 .../{ => preload}/data/fresh/fresh-easy.json | 0 .../{ => preload}/data/fresh/fresh-hard.json | 0 assets/{ => preload}/data/fresh/fresh.json | 0 assets/{ => preload}/data/high/high-easy.json | 0 assets/{ => preload}/data/high/high-hard.json | 0 assets/{ => preload}/data/high/high.json | 0 assets/{ => preload}/data/introText.txt | 0 assets/{ => preload}/data/main-view.xml | 0 assets/{ => preload}/data/milf/milf-easy.json | 0 assets/{ => preload}/data/milf/milf-hard.json | 0 assets/{ => preload}/data/milf/milf.json | 0 .../{ => preload}/data/monster/monster.json | 0 .../data/philly/philly-easy.json | 0 .../data/philly/philly-hard.json | 0 assets/{ => preload}/data/philly/philly.json | 0 assets/{ => preload}/data/pico/pico-easy.json | 0 assets/{ => preload}/data/pico/pico-hard.json | 0 assets/{ => preload}/data/pico/pico.json | 0 assets/{ => preload}/data/ridge/ridge.json | 0 .../{ => preload}/data/roses/roses-easy.json | 0 .../{ => preload}/data/roses/roses-hard.json | 0 assets/{ => preload}/data/roses/roses.json | 0 .../data/roses/rosesDialogue.txt | 0 .../satin-panties/satin-panties-easy.json | 0 .../satin-panties/satin-panties-hard.json | 0 .../data/satin-panties/satin-panties.json | 0 .../data/senpai/senpai-easy.json | 0 .../data/senpai/senpai-hard.json | 0 assets/{ => preload}/data/senpai/senpai.json | 0 .../data/senpai/senpaiDialogue.txt | 0 assets/{ => preload}/data/smash/smash.json | Bin .../{ => preload}/data/south/south-easy.json | 0 .../{ => preload}/data/south/south-hard.json | 0 assets/{ => preload}/data/south/south.json | 0 assets/{ => preload}/data/specialThanks.txt | 0 .../data/spookeez/spookeez-easy.json | 0 .../data/spookeez/spookeez-hard.json | 0 .../{ => preload}/data/spookeez/spookeez.json | 0 .../data/thorns/thorns-easy.json | 0 .../data/thorns/thorns-hard.json | 0 assets/{ => preload}/data/thorns/thorns.json | 0 .../data/thorns/thornsDialogue.txt | 0 .../data/tutorial/tutorial-easy.json | 0 .../data/tutorial/tutorial-hard.json | Bin .../{ => preload}/data/tutorial/tutorial.json | 0 .../winter-horrorland-easy.json | 0 .../winter-horrorland-hard.json | 0 .../winter-horrorland/winter-horrorland.json | 0 assets/{ => preload}/images/BOYFRIEND.png | Bin assets/{ => preload}/images/BOYFRIEND.xml | 0 assets/{ => preload}/images/DADDY_DEAREST.png | Bin assets/{ => preload}/images/DADDY_DEAREST.xml | 0 .../images/FNF_main_menu_assets.png | Bin .../images/FNF_main_menu_assets.xml | 0 assets/{ => preload}/images/GF_assets.png | Bin assets/{ => preload}/images/GF_assets.xml | 0 assets/{ => preload}/images/Mom_Assets.png | Bin assets/{ => preload}/images/Mom_Assets.xml | 0 .../{ => preload}/images/Monster_Assets.png | Bin .../{ => preload}/images/Monster_Assets.xml | 0 assets/{ => preload}/images/NOTE_assets.png | Bin assets/{ => preload}/images/NOTE_assets.xml | 0 .../{ => preload}/images/Pico_FNF_assetss.png | Bin .../{ => preload}/images/Pico_FNF_assetss.xml | 0 assets/{ => preload}/images/alphabet.png | Bin assets/{ => preload}/images/alphabet.xml | 0 assets/{ => preload}/images/backspace.png | Bin assets/{ => preload}/images/backspace.xml | 0 assets/{ => preload}/images/bad.png | Bin assets/{ => preload}/images/bfCar.png | Bin assets/{ => preload}/images/bfCar.xml | 0 .../images/campaign_menu_UI_assets.png | Bin .../images/campaign_menu_UI_assets.xml | 0 .../images/campaign_menu_UI_characters.png | Bin .../images/campaign_menu_UI_characters.xml | 0 .../images/christmas/bfChristmas.png | Bin .../images/christmas/bfChristmas.xml | 0 .../images/christmas/bgEscalator.png | Bin .../images/christmas/bgWalls.png | Bin .../images/christmas/bottomBop.png | Bin .../images/christmas/bottomBop.xml | 0 .../images/christmas/christmasTree.png | Bin .../images/christmas/christmasWall.png | Bin .../{ => preload}/images/christmas/evilBG.png | Bin .../images/christmas/evilSnow.png | Bin .../images/christmas/evilTree.png | Bin .../{ => preload}/images/christmas/fgSnow.png | Bin .../images/christmas/gfChristmas.png | Bin .../images/christmas/gfChristmas.xml | 0 .../christmas/mom_dad_christmas_assets.png | Bin .../christmas/mom_dad_christmas_assets.xml | 0 .../images/christmas/monsterChristmas.png | Bin .../images/christmas/monsterChristmas.xml | 0 .../{ => preload}/images/christmas/santa.png | Bin .../{ => preload}/images/christmas/santa.xml | 0 .../images/christmas/upperBop.png | Bin .../images/christmas/upperBop.xml | 0 assets/{ => preload}/images/combo.png | Bin assets/{ => preload}/images/gfCar.png | Bin assets/{ => preload}/images/gfCar.xml | 0 assets/{ => preload}/images/gfDanceTitle.png | Bin assets/{ => preload}/images/gfDanceTitle.xml | 0 assets/{ => preload}/images/go.png | Bin assets/{ => preload}/images/good.png | Bin assets/{ => preload}/images/grafix.png | Bin assets/{ => preload}/images/halloween_bg.png | Bin assets/{ => preload}/images/halloween_bg.xml | 0 assets/{ => preload}/images/healthBar.png | Bin assets/{ => preload}/images/iconGrid.png | Bin .../{ => preload}/images/images-go-here.txt | 0 assets/{ => preload}/images/limo/bgLimo.png | Bin assets/{ => preload}/images/limo/bgLimo.xml | 0 assets/{ => preload}/images/limo/dumb.png | Bin .../{ => preload}/images/limo/fastCarLol.png | Bin .../{ => preload}/images/limo/limoDancer.png | Bin .../{ => preload}/images/limo/limoDancer.xml | 0 .../{ => preload}/images/limo/limoDrive.png | Bin .../{ => preload}/images/limo/limoDrive.xml | 0 .../{ => preload}/images/limo/limoOverlay.png | Bin .../{ => preload}/images/limo/limoSunset.png | Bin assets/{ => preload}/images/logo.png | Bin assets/{ => preload}/images/logoBumpin.png | Bin assets/{ => preload}/images/logoBumpin.xml | 0 assets/{ => preload}/images/lol.png | Bin assets/{ => preload}/images/lose.png | Bin assets/{ => preload}/images/lose.xml | 0 assets/{ => preload}/images/menuBG.png | Bin assets/{ => preload}/images/menuBGBlue.png | Bin assets/{ => preload}/images/menuBGMagenta.png | Bin assets/{ => preload}/images/menuDesat.png | Bin assets/{ => preload}/images/momCar.png | Bin assets/{ => preload}/images/momCar.xml | 0 .../{ => preload}/images/newgrounds_logo.png | Bin assets/{ => preload}/images/num0.png | Bin assets/{ => preload}/images/num1.png | Bin assets/{ => preload}/images/num2.png | Bin assets/{ => preload}/images/num3.png | Bin assets/{ => preload}/images/num4.png | Bin assets/{ => preload}/images/num5.png | Bin assets/{ => preload}/images/num6.png | Bin assets/{ => preload}/images/num7.png | Bin assets/{ => preload}/images/num8.png | Bin assets/{ => preload}/images/num9.png | Bin .../images/philly/behindTrain.png | Bin assets/{ => preload}/images/philly/city.png | Bin assets/{ => preload}/images/philly/sky.png | Bin assets/{ => preload}/images/philly/street.png | Bin assets/{ => preload}/images/philly/train.png | Bin assets/{ => preload}/images/philly/win0.png | Bin assets/{ => preload}/images/philly/win1.png | Bin assets/{ => preload}/images/philly/win2.png | Bin assets/{ => preload}/images/philly/win3.png | Bin assets/{ => preload}/images/philly/win4.png | Bin assets/{ => preload}/images/ready.png | Bin assets/{ => preload}/images/restart.png | Bin .../images/screencapTierImage.png | Bin assets/{ => preload}/images/set.png | Bin assets/{ => preload}/images/shit.png | Bin assets/{ => preload}/images/sick.png | Bin .../images/speech_bubble_talking.png | Bin .../images/speech_bubble_talking.xml | 0 .../images/spooky_kids_assets.png | Bin .../images/spooky_kids_assets.xml | 0 assets/{ => preload}/images/stage_light.png | Bin assets/{ => preload}/images/stageback.png | Bin assets/{ => preload}/images/stagecurtains.png | Bin assets/{ => preload}/images/stagefront.png | Bin assets/{ => preload}/images/titleEnter.png | Bin assets/{ => preload}/images/titleEnter.xml | 0 .../images/weeb/animatedEvilSchool.png | Bin .../images/weeb/animatedEvilSchool.xml | 0 assets/{ => preload}/images/weeb/bfPixel.png | Bin assets/{ => preload}/images/weeb/bfPixel.xml | 0 .../images/weeb/bfPixelsDEAD.png | Bin .../images/weeb/bfPixelsDEAD.xml | 0 .../{ => preload}/images/weeb/bfPortrait.png | Bin .../{ => preload}/images/weeb/bfPortrait.xml | 0 assets/{ => preload}/images/weeb/bgFreaks.png | Bin assets/{ => preload}/images/weeb/bgFreaks.xml | 0 .../images/weeb/evilSchoolBG.png | Bin .../images/weeb/evilSchoolFG.png | Bin assets/{ => preload}/images/weeb/gfPixel.png | Bin assets/{ => preload}/images/weeb/gfPixel.xml | 0 assets/{ => preload}/images/weeb/petals.png | Bin assets/{ => preload}/images/weeb/petals.xml | 0 .../images/weeb/pixelUI/arrowEnds.png | Bin .../images/weeb/pixelUI/arrows-pixels.png | Bin .../images/weeb/pixelUI/bad-pixel.png | Bin .../images/weeb/pixelUI/combo-pixel.png | Bin .../images/weeb/pixelUI/date-pixel.png | Bin .../images/weeb/pixelUI/dialogueBox-evil.png | Bin .../images/weeb/pixelUI/dialogueBox-evil.xml | 0 .../images/weeb/pixelUI/dialogueBox-pixel.png | Bin .../images/weeb/pixelUI/dialogueBox-pixel.xml | 0 .../weeb/pixelUI/dialogueBox-senpaiMad.png | Bin .../weeb/pixelUI/dialogueBox-senpaiMad.xml | 0 .../images/weeb/pixelUI/good-pixel.png | Bin .../images/weeb/pixelUI/hand_textbox.png | Bin .../images/weeb/pixelUI/num0-pixel.png | Bin .../images/weeb/pixelUI/num1-pixel.png | Bin .../images/weeb/pixelUI/num2-pixel.png | Bin .../images/weeb/pixelUI/num3-pixel.png | Bin .../images/weeb/pixelUI/num4-pixel.png | Bin .../images/weeb/pixelUI/num5-pixel.png | Bin .../images/weeb/pixelUI/num6-pixel.png | Bin .../images/weeb/pixelUI/num7-pixel.png | Bin .../images/weeb/pixelUI/num8-pixel.png | Bin .../images/weeb/pixelUI/num9-pixel.png | Bin .../images/weeb/pixelUI/ready-pixel.png | Bin .../images/weeb/pixelUI/set-pixel.png | Bin .../images/weeb/pixelUI/shit-pixel.png | Bin .../images/weeb/pixelUI/sick-pixel.png | Bin assets/{ => preload}/images/weeb/senpai.png | Bin assets/{ => preload}/images/weeb/senpai.xml | 0 .../{ => preload}/images/weeb/senpaiCrazy.png | Bin .../{ => preload}/images/weeb/senpaiCrazy.xml | 0 .../images/weeb/senpaiPortrait.png | Bin .../images/weeb/senpaiPortrait.xml | 0 assets/{ => preload}/images/weeb/spirit.png | Bin assets/{ => preload}/images/weeb/spirit.txt | 0 .../images/weeb/spiritFaceForward.png | Bin .../{ => preload}/images/weeb/weebSchool.png | Bin assets/{ => preload}/images/weeb/weebSky.png | Bin .../{ => preload}/images/weeb/weebStreet.png | Bin .../{ => preload}/images/weeb/weebTrees.png | Bin .../{ => preload}/images/weeb/weebTrees.txt | 0 .../images/weeb/weebTreesBack.png | Bin assets/{ => preload}/images/zzzzzzzz.png | Bin assets/{ => preload}/music/Lunchbox.mp3 | Bin assets/{ => preload}/music/Lunchbox.ogg | Bin assets/{ => preload}/music/LunchboxScary.mp3 | Bin assets/{ => preload}/music/LunchboxScary.ogg | Bin assets/{ => preload}/music/freakyMenu.mp3 | Bin assets/{ => preload}/music/freakyMenu.ogg | Bin assets/{ => preload}/music/title.mp3 | Bin assets/{ => preload}/music/title.ogg | Bin assets/{ => preload}/music/titleShoot.mp3 | Bin assets/{ => preload}/music/titleShoot.ogg | Bin assets/{ => preload}/sounds/ANGRY.mp3 | Bin assets/{ => preload}/sounds/ANGRY.ogg | Bin .../{ => preload}/sounds/ANGRY_TEXT_BOX.mp3 | Bin .../{ => preload}/sounds/ANGRY_TEXT_BOX.ogg | Bin assets/{ => preload}/sounds/GF_1.mp3 | Bin assets/{ => preload}/sounds/GF_1.ogg | Bin assets/{ => preload}/sounds/GF_2.mp3 | Bin assets/{ => preload}/sounds/GF_2.ogg | Bin assets/{ => preload}/sounds/GF_3.mp3 | Bin assets/{ => preload}/sounds/GF_3.ogg | Bin assets/{ => preload}/sounds/GF_4.mp3 | Bin assets/{ => preload}/sounds/GF_4.ogg | Bin .../{ => preload}/sounds/Lights_Shut_off.mp3 | Bin .../{ => preload}/sounds/Lights_Shut_off.ogg | Bin .../{ => preload}/sounds/Lights_Turn_On.mp3 | Bin .../{ => preload}/sounds/Lights_Turn_On.ogg | Bin assets/{ => preload}/sounds/Senpai_Dies.mp3 | Bin assets/{ => preload}/sounds/Senpai_Dies.ogg | Bin assets/{ => preload}/sounds/badnoise1.mp3 | Bin assets/{ => preload}/sounds/badnoise1.ogg | Bin assets/{ => preload}/sounds/badnoise2.mp3 | Bin assets/{ => preload}/sounds/badnoise2.ogg | Bin assets/{ => preload}/sounds/badnoise3.mp3 | Bin assets/{ => preload}/sounds/badnoise3.ogg | Bin assets/{ => preload}/sounds/cancelMenu.mp3 | Bin assets/{ => preload}/sounds/cancelMenu.ogg | Bin assets/{ => preload}/sounds/carPass0.mp3 | Bin assets/{ => preload}/sounds/carPass0.ogg | Bin assets/{ => preload}/sounds/carPass1.mp3 | Bin assets/{ => preload}/sounds/carPass1.ogg | Bin assets/{ => preload}/sounds/clickText.mp3 | Bin assets/{ => preload}/sounds/clickText.ogg | Bin assets/{ => preload}/sounds/confirmMenu.mp3 | Bin assets/{ => preload}/sounds/confirmMenu.ogg | Bin .../sounds/fnf_loss_sfx-pixel.mp3 | Bin .../sounds/fnf_loss_sfx-pixel.ogg | Bin assets/{ => preload}/sounds/fnf_loss_sfx.mp3 | Bin assets/{ => preload}/sounds/fnf_loss_sfx.ogg | Bin assets/{ => preload}/sounds/freshIntro.mp3 | Bin assets/{ => preload}/sounds/freshIntro.ogg | Bin assets/{ => preload}/sounds/intro1-pixel.mp3 | Bin assets/{ => preload}/sounds/intro1-pixel.ogg | Bin assets/{ => preload}/sounds/intro1.mp3 | Bin assets/{ => preload}/sounds/intro1.ogg | Bin assets/{ => preload}/sounds/intro2-pixel.mp3 | Bin assets/{ => preload}/sounds/intro2-pixel.ogg | Bin assets/{ => preload}/sounds/intro2.mp3 | Bin assets/{ => preload}/sounds/intro2.ogg | Bin assets/{ => preload}/sounds/intro3-pixel.mp3 | Bin assets/{ => preload}/sounds/intro3-pixel.ogg | Bin assets/{ => preload}/sounds/intro3.mp3 | Bin assets/{ => preload}/sounds/intro3.ogg | Bin assets/{ => preload}/sounds/introGo-pixel.mp3 | Bin assets/{ => preload}/sounds/introGo-pixel.ogg | Bin assets/{ => preload}/sounds/introGo.mp3 | Bin assets/{ => preload}/sounds/introGo.ogg | Bin assets/{ => preload}/sounds/missnote1.mp3 | Bin assets/{ => preload}/sounds/missnote1.ogg | Bin assets/{ => preload}/sounds/missnote2.mp3 | Bin assets/{ => preload}/sounds/missnote2.ogg | Bin assets/{ => preload}/sounds/missnote3.mp3 | Bin assets/{ => preload}/sounds/missnote3.ogg | Bin assets/{ => preload}/sounds/pixelText.mp3 | Bin assets/{ => preload}/sounds/pixelText.ogg | Bin assets/{ => preload}/sounds/scrollMenu.mp3 | Bin assets/{ => preload}/sounds/scrollMenu.ogg | Bin assets/{ => preload}/sounds/soundTest.mp3 | Bin assets/{ => preload}/sounds/soundTest.ogg | Bin .../{ => preload}/sounds/sounds-go-here.txt | 0 assets/{ => preload}/sounds/thunder_1.mp3 | Bin assets/{ => preload}/sounds/thunder_1.ogg | Bin assets/{ => preload}/sounds/thunder_2.mp3 | Bin assets/{ => preload}/sounds/thunder_2.ogg | Bin assets/{ => preload}/sounds/train_passes.mp3 | Bin assets/{ => preload}/sounds/train_passes.ogg | Bin .../Roses_Inst.mp3 => roses/music/Inst.mp3} | Bin .../Roses_Inst.ogg => roses/music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../music/Inst.mp3} | Bin .../music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../Senpai_Inst.mp3 => senpai/music/Inst.mp3} | Bin .../Senpai_Inst.ogg => senpai/music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin assets/{ => shared}/music/breakfast.mp3 | Bin assets/{ => shared}/music/breakfast.ogg | Bin assets/{ => shared}/music/gameOver-pixel.mp3 | Bin assets/{ => shared}/music/gameOver-pixel.ogg | Bin assets/{ => shared}/music/gameOver.mp3 | Bin assets/{ => shared}/music/gameOver.ogg | Bin .../{ => shared}/music/gameOverEnd-pixel.mp3 | Bin .../{ => shared}/music/gameOverEnd-pixel.ogg | Bin assets/{ => shared}/music/gameOverEnd.mp3 | Bin assets/{ => shared}/music/gameOverEnd.ogg | Bin .../South_Inst.mp3 => south/music/Inst.mp3} | Bin .../South_Inst.ogg => south/music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../music/Inst.mp3} | Bin .../music/Inst.ogg} | Bin assets/{ => spookeez}/music/Spookeez.mp3 | Bin assets/{ => spookeez}/music/Spookeez.ogg | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../Test_Inst.mp3 => test/music/Inst.mp3} | Bin .../Test_Inst.ogg => test/music/Inst.ogg} | Bin .../Test_Voices.mp3 => test/music/Voices.mp3} | Bin .../Test_Voices.ogg => test/music/Voices.ogg} | Bin .../Thorns_Inst.mp3 => thorns/music/Inst.mp3} | Bin .../Thorns_Inst.ogg => thorns/music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin .../music/Inst.mp3} | Bin .../music/Inst.ogg} | Bin .../music/Inst.mp3} | Bin .../music/Inst.ogg} | Bin .../music/Voices.mp3} | Bin .../music/Voices.ogg} | Bin source/Paths.hx | 41 ++++++-- source/PlayState.hx | 5 +- 428 files changed, 118 insertions(+), 20 deletions(-) rename assets/{music/Blammed_Inst.mp3 => blammed/music/Inst.mp3} (100%) rename assets/{music/Blammed_Inst.ogg => blammed/music/Inst.ogg} (100%) rename assets/{music/Blammed_Voices.mp3 => blammed/music/Voices.mp3} (100%) rename assets/{music/Blammed_Voices.ogg => blammed/music/Voices.ogg} (100%) rename assets/{music/Bopeebo_Inst.mp3 => bopeebo/music/Inst.mp3} (100%) rename assets/{music/Bopeebo_Inst.ogg => bopeebo/music/Inst.ogg} (100%) rename assets/{music/Bopeebo_Voices.mp3 => bopeebo/music/Voices.mp3} (100%) rename assets/{music/Bopeebo_Voices.ogg => bopeebo/music/Voices.ogg} (100%) rename assets/{music/Cocoa_Inst.mp3 => cocoa/music/Inst.mp3} (100%) rename assets/{music/Cocoa_Inst.ogg => cocoa/music/Inst.ogg} (100%) rename assets/{music/Cocoa_Voices.mp3 => cocoa/music/Voices.mp3} (100%) rename assets/{music/Cocoa_Voices.ogg => cocoa/music/Voices.ogg} (100%) rename assets/{music/Dadbattle_Inst.mp3 => dadbattle/music/Inst.mp3} (100%) rename assets/{music/Dadbattle_Inst.ogg => dadbattle/music/Inst.ogg} (100%) rename assets/{music/Dadbattle_Voices.mp3 => dadbattle/music/Voices.mp3} (100%) rename assets/{music/Dadbattle_Voices.ogg => dadbattle/music/Voices.ogg} (100%) rename assets/{music/Eggnog_Inst.mp3 => eggnog/music/Inst.mp3} (100%) rename assets/{music/Eggnog_Inst.ogg => eggnog/music/Inst.ogg} (100%) rename assets/{music/Eggnog_Voices.mp3 => eggnog/music/Voices.mp3} (100%) rename assets/{music/Eggnog_Voices.ogg => eggnog/music/Voices.ogg} (100%) rename assets/{music/Fresh_Inst.mp3 => fresh/music/Inst.mp3} (100%) rename assets/{music/Fresh_Inst.ogg => fresh/music/Inst.ogg} (100%) rename assets/{music/Fresh_Voices.mp3 => fresh/music/Voices.mp3} (100%) rename assets/{music/Fresh_Voices.ogg => fresh/music/Voices.ogg} (100%) rename assets/{music/High_Inst.mp3 => high/music/Inst.mp3} (100%) rename assets/{music/High_Inst.ogg => high/music/Inst.ogg} (100%) rename assets/{music/High_Voices.mp3 => high/music/Voices.mp3} (100%) rename assets/{music/High_Voices.ogg => high/music/Voices.ogg} (100%) rename assets/{music/Milf_Inst.mp3 => milf/music/Inst.mp3} (100%) rename assets/{music/Milf_Inst.ogg => milf/music/Inst.ogg} (100%) rename assets/{music/Milf_Voices.mp3 => milf/music/Voices.mp3} (100%) rename assets/{music/Milf_Voices.ogg => milf/music/Voices.ogg} (100%) rename assets/{music/Monster_Inst.mp3 => monster/music/Inst.mp3} (100%) rename assets/{music/Monster_Inst.ogg => monster/music/Inst.ogg} (100%) rename assets/{ => monster}/music/Monster.mp3 (100%) rename assets/{ => monster}/music/Monster.ogg (100%) rename assets/{music/Monster_Voices.mp3 => monster/music/Voices.mp3} (100%) rename assets/{music/Monster_Voices.ogg => monster/music/Voices.ogg} (100%) delete mode 100644 assets/music/music-goes-here.txt rename assets/{music/Philly_Inst.mp3 => philly/music/Inst.mp3} (100%) rename assets/{music/Philly_Inst.ogg => philly/music/Inst.ogg} (100%) rename assets/{music/Philly_Voices.mp3 => philly/music/Voices.mp3} (100%) rename assets/{music/Philly_Voices.ogg => philly/music/Voices.ogg} (100%) rename assets/{music/Pico_Inst.mp3 => pico/music/Inst.mp3} (100%) rename assets/{music/Pico_Inst.ogg => pico/music/Inst.ogg} (100%) rename assets/{music/Pico_Voices.mp3 => pico/music/Voices.mp3} (100%) rename assets/{music/Pico_Voices.ogg => pico/music/Voices.ogg} (100%) rename assets/{ => preload}/data/blammed/blammed-easy.json (100%) rename assets/{ => preload}/data/blammed/blammed-hard.json (100%) rename assets/{ => preload}/data/blammed/blammed.json (100%) rename assets/{ => preload}/data/bopeebo/bopeebo-easy.json (100%) rename assets/{ => preload}/data/bopeebo/bopeebo-hard.json (100%) rename assets/{ => preload}/data/bopeebo/bopeebo.json (100%) rename assets/{ => preload}/data/characterList.txt (100%) rename assets/{ => preload}/data/cocoa/cocoa-easy.json (100%) rename assets/{ => preload}/data/cocoa/cocoa-hard.json (100%) rename assets/{ => preload}/data/cocoa/cocoa.json (100%) rename assets/{ => preload}/data/controls.txt (100%) rename assets/{ => preload}/data/dadbattle/dadbattle-easy.json (100%) rename assets/{ => preload}/data/dadbattle/dadbattle-hard.json (100%) rename assets/{ => preload}/data/dadbattle/dadbattle.json (100%) rename assets/{ => preload}/data/data-goes-here.txt (100%) rename assets/{ => preload}/data/eggnog/eggnog-easy.json (100%) rename assets/{ => preload}/data/eggnog/eggnog-hard.json (100%) rename assets/{ => preload}/data/eggnog/eggnog.json (100%) rename assets/{ => preload}/data/freeplaySonglist.txt (100%) rename assets/{ => preload}/data/fresh/fresh-easy.json (100%) rename assets/{ => preload}/data/fresh/fresh-hard.json (100%) rename assets/{ => preload}/data/fresh/fresh.json (100%) rename assets/{ => preload}/data/high/high-easy.json (100%) rename assets/{ => preload}/data/high/high-hard.json (100%) rename assets/{ => preload}/data/high/high.json (100%) rename assets/{ => preload}/data/introText.txt (100%) rename assets/{ => preload}/data/main-view.xml (100%) rename assets/{ => preload}/data/milf/milf-easy.json (100%) rename assets/{ => preload}/data/milf/milf-hard.json (100%) rename assets/{ => preload}/data/milf/milf.json (100%) rename assets/{ => preload}/data/monster/monster.json (100%) rename assets/{ => preload}/data/philly/philly-easy.json (100%) rename assets/{ => preload}/data/philly/philly-hard.json (100%) rename assets/{ => preload}/data/philly/philly.json (100%) rename assets/{ => preload}/data/pico/pico-easy.json (100%) rename assets/{ => preload}/data/pico/pico-hard.json (100%) rename assets/{ => preload}/data/pico/pico.json (100%) rename assets/{ => preload}/data/ridge/ridge.json (100%) rename assets/{ => preload}/data/roses/roses-easy.json (100%) rename assets/{ => preload}/data/roses/roses-hard.json (100%) rename assets/{ => preload}/data/roses/roses.json (100%) rename assets/{ => preload}/data/roses/rosesDialogue.txt (100%) rename assets/{ => preload}/data/satin-panties/satin-panties-easy.json (100%) rename assets/{ => preload}/data/satin-panties/satin-panties-hard.json (100%) rename assets/{ => preload}/data/satin-panties/satin-panties.json (100%) rename assets/{ => preload}/data/senpai/senpai-easy.json (100%) rename assets/{ => preload}/data/senpai/senpai-hard.json (100%) rename assets/{ => preload}/data/senpai/senpai.json (100%) rename assets/{ => preload}/data/senpai/senpaiDialogue.txt (100%) rename assets/{ => preload}/data/smash/smash.json (100%) rename assets/{ => preload}/data/south/south-easy.json (100%) rename assets/{ => preload}/data/south/south-hard.json (100%) rename assets/{ => preload}/data/south/south.json (100%) rename assets/{ => preload}/data/specialThanks.txt (100%) rename assets/{ => preload}/data/spookeez/spookeez-easy.json (100%) rename assets/{ => preload}/data/spookeez/spookeez-hard.json (100%) rename assets/{ => preload}/data/spookeez/spookeez.json (100%) rename assets/{ => preload}/data/thorns/thorns-easy.json (100%) rename assets/{ => preload}/data/thorns/thorns-hard.json (100%) rename assets/{ => preload}/data/thorns/thorns.json (100%) rename assets/{ => preload}/data/thorns/thornsDialogue.txt (100%) rename assets/{ => preload}/data/tutorial/tutorial-easy.json (100%) rename assets/{ => preload}/data/tutorial/tutorial-hard.json (100%) rename assets/{ => preload}/data/tutorial/tutorial.json (100%) rename assets/{ => preload}/data/winter-horrorland/winter-horrorland-easy.json (100%) rename assets/{ => preload}/data/winter-horrorland/winter-horrorland-hard.json (100%) rename assets/{ => preload}/data/winter-horrorland/winter-horrorland.json (100%) rename assets/{ => preload}/images/BOYFRIEND.png (100%) rename assets/{ => preload}/images/BOYFRIEND.xml (100%) rename assets/{ => preload}/images/DADDY_DEAREST.png (100%) rename assets/{ => preload}/images/DADDY_DEAREST.xml (100%) rename assets/{ => preload}/images/FNF_main_menu_assets.png (100%) rename assets/{ => preload}/images/FNF_main_menu_assets.xml (100%) rename assets/{ => preload}/images/GF_assets.png (100%) rename assets/{ => preload}/images/GF_assets.xml (100%) rename assets/{ => preload}/images/Mom_Assets.png (100%) rename assets/{ => preload}/images/Mom_Assets.xml (100%) rename assets/{ => preload}/images/Monster_Assets.png (100%) rename assets/{ => preload}/images/Monster_Assets.xml (100%) rename assets/{ => preload}/images/NOTE_assets.png (100%) rename assets/{ => preload}/images/NOTE_assets.xml (100%) rename assets/{ => preload}/images/Pico_FNF_assetss.png (100%) rename assets/{ => preload}/images/Pico_FNF_assetss.xml (100%) rename assets/{ => preload}/images/alphabet.png (100%) rename assets/{ => preload}/images/alphabet.xml (100%) rename assets/{ => preload}/images/backspace.png (100%) rename assets/{ => preload}/images/backspace.xml (100%) rename assets/{ => preload}/images/bad.png (100%) rename assets/{ => preload}/images/bfCar.png (100%) rename assets/{ => preload}/images/bfCar.xml (100%) rename assets/{ => preload}/images/campaign_menu_UI_assets.png (100%) rename assets/{ => preload}/images/campaign_menu_UI_assets.xml (100%) rename assets/{ => preload}/images/campaign_menu_UI_characters.png (100%) rename assets/{ => preload}/images/campaign_menu_UI_characters.xml (100%) rename assets/{ => preload}/images/christmas/bfChristmas.png (100%) rename assets/{ => preload}/images/christmas/bfChristmas.xml (100%) rename assets/{ => preload}/images/christmas/bgEscalator.png (100%) rename assets/{ => preload}/images/christmas/bgWalls.png (100%) rename assets/{ => preload}/images/christmas/bottomBop.png (100%) rename assets/{ => preload}/images/christmas/bottomBop.xml (100%) rename assets/{ => preload}/images/christmas/christmasTree.png (100%) rename assets/{ => preload}/images/christmas/christmasWall.png (100%) rename assets/{ => preload}/images/christmas/evilBG.png (100%) rename assets/{ => preload}/images/christmas/evilSnow.png (100%) rename assets/{ => preload}/images/christmas/evilTree.png (100%) rename assets/{ => preload}/images/christmas/fgSnow.png (100%) rename assets/{ => preload}/images/christmas/gfChristmas.png (100%) rename assets/{ => preload}/images/christmas/gfChristmas.xml (100%) rename assets/{ => preload}/images/christmas/mom_dad_christmas_assets.png (100%) rename assets/{ => preload}/images/christmas/mom_dad_christmas_assets.xml (100%) rename assets/{ => preload}/images/christmas/monsterChristmas.png (100%) rename assets/{ => preload}/images/christmas/monsterChristmas.xml (100%) rename assets/{ => preload}/images/christmas/santa.png (100%) rename assets/{ => preload}/images/christmas/santa.xml (100%) rename assets/{ => preload}/images/christmas/upperBop.png (100%) rename assets/{ => preload}/images/christmas/upperBop.xml (100%) rename assets/{ => preload}/images/combo.png (100%) rename assets/{ => preload}/images/gfCar.png (100%) rename assets/{ => preload}/images/gfCar.xml (100%) rename assets/{ => preload}/images/gfDanceTitle.png (100%) rename assets/{ => preload}/images/gfDanceTitle.xml (100%) rename assets/{ => preload}/images/go.png (100%) rename assets/{ => preload}/images/good.png (100%) rename assets/{ => preload}/images/grafix.png (100%) rename assets/{ => preload}/images/halloween_bg.png (100%) rename assets/{ => preload}/images/halloween_bg.xml (100%) rename assets/{ => preload}/images/healthBar.png (100%) rename assets/{ => preload}/images/iconGrid.png (100%) rename assets/{ => preload}/images/images-go-here.txt (100%) rename assets/{ => preload}/images/limo/bgLimo.png (100%) rename assets/{ => preload}/images/limo/bgLimo.xml (100%) rename assets/{ => preload}/images/limo/dumb.png (100%) rename assets/{ => preload}/images/limo/fastCarLol.png (100%) rename assets/{ => preload}/images/limo/limoDancer.png (100%) rename assets/{ => preload}/images/limo/limoDancer.xml (100%) rename assets/{ => preload}/images/limo/limoDrive.png (100%) rename assets/{ => preload}/images/limo/limoDrive.xml (100%) rename assets/{ => preload}/images/limo/limoOverlay.png (100%) rename assets/{ => preload}/images/limo/limoSunset.png (100%) rename assets/{ => preload}/images/logo.png (100%) rename assets/{ => preload}/images/logoBumpin.png (100%) rename assets/{ => preload}/images/logoBumpin.xml (100%) rename assets/{ => preload}/images/lol.png (100%) rename assets/{ => preload}/images/lose.png (100%) rename assets/{ => preload}/images/lose.xml (100%) rename assets/{ => preload}/images/menuBG.png (100%) rename assets/{ => preload}/images/menuBGBlue.png (100%) rename assets/{ => preload}/images/menuBGMagenta.png (100%) rename assets/{ => preload}/images/menuDesat.png (100%) rename assets/{ => preload}/images/momCar.png (100%) rename assets/{ => preload}/images/momCar.xml (100%) rename assets/{ => preload}/images/newgrounds_logo.png (100%) rename assets/{ => preload}/images/num0.png (100%) rename assets/{ => preload}/images/num1.png (100%) rename assets/{ => preload}/images/num2.png (100%) rename assets/{ => preload}/images/num3.png (100%) rename assets/{ => preload}/images/num4.png (100%) rename assets/{ => preload}/images/num5.png (100%) rename assets/{ => preload}/images/num6.png (100%) rename assets/{ => preload}/images/num7.png (100%) rename assets/{ => preload}/images/num8.png (100%) rename assets/{ => preload}/images/num9.png (100%) rename assets/{ => preload}/images/philly/behindTrain.png (100%) rename assets/{ => preload}/images/philly/city.png (100%) rename assets/{ => preload}/images/philly/sky.png (100%) rename assets/{ => preload}/images/philly/street.png (100%) rename assets/{ => preload}/images/philly/train.png (100%) rename assets/{ => preload}/images/philly/win0.png (100%) rename assets/{ => preload}/images/philly/win1.png (100%) rename assets/{ => preload}/images/philly/win2.png (100%) rename assets/{ => preload}/images/philly/win3.png (100%) rename assets/{ => preload}/images/philly/win4.png (100%) rename assets/{ => preload}/images/ready.png (100%) rename assets/{ => preload}/images/restart.png (100%) rename assets/{ => preload}/images/screencapTierImage.png (100%) rename assets/{ => preload}/images/set.png (100%) rename assets/{ => preload}/images/shit.png (100%) rename assets/{ => preload}/images/sick.png (100%) rename assets/{ => preload}/images/speech_bubble_talking.png (100%) rename assets/{ => preload}/images/speech_bubble_talking.xml (100%) rename assets/{ => preload}/images/spooky_kids_assets.png (100%) rename assets/{ => preload}/images/spooky_kids_assets.xml (100%) rename assets/{ => preload}/images/stage_light.png (100%) rename assets/{ => preload}/images/stageback.png (100%) rename assets/{ => preload}/images/stagecurtains.png (100%) rename assets/{ => preload}/images/stagefront.png (100%) rename assets/{ => preload}/images/titleEnter.png (100%) rename assets/{ => preload}/images/titleEnter.xml (100%) rename assets/{ => preload}/images/weeb/animatedEvilSchool.png (100%) rename assets/{ => preload}/images/weeb/animatedEvilSchool.xml (100%) rename assets/{ => preload}/images/weeb/bfPixel.png (100%) rename assets/{ => preload}/images/weeb/bfPixel.xml (100%) rename assets/{ => preload}/images/weeb/bfPixelsDEAD.png (100%) rename assets/{ => preload}/images/weeb/bfPixelsDEAD.xml (100%) rename assets/{ => preload}/images/weeb/bfPortrait.png (100%) rename assets/{ => preload}/images/weeb/bfPortrait.xml (100%) rename assets/{ => preload}/images/weeb/bgFreaks.png (100%) rename assets/{ => preload}/images/weeb/bgFreaks.xml (100%) rename assets/{ => preload}/images/weeb/evilSchoolBG.png (100%) rename assets/{ => preload}/images/weeb/evilSchoolFG.png (100%) rename assets/{ => preload}/images/weeb/gfPixel.png (100%) rename assets/{ => preload}/images/weeb/gfPixel.xml (100%) rename assets/{ => preload}/images/weeb/petals.png (100%) rename assets/{ => preload}/images/weeb/petals.xml (100%) rename assets/{ => preload}/images/weeb/pixelUI/arrowEnds.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/arrows-pixels.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/bad-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/combo-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/date-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/dialogueBox-evil.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/dialogueBox-evil.xml (100%) rename assets/{ => preload}/images/weeb/pixelUI/dialogueBox-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/dialogueBox-pixel.xml (100%) rename assets/{ => preload}/images/weeb/pixelUI/dialogueBox-senpaiMad.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/dialogueBox-senpaiMad.xml (100%) rename assets/{ => preload}/images/weeb/pixelUI/good-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/hand_textbox.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num0-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num1-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num2-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num3-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num4-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num5-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num6-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num7-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num8-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/num9-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/ready-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/set-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/shit-pixel.png (100%) rename assets/{ => preload}/images/weeb/pixelUI/sick-pixel.png (100%) rename assets/{ => preload}/images/weeb/senpai.png (100%) rename assets/{ => preload}/images/weeb/senpai.xml (100%) rename assets/{ => preload}/images/weeb/senpaiCrazy.png (100%) rename assets/{ => preload}/images/weeb/senpaiCrazy.xml (100%) rename assets/{ => preload}/images/weeb/senpaiPortrait.png (100%) rename assets/{ => preload}/images/weeb/senpaiPortrait.xml (100%) rename assets/{ => preload}/images/weeb/spirit.png (100%) rename assets/{ => preload}/images/weeb/spirit.txt (100%) rename assets/{ => preload}/images/weeb/spiritFaceForward.png (100%) rename assets/{ => preload}/images/weeb/weebSchool.png (100%) rename assets/{ => preload}/images/weeb/weebSky.png (100%) rename assets/{ => preload}/images/weeb/weebStreet.png (100%) rename assets/{ => preload}/images/weeb/weebTrees.png (100%) rename assets/{ => preload}/images/weeb/weebTrees.txt (100%) rename assets/{ => preload}/images/weeb/weebTreesBack.png (100%) rename assets/{ => preload}/images/zzzzzzzz.png (100%) rename assets/{ => preload}/music/Lunchbox.mp3 (100%) rename assets/{ => preload}/music/Lunchbox.ogg (100%) rename assets/{ => preload}/music/LunchboxScary.mp3 (100%) rename assets/{ => preload}/music/LunchboxScary.ogg (100%) rename assets/{ => preload}/music/freakyMenu.mp3 (100%) rename assets/{ => preload}/music/freakyMenu.ogg (100%) rename assets/{ => preload}/music/title.mp3 (100%) rename assets/{ => preload}/music/title.ogg (100%) rename assets/{ => preload}/music/titleShoot.mp3 (100%) rename assets/{ => preload}/music/titleShoot.ogg (100%) rename assets/{ => preload}/sounds/ANGRY.mp3 (100%) rename assets/{ => preload}/sounds/ANGRY.ogg (100%) rename assets/{ => preload}/sounds/ANGRY_TEXT_BOX.mp3 (100%) rename assets/{ => preload}/sounds/ANGRY_TEXT_BOX.ogg (100%) rename assets/{ => preload}/sounds/GF_1.mp3 (100%) rename assets/{ => preload}/sounds/GF_1.ogg (100%) rename assets/{ => preload}/sounds/GF_2.mp3 (100%) rename assets/{ => preload}/sounds/GF_2.ogg (100%) rename assets/{ => preload}/sounds/GF_3.mp3 (100%) rename assets/{ => preload}/sounds/GF_3.ogg (100%) rename assets/{ => preload}/sounds/GF_4.mp3 (100%) rename assets/{ => preload}/sounds/GF_4.ogg (100%) rename assets/{ => preload}/sounds/Lights_Shut_off.mp3 (100%) rename assets/{ => preload}/sounds/Lights_Shut_off.ogg (100%) rename assets/{ => preload}/sounds/Lights_Turn_On.mp3 (100%) rename assets/{ => preload}/sounds/Lights_Turn_On.ogg (100%) rename assets/{ => preload}/sounds/Senpai_Dies.mp3 (100%) rename assets/{ => preload}/sounds/Senpai_Dies.ogg (100%) rename assets/{ => preload}/sounds/badnoise1.mp3 (100%) rename assets/{ => preload}/sounds/badnoise1.ogg (100%) rename assets/{ => preload}/sounds/badnoise2.mp3 (100%) rename assets/{ => preload}/sounds/badnoise2.ogg (100%) rename assets/{ => preload}/sounds/badnoise3.mp3 (100%) rename assets/{ => preload}/sounds/badnoise3.ogg (100%) rename assets/{ => preload}/sounds/cancelMenu.mp3 (100%) rename assets/{ => preload}/sounds/cancelMenu.ogg (100%) rename assets/{ => preload}/sounds/carPass0.mp3 (100%) rename assets/{ => preload}/sounds/carPass0.ogg (100%) rename assets/{ => preload}/sounds/carPass1.mp3 (100%) rename assets/{ => preload}/sounds/carPass1.ogg (100%) rename assets/{ => preload}/sounds/clickText.mp3 (100%) rename assets/{ => preload}/sounds/clickText.ogg (100%) rename assets/{ => preload}/sounds/confirmMenu.mp3 (100%) rename assets/{ => preload}/sounds/confirmMenu.ogg (100%) rename assets/{ => preload}/sounds/fnf_loss_sfx-pixel.mp3 (100%) rename assets/{ => preload}/sounds/fnf_loss_sfx-pixel.ogg (100%) rename assets/{ => preload}/sounds/fnf_loss_sfx.mp3 (100%) rename assets/{ => preload}/sounds/fnf_loss_sfx.ogg (100%) rename assets/{ => preload}/sounds/freshIntro.mp3 (100%) rename assets/{ => preload}/sounds/freshIntro.ogg (100%) rename assets/{ => preload}/sounds/intro1-pixel.mp3 (100%) rename assets/{ => preload}/sounds/intro1-pixel.ogg (100%) rename assets/{ => preload}/sounds/intro1.mp3 (100%) rename assets/{ => preload}/sounds/intro1.ogg (100%) rename assets/{ => preload}/sounds/intro2-pixel.mp3 (100%) rename assets/{ => preload}/sounds/intro2-pixel.ogg (100%) rename assets/{ => preload}/sounds/intro2.mp3 (100%) rename assets/{ => preload}/sounds/intro2.ogg (100%) rename assets/{ => preload}/sounds/intro3-pixel.mp3 (100%) rename assets/{ => preload}/sounds/intro3-pixel.ogg (100%) rename assets/{ => preload}/sounds/intro3.mp3 (100%) rename assets/{ => preload}/sounds/intro3.ogg (100%) rename assets/{ => preload}/sounds/introGo-pixel.mp3 (100%) rename assets/{ => preload}/sounds/introGo-pixel.ogg (100%) rename assets/{ => preload}/sounds/introGo.mp3 (100%) rename assets/{ => preload}/sounds/introGo.ogg (100%) rename assets/{ => preload}/sounds/missnote1.mp3 (100%) rename assets/{ => preload}/sounds/missnote1.ogg (100%) rename assets/{ => preload}/sounds/missnote2.mp3 (100%) rename assets/{ => preload}/sounds/missnote2.ogg (100%) rename assets/{ => preload}/sounds/missnote3.mp3 (100%) rename assets/{ => preload}/sounds/missnote3.ogg (100%) rename assets/{ => preload}/sounds/pixelText.mp3 (100%) rename assets/{ => preload}/sounds/pixelText.ogg (100%) rename assets/{ => preload}/sounds/scrollMenu.mp3 (100%) rename assets/{ => preload}/sounds/scrollMenu.ogg (100%) rename assets/{ => preload}/sounds/soundTest.mp3 (100%) rename assets/{ => preload}/sounds/soundTest.ogg (100%) rename assets/{ => preload}/sounds/sounds-go-here.txt (100%) rename assets/{ => preload}/sounds/thunder_1.mp3 (100%) rename assets/{ => preload}/sounds/thunder_1.ogg (100%) rename assets/{ => preload}/sounds/thunder_2.mp3 (100%) rename assets/{ => preload}/sounds/thunder_2.ogg (100%) rename assets/{ => preload}/sounds/train_passes.mp3 (100%) rename assets/{ => preload}/sounds/train_passes.ogg (100%) rename assets/{music/Roses_Inst.mp3 => roses/music/Inst.mp3} (100%) rename assets/{music/Roses_Inst.ogg => roses/music/Inst.ogg} (100%) rename assets/{music/Roses_Voices.mp3 => roses/music/Voices.mp3} (100%) rename assets/{music/Roses_Voices.ogg => roses/music/Voices.ogg} (100%) rename assets/{music/Satin-Panties_Inst.mp3 => satin-panties/music/Inst.mp3} (100%) rename assets/{music/Satin-Panties_Inst.ogg => satin-panties/music/Inst.ogg} (100%) rename assets/{music/Satin-Panties_Voices.mp3 => satin-panties/music/Voices.mp3} (100%) rename assets/{music/Satin-Panties_Voices.ogg => satin-panties/music/Voices.ogg} (100%) rename assets/{music/Senpai_Inst.mp3 => senpai/music/Inst.mp3} (100%) rename assets/{music/Senpai_Inst.ogg => senpai/music/Inst.ogg} (100%) rename assets/{music/Senpai_Voices.mp3 => senpai/music/Voices.mp3} (100%) rename assets/{music/Senpai_Voices.ogg => senpai/music/Voices.ogg} (100%) rename assets/{ => shared}/music/breakfast.mp3 (100%) rename assets/{ => shared}/music/breakfast.ogg (100%) rename assets/{ => shared}/music/gameOver-pixel.mp3 (100%) rename assets/{ => shared}/music/gameOver-pixel.ogg (100%) rename assets/{ => shared}/music/gameOver.mp3 (100%) rename assets/{ => shared}/music/gameOver.ogg (100%) rename assets/{ => shared}/music/gameOverEnd-pixel.mp3 (100%) rename assets/{ => shared}/music/gameOverEnd-pixel.ogg (100%) rename assets/{ => shared}/music/gameOverEnd.mp3 (100%) rename assets/{ => shared}/music/gameOverEnd.ogg (100%) rename assets/{music/South_Inst.mp3 => south/music/Inst.mp3} (100%) rename assets/{music/South_Inst.ogg => south/music/Inst.ogg} (100%) rename assets/{music/South_Voices.mp3 => south/music/Voices.mp3} (100%) rename assets/{music/South_Voices.ogg => south/music/Voices.ogg} (100%) rename assets/{music/Spookeez_Inst.mp3 => spookeez/music/Inst.mp3} (100%) rename assets/{music/Spookeez_Inst.ogg => spookeez/music/Inst.ogg} (100%) rename assets/{ => spookeez}/music/Spookeez.mp3 (100%) rename assets/{ => spookeez}/music/Spookeez.ogg (100%) rename assets/{music/Spookeez_Voices.mp3 => spookeez/music/Voices.mp3} (100%) rename assets/{music/Spookeez_Voices.ogg => spookeez/music/Voices.ogg} (100%) rename assets/{music/Test_Inst.mp3 => test/music/Inst.mp3} (100%) rename assets/{music/Test_Inst.ogg => test/music/Inst.ogg} (100%) rename assets/{music/Test_Voices.mp3 => test/music/Voices.mp3} (100%) rename assets/{music/Test_Voices.ogg => test/music/Voices.ogg} (100%) rename assets/{music/Thorns_Inst.mp3 => thorns/music/Inst.mp3} (100%) rename assets/{music/Thorns_Inst.ogg => thorns/music/Inst.ogg} (100%) rename assets/{music/Thorns_Voices.mp3 => thorns/music/Voices.mp3} (100%) rename assets/{music/Thorns_Voices.ogg => thorns/music/Voices.ogg} (100%) rename assets/{music/Tutorial_Inst.mp3 => tutorial/music/Inst.mp3} (100%) rename assets/{music/Tutorial_Inst.ogg => tutorial/music/Inst.ogg} (100%) rename assets/{music/Winter-Horrorland_Inst.mp3 => winter-horrorland/music/Inst.mp3} (100%) rename assets/{music/Winter-Horrorland_Inst.ogg => winter-horrorland/music/Inst.ogg} (100%) rename assets/{music/Winter-Horrorland_Voices.mp3 => winter-horrorland/music/Voices.mp3} (100%) rename assets/{music/Winter-Horrorland_Voices.ogg => winter-horrorland/music/Voices.ogg} (100%) diff --git a/Project.xml b/Project.xml index 4983688..7e61c7e 100644 --- a/Project.xml +++ b/Project.xml @@ -40,18 +40,92 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + diff --git a/assets/monster/music/Monster.mp3 b/assets/exclude/Monster.mp3 similarity index 100% rename from assets/monster/music/Monster.mp3 rename to assets/exclude/Monster.mp3 diff --git a/assets/monster/music/Monster.ogg b/assets/exclude/Monster.ogg similarity index 100% rename from assets/monster/music/Monster.ogg rename to assets/exclude/Monster.ogg diff --git a/assets/spookeez/music/Spookeez.mp3 b/assets/exclude/Spookeez.mp3 similarity index 100% rename from assets/spookeez/music/Spookeez.mp3 rename to assets/exclude/Spookeez.mp3 diff --git a/assets/spookeez/music/Spookeez.ogg b/assets/exclude/Spookeez.ogg similarity index 100% rename from assets/spookeez/music/Spookeez.ogg rename to assets/exclude/Spookeez.ogg diff --git a/assets/blammed/music/Inst.mp3 b/assets/songs/blammed/Inst.mp3 similarity index 100% rename from assets/blammed/music/Inst.mp3 rename to assets/songs/blammed/Inst.mp3 diff --git a/assets/blammed/music/Inst.ogg b/assets/songs/blammed/Inst.ogg similarity index 100% rename from assets/blammed/music/Inst.ogg rename to assets/songs/blammed/Inst.ogg diff --git a/assets/blammed/music/Voices.mp3 b/assets/songs/blammed/Voices.mp3 similarity index 100% rename from assets/blammed/music/Voices.mp3 rename to assets/songs/blammed/Voices.mp3 diff --git a/assets/blammed/music/Voices.ogg b/assets/songs/blammed/Voices.ogg similarity index 100% rename from assets/blammed/music/Voices.ogg rename to assets/songs/blammed/Voices.ogg diff --git a/assets/bopeebo/music/Inst.mp3 b/assets/songs/bopeebo/Inst.mp3 similarity index 100% rename from assets/bopeebo/music/Inst.mp3 rename to assets/songs/bopeebo/Inst.mp3 diff --git a/assets/bopeebo/music/Inst.ogg b/assets/songs/bopeebo/Inst.ogg similarity index 100% rename from assets/bopeebo/music/Inst.ogg rename to assets/songs/bopeebo/Inst.ogg diff --git a/assets/bopeebo/music/Voices.mp3 b/assets/songs/bopeebo/Voices.mp3 similarity index 100% rename from assets/bopeebo/music/Voices.mp3 rename to assets/songs/bopeebo/Voices.mp3 diff --git a/assets/bopeebo/music/Voices.ogg b/assets/songs/bopeebo/Voices.ogg similarity index 100% rename from assets/bopeebo/music/Voices.ogg rename to assets/songs/bopeebo/Voices.ogg diff --git a/assets/cocoa/music/Inst.mp3 b/assets/songs/cocoa/Inst.mp3 similarity index 100% rename from assets/cocoa/music/Inst.mp3 rename to assets/songs/cocoa/Inst.mp3 diff --git a/assets/cocoa/music/Inst.ogg b/assets/songs/cocoa/Inst.ogg similarity index 100% rename from assets/cocoa/music/Inst.ogg rename to assets/songs/cocoa/Inst.ogg diff --git a/assets/cocoa/music/Voices.mp3 b/assets/songs/cocoa/Voices.mp3 similarity index 100% rename from assets/cocoa/music/Voices.mp3 rename to assets/songs/cocoa/Voices.mp3 diff --git a/assets/cocoa/music/Voices.ogg b/assets/songs/cocoa/Voices.ogg similarity index 100% rename from assets/cocoa/music/Voices.ogg rename to assets/songs/cocoa/Voices.ogg diff --git a/assets/dadbattle/music/Inst.mp3 b/assets/songs/dadbattle/Inst.mp3 similarity index 100% rename from assets/dadbattle/music/Inst.mp3 rename to assets/songs/dadbattle/Inst.mp3 diff --git a/assets/dadbattle/music/Inst.ogg b/assets/songs/dadbattle/Inst.ogg similarity index 100% rename from assets/dadbattle/music/Inst.ogg rename to assets/songs/dadbattle/Inst.ogg diff --git a/assets/dadbattle/music/Voices.mp3 b/assets/songs/dadbattle/Voices.mp3 similarity index 100% rename from assets/dadbattle/music/Voices.mp3 rename to assets/songs/dadbattle/Voices.mp3 diff --git a/assets/dadbattle/music/Voices.ogg b/assets/songs/dadbattle/Voices.ogg similarity index 100% rename from assets/dadbattle/music/Voices.ogg rename to assets/songs/dadbattle/Voices.ogg diff --git a/assets/eggnog/music/Inst.mp3 b/assets/songs/eggnog/Inst.mp3 similarity index 100% rename from assets/eggnog/music/Inst.mp3 rename to assets/songs/eggnog/Inst.mp3 diff --git a/assets/eggnog/music/Inst.ogg b/assets/songs/eggnog/Inst.ogg similarity index 100% rename from assets/eggnog/music/Inst.ogg rename to assets/songs/eggnog/Inst.ogg diff --git a/assets/eggnog/music/Voices.mp3 b/assets/songs/eggnog/Voices.mp3 similarity index 100% rename from assets/eggnog/music/Voices.mp3 rename to assets/songs/eggnog/Voices.mp3 diff --git a/assets/eggnog/music/Voices.ogg b/assets/songs/eggnog/Voices.ogg similarity index 100% rename from assets/eggnog/music/Voices.ogg rename to assets/songs/eggnog/Voices.ogg diff --git a/assets/fresh/music/Inst.mp3 b/assets/songs/fresh/Inst.mp3 similarity index 100% rename from assets/fresh/music/Inst.mp3 rename to assets/songs/fresh/Inst.mp3 diff --git a/assets/fresh/music/Inst.ogg b/assets/songs/fresh/Inst.ogg similarity index 100% rename from assets/fresh/music/Inst.ogg rename to assets/songs/fresh/Inst.ogg diff --git a/assets/fresh/music/Voices.mp3 b/assets/songs/fresh/Voices.mp3 similarity index 100% rename from assets/fresh/music/Voices.mp3 rename to assets/songs/fresh/Voices.mp3 diff --git a/assets/fresh/music/Voices.ogg b/assets/songs/fresh/Voices.ogg similarity index 100% rename from assets/fresh/music/Voices.ogg rename to assets/songs/fresh/Voices.ogg diff --git a/assets/high/music/Inst.mp3 b/assets/songs/high/Inst.mp3 similarity index 100% rename from assets/high/music/Inst.mp3 rename to assets/songs/high/Inst.mp3 diff --git a/assets/high/music/Inst.ogg b/assets/songs/high/Inst.ogg similarity index 100% rename from assets/high/music/Inst.ogg rename to assets/songs/high/Inst.ogg diff --git a/assets/high/music/Voices.mp3 b/assets/songs/high/Voices.mp3 similarity index 100% rename from assets/high/music/Voices.mp3 rename to assets/songs/high/Voices.mp3 diff --git a/assets/high/music/Voices.ogg b/assets/songs/high/Voices.ogg similarity index 100% rename from assets/high/music/Voices.ogg rename to assets/songs/high/Voices.ogg diff --git a/assets/milf/music/Inst.mp3 b/assets/songs/milf/Inst.mp3 similarity index 100% rename from assets/milf/music/Inst.mp3 rename to assets/songs/milf/Inst.mp3 diff --git a/assets/milf/music/Inst.ogg b/assets/songs/milf/Inst.ogg similarity index 100% rename from assets/milf/music/Inst.ogg rename to assets/songs/milf/Inst.ogg diff --git a/assets/milf/music/Voices.mp3 b/assets/songs/milf/Voices.mp3 similarity index 100% rename from assets/milf/music/Voices.mp3 rename to assets/songs/milf/Voices.mp3 diff --git a/assets/milf/music/Voices.ogg b/assets/songs/milf/Voices.ogg similarity index 100% rename from assets/milf/music/Voices.ogg rename to assets/songs/milf/Voices.ogg diff --git a/assets/monster/music/Inst.mp3 b/assets/songs/monster/Inst.mp3 similarity index 100% rename from assets/monster/music/Inst.mp3 rename to assets/songs/monster/Inst.mp3 diff --git a/assets/monster/music/Inst.ogg b/assets/songs/monster/Inst.ogg similarity index 100% rename from assets/monster/music/Inst.ogg rename to assets/songs/monster/Inst.ogg diff --git a/assets/monster/music/Voices.mp3 b/assets/songs/monster/Voices.mp3 similarity index 100% rename from assets/monster/music/Voices.mp3 rename to assets/songs/monster/Voices.mp3 diff --git a/assets/monster/music/Voices.ogg b/assets/songs/monster/Voices.ogg similarity index 100% rename from assets/monster/music/Voices.ogg rename to assets/songs/monster/Voices.ogg diff --git a/assets/philly/music/Inst.mp3 b/assets/songs/philly/Inst.mp3 similarity index 100% rename from assets/philly/music/Inst.mp3 rename to assets/songs/philly/Inst.mp3 diff --git a/assets/philly/music/Inst.ogg b/assets/songs/philly/Inst.ogg similarity index 100% rename from assets/philly/music/Inst.ogg rename to assets/songs/philly/Inst.ogg diff --git a/assets/philly/music/Voices.mp3 b/assets/songs/philly/Voices.mp3 similarity index 100% rename from assets/philly/music/Voices.mp3 rename to assets/songs/philly/Voices.mp3 diff --git a/assets/philly/music/Voices.ogg b/assets/songs/philly/Voices.ogg similarity index 100% rename from assets/philly/music/Voices.ogg rename to assets/songs/philly/Voices.ogg diff --git a/assets/pico/music/Inst.mp3 b/assets/songs/pico/Inst.mp3 similarity index 100% rename from assets/pico/music/Inst.mp3 rename to assets/songs/pico/Inst.mp3 diff --git a/assets/pico/music/Inst.ogg b/assets/songs/pico/Inst.ogg similarity index 100% rename from assets/pico/music/Inst.ogg rename to assets/songs/pico/Inst.ogg diff --git a/assets/pico/music/Voices.mp3 b/assets/songs/pico/Voices.mp3 similarity index 100% rename from assets/pico/music/Voices.mp3 rename to assets/songs/pico/Voices.mp3 diff --git a/assets/pico/music/Voices.ogg b/assets/songs/pico/Voices.ogg similarity index 100% rename from assets/pico/music/Voices.ogg rename to assets/songs/pico/Voices.ogg diff --git a/assets/roses/music/Inst.mp3 b/assets/songs/roses/Inst.mp3 similarity index 100% rename from assets/roses/music/Inst.mp3 rename to assets/songs/roses/Inst.mp3 diff --git a/assets/roses/music/Inst.ogg b/assets/songs/roses/Inst.ogg similarity index 100% rename from assets/roses/music/Inst.ogg rename to assets/songs/roses/Inst.ogg diff --git a/assets/roses/music/Voices.mp3 b/assets/songs/roses/Voices.mp3 similarity index 100% rename from assets/roses/music/Voices.mp3 rename to assets/songs/roses/Voices.mp3 diff --git a/assets/roses/music/Voices.ogg b/assets/songs/roses/Voices.ogg similarity index 100% rename from assets/roses/music/Voices.ogg rename to assets/songs/roses/Voices.ogg diff --git a/assets/satin-panties/music/Inst.mp3 b/assets/songs/satin-panties/Inst.mp3 similarity index 100% rename from assets/satin-panties/music/Inst.mp3 rename to assets/songs/satin-panties/Inst.mp3 diff --git a/assets/satin-panties/music/Inst.ogg b/assets/songs/satin-panties/Inst.ogg similarity index 100% rename from assets/satin-panties/music/Inst.ogg rename to assets/songs/satin-panties/Inst.ogg diff --git a/assets/satin-panties/music/Voices.mp3 b/assets/songs/satin-panties/Voices.mp3 similarity index 100% rename from assets/satin-panties/music/Voices.mp3 rename to assets/songs/satin-panties/Voices.mp3 diff --git a/assets/satin-panties/music/Voices.ogg b/assets/songs/satin-panties/Voices.ogg similarity index 100% rename from assets/satin-panties/music/Voices.ogg rename to assets/songs/satin-panties/Voices.ogg diff --git a/assets/senpai/music/Inst.mp3 b/assets/songs/senpai/Inst.mp3 similarity index 100% rename from assets/senpai/music/Inst.mp3 rename to assets/songs/senpai/Inst.mp3 diff --git a/assets/senpai/music/Inst.ogg b/assets/songs/senpai/Inst.ogg similarity index 100% rename from assets/senpai/music/Inst.ogg rename to assets/songs/senpai/Inst.ogg diff --git a/assets/senpai/music/Voices.mp3 b/assets/songs/senpai/Voices.mp3 similarity index 100% rename from assets/senpai/music/Voices.mp3 rename to assets/songs/senpai/Voices.mp3 diff --git a/assets/senpai/music/Voices.ogg b/assets/songs/senpai/Voices.ogg similarity index 100% rename from assets/senpai/music/Voices.ogg rename to assets/songs/senpai/Voices.ogg diff --git a/assets/south/music/Inst.mp3 b/assets/songs/south/Inst.mp3 similarity index 100% rename from assets/south/music/Inst.mp3 rename to assets/songs/south/Inst.mp3 diff --git a/assets/south/music/Inst.ogg b/assets/songs/south/Inst.ogg similarity index 100% rename from assets/south/music/Inst.ogg rename to assets/songs/south/Inst.ogg diff --git a/assets/south/music/Voices.mp3 b/assets/songs/south/Voices.mp3 similarity index 100% rename from assets/south/music/Voices.mp3 rename to assets/songs/south/Voices.mp3 diff --git a/assets/south/music/Voices.ogg b/assets/songs/south/Voices.ogg similarity index 100% rename from assets/south/music/Voices.ogg rename to assets/songs/south/Voices.ogg diff --git a/assets/spookeez/music/Inst.mp3 b/assets/songs/spookeez/Inst.mp3 similarity index 100% rename from assets/spookeez/music/Inst.mp3 rename to assets/songs/spookeez/Inst.mp3 diff --git a/assets/spookeez/music/Inst.ogg b/assets/songs/spookeez/Inst.ogg similarity index 100% rename from assets/spookeez/music/Inst.ogg rename to assets/songs/spookeez/Inst.ogg diff --git a/assets/spookeez/music/Voices.mp3 b/assets/songs/spookeez/Voices.mp3 similarity index 100% rename from assets/spookeez/music/Voices.mp3 rename to assets/songs/spookeez/Voices.mp3 diff --git a/assets/spookeez/music/Voices.ogg b/assets/songs/spookeez/Voices.ogg similarity index 100% rename from assets/spookeez/music/Voices.ogg rename to assets/songs/spookeez/Voices.ogg diff --git a/assets/test/music/Inst.mp3 b/assets/songs/test/Inst.mp3 similarity index 100% rename from assets/test/music/Inst.mp3 rename to assets/songs/test/Inst.mp3 diff --git a/assets/test/music/Inst.ogg b/assets/songs/test/Inst.ogg similarity index 100% rename from assets/test/music/Inst.ogg rename to assets/songs/test/Inst.ogg diff --git a/assets/test/music/Voices.mp3 b/assets/songs/test/Voices.mp3 similarity index 100% rename from assets/test/music/Voices.mp3 rename to assets/songs/test/Voices.mp3 diff --git a/assets/test/music/Voices.ogg b/assets/songs/test/Voices.ogg similarity index 100% rename from assets/test/music/Voices.ogg rename to assets/songs/test/Voices.ogg diff --git a/assets/thorns/music/Inst.mp3 b/assets/songs/thorns/Inst.mp3 similarity index 100% rename from assets/thorns/music/Inst.mp3 rename to assets/songs/thorns/Inst.mp3 diff --git a/assets/thorns/music/Inst.ogg b/assets/songs/thorns/Inst.ogg similarity index 100% rename from assets/thorns/music/Inst.ogg rename to assets/songs/thorns/Inst.ogg diff --git a/assets/thorns/music/Voices.mp3 b/assets/songs/thorns/Voices.mp3 similarity index 100% rename from assets/thorns/music/Voices.mp3 rename to assets/songs/thorns/Voices.mp3 diff --git a/assets/thorns/music/Voices.ogg b/assets/songs/thorns/Voices.ogg similarity index 100% rename from assets/thorns/music/Voices.ogg rename to assets/songs/thorns/Voices.ogg diff --git a/assets/tutorial/music/Inst.mp3 b/assets/songs/tutorial/Inst.mp3 similarity index 100% rename from assets/tutorial/music/Inst.mp3 rename to assets/songs/tutorial/Inst.mp3 diff --git a/assets/tutorial/music/Inst.ogg b/assets/songs/tutorial/Inst.ogg similarity index 100% rename from assets/tutorial/music/Inst.ogg rename to assets/songs/tutorial/Inst.ogg diff --git a/assets/winter-horrorland/music/Inst.mp3 b/assets/songs/winter-horrorland/Inst.mp3 similarity index 100% rename from assets/winter-horrorland/music/Inst.mp3 rename to assets/songs/winter-horrorland/Inst.mp3 diff --git a/assets/winter-horrorland/music/Inst.ogg b/assets/songs/winter-horrorland/Inst.ogg similarity index 100% rename from assets/winter-horrorland/music/Inst.ogg rename to assets/songs/winter-horrorland/Inst.ogg diff --git a/assets/winter-horrorland/music/Voices.mp3 b/assets/songs/winter-horrorland/Voices.mp3 similarity index 100% rename from assets/winter-horrorland/music/Voices.mp3 rename to assets/songs/winter-horrorland/Voices.mp3 diff --git a/assets/winter-horrorland/music/Voices.ogg b/assets/songs/winter-horrorland/Voices.ogg similarity index 100% rename from assets/winter-horrorland/music/Voices.ogg rename to assets/songs/winter-horrorland/Voices.ogg diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index a51c0c6..c1f02ce 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -198,9 +198,7 @@ class FreeplayState extends MusicBeatState PlayState.SONG = Song.loadFromJson(poop, songs[curSelected].toLowerCase()); PlayState.isStoryMode = false; PlayState.storyDifficulty = curDifficulty; - FlxG.switchState(new PlayState()); - if (FlxG.sound.music != null) - FlxG.sound.music.stop(); + LoadingState.loadAndSwitchState(new PlayState()); } } diff --git a/source/GameOverState.hx b/source/GameOverState.hx index ba7cb34..57c60d1 100644 --- a/source/GameOverState.hx +++ b/source/GameOverState.hx @@ -74,7 +74,7 @@ class GameOverState extends FlxTransitionableState FlxG.sound.music.fadeOut(0.5, 0, function(twn:FlxTween) { FlxG.sound.music.stop(); - FlxG.switchState(new PlayState()); + LoadingState.loadAndSwitchState(new PlayState()); }); } super.update(elapsed); diff --git a/source/GameOverSubstate.hx b/source/GameOverSubstate.hx index b403296..1d672db 100644 --- a/source/GameOverSubstate.hx +++ b/source/GameOverSubstate.hx @@ -107,7 +107,7 @@ class GameOverSubstate extends MusicBeatSubstate { FlxG.camera.fade(FlxColor.BLACK, 2, false, function() { - FlxG.switchState(new PlayState()); + LoadingState.loadAndSwitchState(new PlayState()); }); }); } diff --git a/source/LoadingState.hx b/source/LoadingState.hx new file mode 100644 index 0000000..64fb3c8 --- /dev/null +++ b/source/LoadingState.hx @@ -0,0 +1,341 @@ +package; + +import flixel.FlxG; +import flixel.FlxState; +import flixel.FlxSprite; +import flixel.graphics.frames.FlxAtlasFrames; +import flixel.util.FlxTimer; + +import openfl.utils.Assets; +import lime.utils.Assets as LimeAssets; +import lime.utils.AssetBundle; +import lime.utils.AssetLibrary; +import lime.utils.AssetManifest; +import lime.app.Future; +import lime.app.Promise; + +import haxe.io.Path; + +class LoadingState extends MusicBeatState +{ + inline static var MIN_TIME = 1.0; + + var target:FlxState; + var stopMusic = false; + var callbacks:MultiCallback; + + var logo:FlxSprite; + var gfDance:FlxSprite; + var danceLeft = false; + + function new(target:FlxState, stopMusic:Bool) + { + super(); + this.target = target; + this.stopMusic = stopMusic; + } + + override function create() + { + logo = new FlxSprite(-150, -100); + logo.frames = FlxAtlasFrames.fromSparrow('assets/images/logoBumpin.png', 'assets/images/logoBumpin.xml'); + logo.antialiasing = true; + logo.animation.addByPrefix('bump', 'logo bumpin', 24); + logo.animation.play('bump'); + logo.updateHitbox(); + // logoBl.screenCenter(); + // logoBl.color = FlxColor.BLACK; + + gfDance = new FlxSprite(FlxG.width * 0.4, FlxG.height * 0.07); + gfDance.frames = FlxAtlasFrames.fromSparrow('assets/images/gfDanceTitle.png', 'assets/images/gfDanceTitle.xml'); + gfDance.animation.addByIndices('danceLeft', 'gfDance', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false); + gfDance.animation.addByIndices('danceRight', 'gfDance', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false); + gfDance.antialiasing = true; + add(gfDance); + add(logo); + + // function onSongsManifestInit() + // { + callbacks = new MultiCallback(onLoad); + var introComplete = callbacks.add("introComplete"); + checkLoadSong(getSongPath()); + checkLoadSong(getVocalPath()); + checkLibrary("shared"); + if (PlayState.storyWeek > 0) + checkLibrary("week" + PlayState.storyWeek); + else + checkLibrary("tutorial"); + + var fadeTime = 0.5; + FlxG.camera.fade(FlxG.camera.bgColor, fadeTime, true); + new FlxTimer().start(fadeTime + MIN_TIME, function(_) introComplete()); + // } + + // initSongsManifest(onSongsManifestInit); + } + + function checkLoadSong(path:String) + { + if (!Assets.cache.hasSound(path)) + { + var library = Assets.getLibrary("songs"); + final symbolPath = path.split(":").pop(); + @:privateAccess + library.types.set(symbolPath, SOUND); + @:privateAccess + library.pathGroups.set(symbolPath, [library.__cacheBreak(symbolPath)]); + var callback = callbacks.add("song:" + path); + Assets.loadSound(path).onComplete(function (_) { callback(); }); + } + } + + function checkLibrary(library:String) + { + if (Assets.getLibrary(library) == null) + { + var callback = callbacks.add("library:" + library); + Assets.loadLibrary(library).onComplete(function (_) { callback(); }); + } + } + + override function beatHit() + { + super.beatHit(); + + logo.animation.play('bump'); + danceLeft = !danceLeft; + + if (danceLeft) + gfDance.animation.play('danceRight'); + else + gfDance.animation.play('danceLeft'); + } + + override function update(elapsed:Float) + { + super.update(elapsed); + } + + function onLoad() + { + if (stopMusic && FlxG.sound.music != null) + FlxG.sound.music.stop(); + + FlxG.switchState(target); + } + + static function getSongPath() + { + return Paths.inst(PlayState.SONG.song); + } + + static function getVocalPath() + { + return Paths.voices(PlayState.SONG.song); + } + + inline static public function loadAndSwitchState(target:FlxState, stopMusic = false) + { + FlxG.switchState(getNextState(target, stopMusic)); + } + + static function getNextState(target:FlxState, stopMusic = false):FlxState + { + #if js + var loaded = isSoundLoaded(getSongPath()) + && (!PlayState.SONG.needsVoices || isSoundLoaded(getVocalPath())) + && isLibraryLoaded("shared"); + + if (!loaded) + return new LoadingState(target, stopMusic); + #end + if (stopMusic && FlxG.sound.music != null) + FlxG.sound.music.stop(); + + return target; + } + + #if js + static function isSoundLoaded(path:String):Bool + { + return Assets.cache.hasSound(path); + } + + static function isLibraryLoaded(library:String):Bool + { + return Assets.getLibrary(library) != null; + } + #end + + override function destroy() + { + super.destroy(); + + callbacks = null; + } + + + /** + * creates the song manifest without loading all the songs so we can load them individually + * @param onComplete called on load + * @return Future + */ + static function initSongsManifest(onComplete:Void->Void):Future + { + final id = "songs"; + var promise = new Promise(); + + // #if (tools && !display && !macro) + var library = LimeAssets.getLibrary(id); + + if (library != null) + { + onComplete(); + return Future.withValue(library); + } + + var path = id; + var rootPath = null; + + // @:privateAccess + // if (LimeAssets.bundlePaths.exists(id)) + // { + // AssetBundle.loadFromFile(bundlePaths.get(id)).onComplete(function(bundle) + // { + // if (bundle == null) + // { + // promise.error("Cannot load bundle for library \"" + id + "\""); + // return; + // } + + // var library = AssetLibrary.fromBundle(bundle); + + // if (library == null) + // { + // promise.error("Cannot open library \"" + id + "\""); + // } + // else + // { + // libraries.set(id, library); + // library.onChange.add(LimeAssets.onChange.dispatch); + // promise.completeWith(Future.withValue(library)); + // onComplete(); + // } + // }).onError(function(_) + // { + // promise.error("There is no asset library with an ID of \"" + id + "\""); + // }); + // } + // else + // { + @:privateAccess + final libraryPaths = LimeAssets.libraryPaths; + if (libraryPaths.exists(id)) + { + path = libraryPaths[id]; + rootPath = Path.directory(path); + } + else + { + if (StringTools.endsWith(path, ".bundle")) + { + rootPath = path; + path += "/library.json"; + } + else + { + rootPath = Path.directory(path); + } + @:privateAccess + path = LimeAssets.__cacheBreak(path); + } + + AssetManifest.loadFromFile(path, rootPath).onComplete(function(manifest) + { + if (manifest == null) + { + promise.error("Cannot parse asset manifest for library \"" + id + "\""); + return; + } + + var library = AssetLibrary.fromManifest(manifest); + + if (library == null) + { + promise.error("Cannot open library \"" + id + "\""); + } + else + { + @:privateAccess + LimeAssets.libraries.set(id, library); + library.onChange.add(LimeAssets.onChange.dispatch); + promise.completeWith(Future.withValue(library)); + onComplete(); + } + }).onError(function(_) + { + promise.error("There is no asset library with an ID of \"" + id + "\""); + }); + // } + // #end + + return promise.future; + } +} + +class MultiCallback +{ + public var callback:Void->Void; + public var logId:String = null; + public var length(default, null) = 0; + public var numRemaining(default, null) = 0; + + var unfired = new MapVoid>(); + var fired = new Array(); + + public function new (callback:Void->Void, logId:String = null) + { + this.callback = callback; + this.logId = logId; + } + + public function add(id = "untitled") + { + id = '$length:$id'; + length++; + numRemaining++; + var func:Void->Void = null; + func = function () + { + if (unfired.exists(id)) + { + unfired.remove(id); + fired.push(id); + numRemaining--; + + if (logId != null) + log('fired $id, $numRemaining remaining'); + + if (numRemaining == 0) + { + if (logId != null) + log('all callbacks fired'); + callback(); + } + } + else + log('already fired $id'); + } + unfired[id] = func; + return func; + } + + inline function log(msg):Void + { + if (logId != null) + trace('$logId: $msg'); + } + + public function getFired() return fired.copy(); + public function getUnfired() return [for (id in unfired) id]; +} \ No newline at end of file diff --git a/source/NGio.hx b/source/NGio.hx index 96ced62..3cf18cd 100644 --- a/source/NGio.hx +++ b/source/NGio.hx @@ -41,7 +41,7 @@ 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; trace('CURRENT NG VERSION: ' + GAME_VER); gotOnlineVer = true; }); diff --git a/source/Paths.hx b/source/Paths.hx index 8ec0fc4..4e2094c 100644 --- a/source/Paths.hx +++ b/source/Paths.hx @@ -58,6 +58,16 @@ class Paths return getPath('music/$key.$SOUND_EXT', MUSIC); } + inline static public function voices(song:String) + { + return "songs:" + getPath('songs/${song.toLowerCase()}/Voices.$SOUND_EXT', MUSIC); + } + + inline static public function inst(song:String) + { + return "songs:" + getPath('songs/${song.toLowerCase()}/Inst.$SOUND_EXT', MUSIC); + } + inline static public function image(key:String) { return getPath('images/$key.png', IMAGE); diff --git a/source/PlayState.hx b/source/PlayState.hx index 733bc15..4514911 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -969,7 +969,7 @@ class PlayState extends MusicBeatState lastReportedPlayheadPosition = 0; if (!paused) - FlxG.sound.playMusic(Paths.music("Inst"), 1, false); + FlxG.sound.playMusic(Paths.inst(PlayState.SONG.song), 1, false); FlxG.sound.music.onComplete = endSong; vocals.play(); } @@ -986,7 +986,7 @@ class PlayState extends MusicBeatState curSong = songData.song; if (SONG.needsVoices) - vocals = new FlxSound().loadEmbedded(Paths.music("Voices")); + vocals = new FlxSound().loadEmbedded(Paths.voices(PlayState.SONG.song)); else vocals = new FlxSound(); @@ -1675,7 +1675,7 @@ class PlayState extends MusicBeatState PlayState.SONG = Song.loadFromJson(PlayState.storyPlaylist[0].toLowerCase() + difficulty, PlayState.storyPlaylist[0]); FlxG.sound.music.stop(); - FlxG.switchState(new PlayState()); + LoadingState.loadAndSwitchState(new PlayState()); transIn = FlxTransitionableState.defaultTransIn; transOut = FlxTransitionableState.defaultTransOut; diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index 73f2d2c..bd5f13e 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -313,9 +313,7 @@ class StoryMenuState extends MusicBeatState PlayState.campaignScore = 0; new FlxTimer().start(1, function(tmr:FlxTimer) { - if (FlxG.sound.music != null) - FlxG.sound.music.stop(); - FlxG.switchState(new PlayState()); + LoadingState.loadAndSwitchState(new PlayState(), true); }); } } From c4e5cbadd02f93530f9adb28695ac8b9abe4fdf9 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Wed, 10 Feb 2021 14:18:14 -0600 Subject: [PATCH 04/11] move files to weeks and load songs individually --- Project.xml | 56 +++-- assets/exclude/{ => music}/Monster.mp3 | Bin assets/exclude/{ => music}/Monster.ogg | Bin assets/exclude/{ => music}/Spookeez.mp3 | Bin assets/exclude/{ => music}/Spookeez.ogg | Bin assets/{preload => exclude}/music/title.mp3 | Bin assets/{preload => exclude}/music/title.ogg | Bin .../{preload => exclude}/music/titleShoot.mp3 | Bin .../{preload => exclude}/music/titleShoot.ogg | Bin .../sounds/freshIntro.mp3 | Bin .../sounds/freshIntro.ogg | Bin .../{preload => shared}/images/BOYFRIEND.png | Bin .../{preload => shared}/images/BOYFRIEND.xml | 0 .../images/DADDY_DEAREST.png | Bin .../images/DADDY_DEAREST.xml | 0 .../{preload => shared}/images/GF_assets.png | Bin .../{preload => shared}/images/GF_assets.xml | 0 .../images/NOTE_assets.png | Bin .../images/NOTE_assets.xml | 0 .../{preload => shared}/images/backspace.png | Bin .../{preload => shared}/images/backspace.xml | 0 assets/{preload => shared}/images/bad.png | Bin assets/{preload => shared}/images/bfCar.png | Bin assets/{preload => shared}/images/bfCar.xml | 0 assets/{preload => shared}/images/combo.png | Bin assets/{preload => shared}/images/gfCar.png | Bin assets/{preload => shared}/images/gfCar.xml | 0 assets/{preload => shared}/images/go.png | Bin assets/{preload => shared}/images/good.png | Bin assets/{preload => shared}/images/grafix.png | Bin .../{preload => shared}/images/healthBar.png | Bin .../{preload => shared}/images/iconGrid.png | Bin .../images/images-go-here.txt | 0 assets/{preload => shared}/images/lol.png | Bin assets/{preload => shared}/images/lose.png | Bin assets/{preload => shared}/images/lose.xml | 0 assets/{preload => shared}/images/momCar.png | Bin assets/{preload => shared}/images/momCar.xml | 0 assets/{preload => shared}/images/ready.png | Bin assets/{preload => shared}/images/restart.png | Bin .../images/screencapTierImage.png | Bin assets/{preload => shared}/images/set.png | Bin assets/{preload => shared}/images/shit.png | Bin assets/{preload => shared}/images/sick.png | Bin .../images/speech_bubble_talking.png | Bin .../images/speech_bubble_talking.xml | 0 .../images/stage_light.png | Bin .../{preload => shared}/images/stageback.png | Bin .../images/stagecurtains.png | Bin .../{preload => shared}/images/stagefront.png | Bin .../{preload => shared}/images/zzzzzzzz.png | Bin assets/{preload => shared}/sounds/ANGRY.mp3 | Bin assets/{preload => shared}/sounds/ANGRY.ogg | Bin .../sounds/ANGRY_TEXT_BOX.mp3 | Bin .../sounds/ANGRY_TEXT_BOX.ogg | Bin assets/{preload => shared}/sounds/GF_1.mp3 | Bin assets/{preload => shared}/sounds/GF_1.ogg | Bin assets/{preload => shared}/sounds/GF_2.mp3 | Bin assets/{preload => shared}/sounds/GF_2.ogg | Bin assets/{preload => shared}/sounds/GF_3.mp3 | Bin assets/{preload => shared}/sounds/GF_3.ogg | Bin assets/{preload => shared}/sounds/GF_4.mp3 | Bin assets/{preload => shared}/sounds/GF_4.ogg | Bin .../sounds/Lights_Shut_off.mp3 | Bin .../sounds/Lights_Shut_off.ogg | Bin .../sounds/Lights_Turn_On.mp3 | Bin .../sounds/Lights_Turn_On.ogg | Bin .../sounds/Senpai_Dies.mp3 | Bin .../sounds/Senpai_Dies.ogg | Bin .../{preload => shared}/sounds/badnoise1.mp3 | Bin .../{preload => shared}/sounds/badnoise1.ogg | Bin .../{preload => shared}/sounds/badnoise2.mp3 | Bin .../{preload => shared}/sounds/badnoise2.ogg | Bin .../{preload => shared}/sounds/badnoise3.mp3 | Bin .../{preload => shared}/sounds/badnoise3.ogg | Bin .../{preload => shared}/sounds/cancelMenu.mp3 | Bin .../{preload => shared}/sounds/cancelMenu.ogg | Bin .../{preload => shared}/sounds/carPass0.mp3 | Bin .../{preload => shared}/sounds/carPass0.ogg | Bin .../{preload => shared}/sounds/carPass1.mp3 | Bin .../{preload => shared}/sounds/carPass1.ogg | Bin .../{preload => shared}/sounds/clickText.mp3 | Bin .../{preload => shared}/sounds/clickText.ogg | Bin .../sounds/fnf_loss_sfx-pixel.mp3 | Bin .../sounds/fnf_loss_sfx-pixel.ogg | Bin .../sounds/fnf_loss_sfx.mp3 | Bin .../sounds/fnf_loss_sfx.ogg | Bin .../sounds/intro1-pixel.mp3 | Bin .../sounds/intro1-pixel.ogg | Bin assets/{preload => shared}/sounds/intro1.mp3 | Bin assets/{preload => shared}/sounds/intro1.ogg | Bin .../sounds/intro2-pixel.mp3 | Bin .../sounds/intro2-pixel.ogg | Bin assets/{preload => shared}/sounds/intro2.mp3 | Bin assets/{preload => shared}/sounds/intro2.ogg | Bin .../sounds/intro3-pixel.mp3 | Bin .../sounds/intro3-pixel.ogg | Bin assets/{preload => shared}/sounds/intro3.mp3 | Bin assets/{preload => shared}/sounds/intro3.ogg | Bin .../sounds/introGo-pixel.mp3 | Bin .../sounds/introGo-pixel.ogg | Bin assets/{preload => shared}/sounds/introGo.mp3 | Bin assets/{preload => shared}/sounds/introGo.ogg | Bin .../{preload => shared}/sounds/missnote1.mp3 | Bin .../{preload => shared}/sounds/missnote1.ogg | Bin .../{preload => shared}/sounds/missnote2.mp3 | Bin .../{preload => shared}/sounds/missnote2.ogg | Bin .../{preload => shared}/sounds/missnote3.mp3 | Bin .../{preload => shared}/sounds/missnote3.ogg | Bin .../{preload => shared}/sounds/pixelText.mp3 | Bin .../{preload => shared}/sounds/pixelText.ogg | Bin .../{preload => shared}/sounds/soundTest.mp3 | Bin .../{preload => shared}/sounds/soundTest.ogg | Bin .../sounds/sounds-go-here.txt | 0 .../{preload => shared}/sounds/thunder_1.mp3 | Bin .../{preload => shared}/sounds/thunder_1.ogg | Bin .../{preload => shared}/sounds/thunder_2.mp3 | Bin .../{preload => shared}/sounds/thunder_2.ogg | Bin .../sounds/train_passes.mp3 | Bin .../sounds/train_passes.ogg | Bin assets/tutorial/tutorial_stuff_here.txt | 0 assets/week1/week1_stuff_here.txt | 0 .../images/Monster_Assets.png | Bin .../images/Monster_Assets.xml | 0 .../images/halloween_bg.png | Bin .../images/halloween_bg.xml | 0 .../images/spooky_kids_assets.png | Bin .../images/spooky_kids_assets.xml | 0 assets/week2/week2_stuff_here.txt | 0 .../images/Pico_FNF_assetss.png | Bin .../images/Pico_FNF_assetss.xml | 0 .../images/philly/behindTrain.png | Bin .../{preload => week3}/images/philly/city.png | Bin .../{preload => week3}/images/philly/sky.png | Bin .../images/philly/street.png | Bin .../images/philly/train.png | Bin .../{preload => week3}/images/philly/win0.png | Bin .../{preload => week3}/images/philly/win1.png | Bin .../{preload => week3}/images/philly/win2.png | Bin .../{preload => week3}/images/philly/win3.png | Bin .../{preload => week3}/images/philly/win4.png | Bin assets/week3/week3_stuff_here.txt | 0 .../{preload => week4}/images/Mom_Assets.png | Bin .../{preload => week4}/images/Mom_Assets.xml | 0 .../{preload => week4}/images/limo/bgLimo.png | Bin .../{preload => week4}/images/limo/bgLimo.xml | 0 .../{preload => week4}/images/limo/dumb.png | Bin .../images/limo/fastCarLol.png | Bin .../images/limo/limoDancer.png | Bin .../images/limo/limoDancer.xml | 0 .../images/limo/limoDrive.png | Bin .../images/limo/limoDrive.xml | 0 .../images/limo/limoOverlay.png | Bin .../images/limo/limoSunset.png | Bin assets/week4/week4_stuff_here.txt | 0 .../images/christmas/bfChristmas.png | Bin .../images/christmas/bfChristmas.xml | 0 .../images/christmas/bgEscalator.png | Bin .../images/christmas/bgWalls.png | Bin .../images/christmas/bottomBop.png | Bin .../images/christmas/bottomBop.xml | 0 .../images/christmas/christmasTree.png | Bin .../images/christmas/christmasWall.png | Bin .../images/christmas/evilBG.png | Bin .../images/christmas/evilSnow.png | Bin .../images/christmas/evilTree.png | Bin .../images/christmas/fgSnow.png | Bin .../images/christmas/gfChristmas.png | Bin .../images/christmas/gfChristmas.xml | 0 .../christmas/mom_dad_christmas_assets.png | Bin .../christmas/mom_dad_christmas_assets.xml | 0 .../images/christmas/monsterChristmas.png | Bin .../images/christmas/monsterChristmas.xml | 0 .../images/christmas/santa.png | Bin .../images/christmas/santa.xml | 0 .../images/christmas/upperBop.png | Bin .../images/christmas/upperBop.xml | 0 assets/week5/week5_stuff_here.txt | 0 .../images/weeb/animatedEvilSchool.png | Bin .../images/weeb/animatedEvilSchool.xml | 0 .../images/weeb/bfPixel.png | Bin .../images/weeb/bfPixel.xml | 0 .../images/weeb/bfPixelsDEAD.png | Bin .../images/weeb/bfPixelsDEAD.xml | 0 .../images/weeb/bfPortrait.png | Bin .../images/weeb/bfPortrait.xml | 0 .../images/weeb/bgFreaks.png | Bin .../images/weeb/bgFreaks.xml | 0 .../images/weeb/evilSchoolBG.png | Bin .../images/weeb/evilSchoolFG.png | Bin .../images/weeb/gfPixel.png | Bin .../images/weeb/gfPixel.xml | 0 .../{preload => week6}/images/weeb/petals.png | Bin .../{preload => week6}/images/weeb/petals.xml | 0 .../images/weeb/pixelUI/arrowEnds.png | Bin .../images/weeb/pixelUI/arrows-pixels.png | Bin .../images/weeb/pixelUI/bad-pixel.png | Bin .../images/weeb/pixelUI/combo-pixel.png | Bin .../images/weeb/pixelUI/date-pixel.png | Bin .../images/weeb/pixelUI/dialogueBox-evil.png | Bin .../images/weeb/pixelUI/dialogueBox-evil.xml | 0 .../images/weeb/pixelUI/dialogueBox-pixel.png | Bin .../images/weeb/pixelUI/dialogueBox-pixel.xml | 0 .../weeb/pixelUI/dialogueBox-senpaiMad.png | Bin .../weeb/pixelUI/dialogueBox-senpaiMad.xml | 0 .../images/weeb/pixelUI/good-pixel.png | Bin .../images/weeb/pixelUI/hand_textbox.png | Bin .../images/weeb/pixelUI/num0-pixel.png | Bin .../images/weeb/pixelUI/num1-pixel.png | Bin .../images/weeb/pixelUI/num2-pixel.png | Bin .../images/weeb/pixelUI/num3-pixel.png | Bin .../images/weeb/pixelUI/num4-pixel.png | Bin .../images/weeb/pixelUI/num5-pixel.png | Bin .../images/weeb/pixelUI/num6-pixel.png | Bin .../images/weeb/pixelUI/num7-pixel.png | Bin .../images/weeb/pixelUI/num8-pixel.png | Bin .../images/weeb/pixelUI/num9-pixel.png | Bin .../images/weeb/pixelUI/ready-pixel.png | Bin .../images/weeb/pixelUI/set-pixel.png | Bin .../images/weeb/pixelUI/shit-pixel.png | Bin .../images/weeb/pixelUI/sick-pixel.png | Bin .../{preload => week6}/images/weeb/senpai.png | Bin .../{preload => week6}/images/weeb/senpai.xml | 0 .../images/weeb/senpaiCrazy.png | Bin .../images/weeb/senpaiCrazy.xml | 0 .../images/weeb/senpaiPortrait.png | Bin .../images/weeb/senpaiPortrait.xml | 0 .../{preload => week6}/images/weeb/spirit.png | Bin .../{preload => week6}/images/weeb/spirit.txt | 0 .../images/weeb/spiritFaceForward.png | Bin .../images/weeb/weebSchool.png | Bin .../images/weeb/weebSky.png | Bin .../images/weeb/weebStreet.png | Bin .../images/weeb/weebTrees.png | Bin .../images/weeb/weebTrees.txt | 0 .../images/weeb/weebTreesBack.png | Bin assets/{preload => week6}/music/Lunchbox.mp3 | Bin assets/{preload => week6}/music/Lunchbox.ogg | Bin .../music/LunchboxScary.mp3 | Bin .../music/LunchboxScary.ogg | Bin assets/week6/week6_stuff_here.txt | 0 source/ChartParser.hx | 2 +- source/ChartingState.hx | 4 +- source/DialogueBox.hx | 59 +++--- source/FreeplayState.hx | 8 +- source/LoadingState.hx | 193 ++++++++---------- source/Note.hx | 2 + source/OptionsMenu.hx | 2 +- source/Paths.hx | 30 ++- source/PlayState.hx | 33 ++- source/Song.hx | 2 +- source/StoryMenuState.hx | 2 +- source/TitleState.hx | 9 +- 253 files changed, 205 insertions(+), 197 deletions(-) rename assets/exclude/{ => music}/Monster.mp3 (100%) rename assets/exclude/{ => music}/Monster.ogg (100%) rename assets/exclude/{ => music}/Spookeez.mp3 (100%) rename assets/exclude/{ => music}/Spookeez.ogg (100%) rename assets/{preload => exclude}/music/title.mp3 (100%) rename assets/{preload => exclude}/music/title.ogg (100%) rename assets/{preload => exclude}/music/titleShoot.mp3 (100%) rename assets/{preload => exclude}/music/titleShoot.ogg (100%) rename assets/{preload => exclude}/sounds/freshIntro.mp3 (100%) rename assets/{preload => exclude}/sounds/freshIntro.ogg (100%) rename assets/{preload => shared}/images/BOYFRIEND.png (100%) rename assets/{preload => shared}/images/BOYFRIEND.xml (100%) rename assets/{preload => shared}/images/DADDY_DEAREST.png (100%) rename assets/{preload => shared}/images/DADDY_DEAREST.xml (100%) rename assets/{preload => shared}/images/GF_assets.png (100%) rename assets/{preload => shared}/images/GF_assets.xml (100%) rename assets/{preload => shared}/images/NOTE_assets.png (100%) rename assets/{preload => shared}/images/NOTE_assets.xml (100%) rename assets/{preload => shared}/images/backspace.png (100%) rename assets/{preload => shared}/images/backspace.xml (100%) rename assets/{preload => shared}/images/bad.png (100%) rename assets/{preload => shared}/images/bfCar.png (100%) rename assets/{preload => shared}/images/bfCar.xml (100%) rename assets/{preload => shared}/images/combo.png (100%) rename assets/{preload => shared}/images/gfCar.png (100%) rename assets/{preload => shared}/images/gfCar.xml (100%) rename assets/{preload => shared}/images/go.png (100%) rename assets/{preload => shared}/images/good.png (100%) rename assets/{preload => shared}/images/grafix.png (100%) rename assets/{preload => shared}/images/healthBar.png (100%) rename assets/{preload => shared}/images/iconGrid.png (100%) rename assets/{preload => shared}/images/images-go-here.txt (100%) rename assets/{preload => shared}/images/lol.png (100%) rename assets/{preload => shared}/images/lose.png (100%) rename assets/{preload => shared}/images/lose.xml (100%) rename assets/{preload => shared}/images/momCar.png (100%) rename assets/{preload => shared}/images/momCar.xml (100%) rename assets/{preload => shared}/images/ready.png (100%) rename assets/{preload => shared}/images/restart.png (100%) rename assets/{preload => shared}/images/screencapTierImage.png (100%) rename assets/{preload => shared}/images/set.png (100%) rename assets/{preload => shared}/images/shit.png (100%) rename assets/{preload => shared}/images/sick.png (100%) rename assets/{preload => shared}/images/speech_bubble_talking.png (100%) rename assets/{preload => shared}/images/speech_bubble_talking.xml (100%) rename assets/{preload => shared}/images/stage_light.png (100%) rename assets/{preload => shared}/images/stageback.png (100%) rename assets/{preload => shared}/images/stagecurtains.png (100%) rename assets/{preload => shared}/images/stagefront.png (100%) rename assets/{preload => shared}/images/zzzzzzzz.png (100%) rename assets/{preload => shared}/sounds/ANGRY.mp3 (100%) rename assets/{preload => shared}/sounds/ANGRY.ogg (100%) rename assets/{preload => shared}/sounds/ANGRY_TEXT_BOX.mp3 (100%) rename assets/{preload => shared}/sounds/ANGRY_TEXT_BOX.ogg (100%) rename assets/{preload => shared}/sounds/GF_1.mp3 (100%) rename assets/{preload => shared}/sounds/GF_1.ogg (100%) rename assets/{preload => shared}/sounds/GF_2.mp3 (100%) rename assets/{preload => shared}/sounds/GF_2.ogg (100%) rename assets/{preload => shared}/sounds/GF_3.mp3 (100%) rename assets/{preload => shared}/sounds/GF_3.ogg (100%) rename assets/{preload => shared}/sounds/GF_4.mp3 (100%) rename assets/{preload => shared}/sounds/GF_4.ogg (100%) rename assets/{preload => shared}/sounds/Lights_Shut_off.mp3 (100%) rename assets/{preload => shared}/sounds/Lights_Shut_off.ogg (100%) rename assets/{preload => shared}/sounds/Lights_Turn_On.mp3 (100%) rename assets/{preload => shared}/sounds/Lights_Turn_On.ogg (100%) rename assets/{preload => shared}/sounds/Senpai_Dies.mp3 (100%) rename assets/{preload => shared}/sounds/Senpai_Dies.ogg (100%) rename assets/{preload => shared}/sounds/badnoise1.mp3 (100%) rename assets/{preload => shared}/sounds/badnoise1.ogg (100%) rename assets/{preload => shared}/sounds/badnoise2.mp3 (100%) rename assets/{preload => shared}/sounds/badnoise2.ogg (100%) rename assets/{preload => shared}/sounds/badnoise3.mp3 (100%) rename assets/{preload => shared}/sounds/badnoise3.ogg (100%) rename assets/{preload => shared}/sounds/cancelMenu.mp3 (100%) rename assets/{preload => shared}/sounds/cancelMenu.ogg (100%) rename assets/{preload => shared}/sounds/carPass0.mp3 (100%) rename assets/{preload => shared}/sounds/carPass0.ogg (100%) rename assets/{preload => shared}/sounds/carPass1.mp3 (100%) rename assets/{preload => shared}/sounds/carPass1.ogg (100%) rename assets/{preload => shared}/sounds/clickText.mp3 (100%) rename assets/{preload => shared}/sounds/clickText.ogg (100%) rename assets/{preload => shared}/sounds/fnf_loss_sfx-pixel.mp3 (100%) rename assets/{preload => shared}/sounds/fnf_loss_sfx-pixel.ogg (100%) rename assets/{preload => shared}/sounds/fnf_loss_sfx.mp3 (100%) rename assets/{preload => shared}/sounds/fnf_loss_sfx.ogg (100%) rename assets/{preload => shared}/sounds/intro1-pixel.mp3 (100%) rename assets/{preload => shared}/sounds/intro1-pixel.ogg (100%) rename assets/{preload => shared}/sounds/intro1.mp3 (100%) rename assets/{preload => shared}/sounds/intro1.ogg (100%) rename assets/{preload => shared}/sounds/intro2-pixel.mp3 (100%) rename assets/{preload => shared}/sounds/intro2-pixel.ogg (100%) rename assets/{preload => shared}/sounds/intro2.mp3 (100%) rename assets/{preload => shared}/sounds/intro2.ogg (100%) rename assets/{preload => shared}/sounds/intro3-pixel.mp3 (100%) rename assets/{preload => shared}/sounds/intro3-pixel.ogg (100%) rename assets/{preload => shared}/sounds/intro3.mp3 (100%) rename assets/{preload => shared}/sounds/intro3.ogg (100%) rename assets/{preload => shared}/sounds/introGo-pixel.mp3 (100%) rename assets/{preload => shared}/sounds/introGo-pixel.ogg (100%) rename assets/{preload => shared}/sounds/introGo.mp3 (100%) rename assets/{preload => shared}/sounds/introGo.ogg (100%) rename assets/{preload => shared}/sounds/missnote1.mp3 (100%) rename assets/{preload => shared}/sounds/missnote1.ogg (100%) rename assets/{preload => shared}/sounds/missnote2.mp3 (100%) rename assets/{preload => shared}/sounds/missnote2.ogg (100%) rename assets/{preload => shared}/sounds/missnote3.mp3 (100%) rename assets/{preload => shared}/sounds/missnote3.ogg (100%) rename assets/{preload => shared}/sounds/pixelText.mp3 (100%) rename assets/{preload => shared}/sounds/pixelText.ogg (100%) rename assets/{preload => shared}/sounds/soundTest.mp3 (100%) rename assets/{preload => shared}/sounds/soundTest.ogg (100%) rename assets/{preload => shared}/sounds/sounds-go-here.txt (100%) rename assets/{preload => shared}/sounds/thunder_1.mp3 (100%) rename assets/{preload => shared}/sounds/thunder_1.ogg (100%) rename assets/{preload => shared}/sounds/thunder_2.mp3 (100%) rename assets/{preload => shared}/sounds/thunder_2.ogg (100%) rename assets/{preload => shared}/sounds/train_passes.mp3 (100%) rename assets/{preload => shared}/sounds/train_passes.ogg (100%) create mode 100644 assets/tutorial/tutorial_stuff_here.txt create mode 100644 assets/week1/week1_stuff_here.txt rename assets/{preload => week2}/images/Monster_Assets.png (100%) rename assets/{preload => week2}/images/Monster_Assets.xml (100%) rename assets/{preload => week2}/images/halloween_bg.png (100%) rename assets/{preload => week2}/images/halloween_bg.xml (100%) rename assets/{preload => week2}/images/spooky_kids_assets.png (100%) rename assets/{preload => week2}/images/spooky_kids_assets.xml (100%) create mode 100644 assets/week2/week2_stuff_here.txt rename assets/{preload => week3}/images/Pico_FNF_assetss.png (100%) rename assets/{preload => week3}/images/Pico_FNF_assetss.xml (100%) rename assets/{preload => week3}/images/philly/behindTrain.png (100%) rename assets/{preload => week3}/images/philly/city.png (100%) rename assets/{preload => week3}/images/philly/sky.png (100%) rename assets/{preload => week3}/images/philly/street.png (100%) rename assets/{preload => week3}/images/philly/train.png (100%) rename assets/{preload => week3}/images/philly/win0.png (100%) rename assets/{preload => week3}/images/philly/win1.png (100%) rename assets/{preload => week3}/images/philly/win2.png (100%) rename assets/{preload => week3}/images/philly/win3.png (100%) rename assets/{preload => week3}/images/philly/win4.png (100%) create mode 100644 assets/week3/week3_stuff_here.txt rename assets/{preload => week4}/images/Mom_Assets.png (100%) rename assets/{preload => week4}/images/Mom_Assets.xml (100%) rename assets/{preload => week4}/images/limo/bgLimo.png (100%) rename assets/{preload => week4}/images/limo/bgLimo.xml (100%) rename assets/{preload => week4}/images/limo/dumb.png (100%) rename assets/{preload => week4}/images/limo/fastCarLol.png (100%) rename assets/{preload => week4}/images/limo/limoDancer.png (100%) rename assets/{preload => week4}/images/limo/limoDancer.xml (100%) rename assets/{preload => week4}/images/limo/limoDrive.png (100%) rename assets/{preload => week4}/images/limo/limoDrive.xml (100%) rename assets/{preload => week4}/images/limo/limoOverlay.png (100%) rename assets/{preload => week4}/images/limo/limoSunset.png (100%) create mode 100644 assets/week4/week4_stuff_here.txt rename assets/{preload => week5}/images/christmas/bfChristmas.png (100%) rename assets/{preload => week5}/images/christmas/bfChristmas.xml (100%) rename assets/{preload => week5}/images/christmas/bgEscalator.png (100%) rename assets/{preload => week5}/images/christmas/bgWalls.png (100%) rename assets/{preload => week5}/images/christmas/bottomBop.png (100%) rename assets/{preload => week5}/images/christmas/bottomBop.xml (100%) rename assets/{preload => week5}/images/christmas/christmasTree.png (100%) rename assets/{preload => week5}/images/christmas/christmasWall.png (100%) rename assets/{preload => week5}/images/christmas/evilBG.png (100%) rename assets/{preload => week5}/images/christmas/evilSnow.png (100%) rename assets/{preload => week5}/images/christmas/evilTree.png (100%) rename assets/{preload => week5}/images/christmas/fgSnow.png (100%) rename assets/{preload => week5}/images/christmas/gfChristmas.png (100%) rename assets/{preload => week5}/images/christmas/gfChristmas.xml (100%) rename assets/{preload => week5}/images/christmas/mom_dad_christmas_assets.png (100%) rename assets/{preload => week5}/images/christmas/mom_dad_christmas_assets.xml (100%) rename assets/{preload => week5}/images/christmas/monsterChristmas.png (100%) rename assets/{preload => week5}/images/christmas/monsterChristmas.xml (100%) rename assets/{preload => week5}/images/christmas/santa.png (100%) rename assets/{preload => week5}/images/christmas/santa.xml (100%) rename assets/{preload => week5}/images/christmas/upperBop.png (100%) rename assets/{preload => week5}/images/christmas/upperBop.xml (100%) create mode 100644 assets/week5/week5_stuff_here.txt rename assets/{preload => week6}/images/weeb/animatedEvilSchool.png (100%) rename assets/{preload => week6}/images/weeb/animatedEvilSchool.xml (100%) rename assets/{preload => week6}/images/weeb/bfPixel.png (100%) rename assets/{preload => week6}/images/weeb/bfPixel.xml (100%) rename assets/{preload => week6}/images/weeb/bfPixelsDEAD.png (100%) rename assets/{preload => week6}/images/weeb/bfPixelsDEAD.xml (100%) rename assets/{preload => week6}/images/weeb/bfPortrait.png (100%) rename assets/{preload => week6}/images/weeb/bfPortrait.xml (100%) rename assets/{preload => week6}/images/weeb/bgFreaks.png (100%) rename assets/{preload => week6}/images/weeb/bgFreaks.xml (100%) rename assets/{preload => week6}/images/weeb/evilSchoolBG.png (100%) rename assets/{preload => week6}/images/weeb/evilSchoolFG.png (100%) rename assets/{preload => week6}/images/weeb/gfPixel.png (100%) rename assets/{preload => week6}/images/weeb/gfPixel.xml (100%) rename assets/{preload => week6}/images/weeb/petals.png (100%) rename assets/{preload => week6}/images/weeb/petals.xml (100%) rename assets/{preload => week6}/images/weeb/pixelUI/arrowEnds.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/arrows-pixels.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/bad-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/combo-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/date-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/dialogueBox-evil.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/dialogueBox-evil.xml (100%) rename assets/{preload => week6}/images/weeb/pixelUI/dialogueBox-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/dialogueBox-pixel.xml (100%) rename assets/{preload => week6}/images/weeb/pixelUI/dialogueBox-senpaiMad.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/dialogueBox-senpaiMad.xml (100%) rename assets/{preload => week6}/images/weeb/pixelUI/good-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/hand_textbox.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num0-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num1-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num2-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num3-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num4-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num5-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num6-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num7-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num8-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/num9-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/ready-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/set-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/shit-pixel.png (100%) rename assets/{preload => week6}/images/weeb/pixelUI/sick-pixel.png (100%) rename assets/{preload => week6}/images/weeb/senpai.png (100%) rename assets/{preload => week6}/images/weeb/senpai.xml (100%) rename assets/{preload => week6}/images/weeb/senpaiCrazy.png (100%) rename assets/{preload => week6}/images/weeb/senpaiCrazy.xml (100%) rename assets/{preload => week6}/images/weeb/senpaiPortrait.png (100%) rename assets/{preload => week6}/images/weeb/senpaiPortrait.xml (100%) rename assets/{preload => week6}/images/weeb/spirit.png (100%) rename assets/{preload => week6}/images/weeb/spirit.txt (100%) rename assets/{preload => week6}/images/weeb/spiritFaceForward.png (100%) rename assets/{preload => week6}/images/weeb/weebSchool.png (100%) rename assets/{preload => week6}/images/weeb/weebSky.png (100%) rename assets/{preload => week6}/images/weeb/weebStreet.png (100%) rename assets/{preload => week6}/images/weeb/weebTrees.png (100%) rename assets/{preload => week6}/images/weeb/weebTrees.txt (100%) rename assets/{preload => week6}/images/weeb/weebTreesBack.png (100%) rename assets/{preload => week6}/music/Lunchbox.mp3 (100%) rename assets/{preload => week6}/music/Lunchbox.ogg (100%) rename assets/{preload => week6}/music/LunchboxScary.mp3 (100%) rename assets/{preload => week6}/music/LunchboxScary.ogg (100%) create mode 100644 assets/week6/week6_stuff_here.txt diff --git a/Project.xml b/Project.xml index 80f5bc7..9215a21 100644 --- a/Project.xml +++ b/Project.xml @@ -40,42 +40,56 @@ - - + + + + + + + + + - - - - - + + - + + + + + + + - + - + - + - + - - - + @@ -101,7 +115,7 @@ - + diff --git a/assets/exclude/Monster.mp3 b/assets/exclude/music/Monster.mp3 similarity index 100% rename from assets/exclude/Monster.mp3 rename to assets/exclude/music/Monster.mp3 diff --git a/assets/exclude/Monster.ogg b/assets/exclude/music/Monster.ogg similarity index 100% rename from assets/exclude/Monster.ogg rename to assets/exclude/music/Monster.ogg diff --git a/assets/exclude/Spookeez.mp3 b/assets/exclude/music/Spookeez.mp3 similarity index 100% rename from assets/exclude/Spookeez.mp3 rename to assets/exclude/music/Spookeez.mp3 diff --git a/assets/exclude/Spookeez.ogg b/assets/exclude/music/Spookeez.ogg similarity index 100% rename from assets/exclude/Spookeez.ogg rename to assets/exclude/music/Spookeez.ogg diff --git a/assets/preload/music/title.mp3 b/assets/exclude/music/title.mp3 similarity index 100% rename from assets/preload/music/title.mp3 rename to assets/exclude/music/title.mp3 diff --git a/assets/preload/music/title.ogg b/assets/exclude/music/title.ogg similarity index 100% rename from assets/preload/music/title.ogg rename to assets/exclude/music/title.ogg diff --git a/assets/preload/music/titleShoot.mp3 b/assets/exclude/music/titleShoot.mp3 similarity index 100% rename from assets/preload/music/titleShoot.mp3 rename to assets/exclude/music/titleShoot.mp3 diff --git a/assets/preload/music/titleShoot.ogg b/assets/exclude/music/titleShoot.ogg similarity index 100% rename from assets/preload/music/titleShoot.ogg rename to assets/exclude/music/titleShoot.ogg diff --git a/assets/preload/sounds/freshIntro.mp3 b/assets/exclude/sounds/freshIntro.mp3 similarity index 100% rename from assets/preload/sounds/freshIntro.mp3 rename to assets/exclude/sounds/freshIntro.mp3 diff --git a/assets/preload/sounds/freshIntro.ogg b/assets/exclude/sounds/freshIntro.ogg similarity index 100% rename from assets/preload/sounds/freshIntro.ogg rename to assets/exclude/sounds/freshIntro.ogg diff --git a/assets/preload/images/BOYFRIEND.png b/assets/shared/images/BOYFRIEND.png similarity index 100% rename from assets/preload/images/BOYFRIEND.png rename to assets/shared/images/BOYFRIEND.png diff --git a/assets/preload/images/BOYFRIEND.xml b/assets/shared/images/BOYFRIEND.xml similarity index 100% rename from assets/preload/images/BOYFRIEND.xml rename to assets/shared/images/BOYFRIEND.xml diff --git a/assets/preload/images/DADDY_DEAREST.png b/assets/shared/images/DADDY_DEAREST.png similarity index 100% rename from assets/preload/images/DADDY_DEAREST.png rename to assets/shared/images/DADDY_DEAREST.png diff --git a/assets/preload/images/DADDY_DEAREST.xml b/assets/shared/images/DADDY_DEAREST.xml similarity index 100% rename from assets/preload/images/DADDY_DEAREST.xml rename to assets/shared/images/DADDY_DEAREST.xml diff --git a/assets/preload/images/GF_assets.png b/assets/shared/images/GF_assets.png similarity index 100% rename from assets/preload/images/GF_assets.png rename to assets/shared/images/GF_assets.png diff --git a/assets/preload/images/GF_assets.xml b/assets/shared/images/GF_assets.xml similarity index 100% rename from assets/preload/images/GF_assets.xml rename to assets/shared/images/GF_assets.xml diff --git a/assets/preload/images/NOTE_assets.png b/assets/shared/images/NOTE_assets.png similarity index 100% rename from assets/preload/images/NOTE_assets.png rename to assets/shared/images/NOTE_assets.png diff --git a/assets/preload/images/NOTE_assets.xml b/assets/shared/images/NOTE_assets.xml similarity index 100% rename from assets/preload/images/NOTE_assets.xml rename to assets/shared/images/NOTE_assets.xml diff --git a/assets/preload/images/backspace.png b/assets/shared/images/backspace.png similarity index 100% rename from assets/preload/images/backspace.png rename to assets/shared/images/backspace.png diff --git a/assets/preload/images/backspace.xml b/assets/shared/images/backspace.xml similarity index 100% rename from assets/preload/images/backspace.xml rename to assets/shared/images/backspace.xml diff --git a/assets/preload/images/bad.png b/assets/shared/images/bad.png similarity index 100% rename from assets/preload/images/bad.png rename to assets/shared/images/bad.png diff --git a/assets/preload/images/bfCar.png b/assets/shared/images/bfCar.png similarity index 100% rename from assets/preload/images/bfCar.png rename to assets/shared/images/bfCar.png diff --git a/assets/preload/images/bfCar.xml b/assets/shared/images/bfCar.xml similarity index 100% rename from assets/preload/images/bfCar.xml rename to assets/shared/images/bfCar.xml diff --git a/assets/preload/images/combo.png b/assets/shared/images/combo.png similarity index 100% rename from assets/preload/images/combo.png rename to assets/shared/images/combo.png diff --git a/assets/preload/images/gfCar.png b/assets/shared/images/gfCar.png similarity index 100% rename from assets/preload/images/gfCar.png rename to assets/shared/images/gfCar.png diff --git a/assets/preload/images/gfCar.xml b/assets/shared/images/gfCar.xml similarity index 100% rename from assets/preload/images/gfCar.xml rename to assets/shared/images/gfCar.xml diff --git a/assets/preload/images/go.png b/assets/shared/images/go.png similarity index 100% rename from assets/preload/images/go.png rename to assets/shared/images/go.png diff --git a/assets/preload/images/good.png b/assets/shared/images/good.png similarity index 100% rename from assets/preload/images/good.png rename to assets/shared/images/good.png diff --git a/assets/preload/images/grafix.png b/assets/shared/images/grafix.png similarity index 100% rename from assets/preload/images/grafix.png rename to assets/shared/images/grafix.png diff --git a/assets/preload/images/healthBar.png b/assets/shared/images/healthBar.png similarity index 100% rename from assets/preload/images/healthBar.png rename to assets/shared/images/healthBar.png diff --git a/assets/preload/images/iconGrid.png b/assets/shared/images/iconGrid.png similarity index 100% rename from assets/preload/images/iconGrid.png rename to assets/shared/images/iconGrid.png diff --git a/assets/preload/images/images-go-here.txt b/assets/shared/images/images-go-here.txt similarity index 100% rename from assets/preload/images/images-go-here.txt rename to assets/shared/images/images-go-here.txt diff --git a/assets/preload/images/lol.png b/assets/shared/images/lol.png similarity index 100% rename from assets/preload/images/lol.png rename to assets/shared/images/lol.png diff --git a/assets/preload/images/lose.png b/assets/shared/images/lose.png similarity index 100% rename from assets/preload/images/lose.png rename to assets/shared/images/lose.png diff --git a/assets/preload/images/lose.xml b/assets/shared/images/lose.xml similarity index 100% rename from assets/preload/images/lose.xml rename to assets/shared/images/lose.xml diff --git a/assets/preload/images/momCar.png b/assets/shared/images/momCar.png similarity index 100% rename from assets/preload/images/momCar.png rename to assets/shared/images/momCar.png diff --git a/assets/preload/images/momCar.xml b/assets/shared/images/momCar.xml similarity index 100% rename from assets/preload/images/momCar.xml rename to assets/shared/images/momCar.xml diff --git a/assets/preload/images/ready.png b/assets/shared/images/ready.png similarity index 100% rename from assets/preload/images/ready.png rename to assets/shared/images/ready.png diff --git a/assets/preload/images/restart.png b/assets/shared/images/restart.png similarity index 100% rename from assets/preload/images/restart.png rename to assets/shared/images/restart.png diff --git a/assets/preload/images/screencapTierImage.png b/assets/shared/images/screencapTierImage.png similarity index 100% rename from assets/preload/images/screencapTierImage.png rename to assets/shared/images/screencapTierImage.png diff --git a/assets/preload/images/set.png b/assets/shared/images/set.png similarity index 100% rename from assets/preload/images/set.png rename to assets/shared/images/set.png diff --git a/assets/preload/images/shit.png b/assets/shared/images/shit.png similarity index 100% rename from assets/preload/images/shit.png rename to assets/shared/images/shit.png diff --git a/assets/preload/images/sick.png b/assets/shared/images/sick.png similarity index 100% rename from assets/preload/images/sick.png rename to assets/shared/images/sick.png diff --git a/assets/preload/images/speech_bubble_talking.png b/assets/shared/images/speech_bubble_talking.png similarity index 100% rename from assets/preload/images/speech_bubble_talking.png rename to assets/shared/images/speech_bubble_talking.png diff --git a/assets/preload/images/speech_bubble_talking.xml b/assets/shared/images/speech_bubble_talking.xml similarity index 100% rename from assets/preload/images/speech_bubble_talking.xml rename to assets/shared/images/speech_bubble_talking.xml diff --git a/assets/preload/images/stage_light.png b/assets/shared/images/stage_light.png similarity index 100% rename from assets/preload/images/stage_light.png rename to assets/shared/images/stage_light.png diff --git a/assets/preload/images/stageback.png b/assets/shared/images/stageback.png similarity index 100% rename from assets/preload/images/stageback.png rename to assets/shared/images/stageback.png diff --git a/assets/preload/images/stagecurtains.png b/assets/shared/images/stagecurtains.png similarity index 100% rename from assets/preload/images/stagecurtains.png rename to assets/shared/images/stagecurtains.png diff --git a/assets/preload/images/stagefront.png b/assets/shared/images/stagefront.png similarity index 100% rename from assets/preload/images/stagefront.png rename to assets/shared/images/stagefront.png diff --git a/assets/preload/images/zzzzzzzz.png b/assets/shared/images/zzzzzzzz.png similarity index 100% rename from assets/preload/images/zzzzzzzz.png rename to assets/shared/images/zzzzzzzz.png diff --git a/assets/preload/sounds/ANGRY.mp3 b/assets/shared/sounds/ANGRY.mp3 similarity index 100% rename from assets/preload/sounds/ANGRY.mp3 rename to assets/shared/sounds/ANGRY.mp3 diff --git a/assets/preload/sounds/ANGRY.ogg b/assets/shared/sounds/ANGRY.ogg similarity index 100% rename from assets/preload/sounds/ANGRY.ogg rename to assets/shared/sounds/ANGRY.ogg diff --git a/assets/preload/sounds/ANGRY_TEXT_BOX.mp3 b/assets/shared/sounds/ANGRY_TEXT_BOX.mp3 similarity index 100% rename from assets/preload/sounds/ANGRY_TEXT_BOX.mp3 rename to assets/shared/sounds/ANGRY_TEXT_BOX.mp3 diff --git a/assets/preload/sounds/ANGRY_TEXT_BOX.ogg b/assets/shared/sounds/ANGRY_TEXT_BOX.ogg similarity index 100% rename from assets/preload/sounds/ANGRY_TEXT_BOX.ogg rename to assets/shared/sounds/ANGRY_TEXT_BOX.ogg diff --git a/assets/preload/sounds/GF_1.mp3 b/assets/shared/sounds/GF_1.mp3 similarity index 100% rename from assets/preload/sounds/GF_1.mp3 rename to assets/shared/sounds/GF_1.mp3 diff --git a/assets/preload/sounds/GF_1.ogg b/assets/shared/sounds/GF_1.ogg similarity index 100% rename from assets/preload/sounds/GF_1.ogg rename to assets/shared/sounds/GF_1.ogg diff --git a/assets/preload/sounds/GF_2.mp3 b/assets/shared/sounds/GF_2.mp3 similarity index 100% rename from assets/preload/sounds/GF_2.mp3 rename to assets/shared/sounds/GF_2.mp3 diff --git a/assets/preload/sounds/GF_2.ogg b/assets/shared/sounds/GF_2.ogg similarity index 100% rename from assets/preload/sounds/GF_2.ogg rename to assets/shared/sounds/GF_2.ogg diff --git a/assets/preload/sounds/GF_3.mp3 b/assets/shared/sounds/GF_3.mp3 similarity index 100% rename from assets/preload/sounds/GF_3.mp3 rename to assets/shared/sounds/GF_3.mp3 diff --git a/assets/preload/sounds/GF_3.ogg b/assets/shared/sounds/GF_3.ogg similarity index 100% rename from assets/preload/sounds/GF_3.ogg rename to assets/shared/sounds/GF_3.ogg diff --git a/assets/preload/sounds/GF_4.mp3 b/assets/shared/sounds/GF_4.mp3 similarity index 100% rename from assets/preload/sounds/GF_4.mp3 rename to assets/shared/sounds/GF_4.mp3 diff --git a/assets/preload/sounds/GF_4.ogg b/assets/shared/sounds/GF_4.ogg similarity index 100% rename from assets/preload/sounds/GF_4.ogg rename to assets/shared/sounds/GF_4.ogg diff --git a/assets/preload/sounds/Lights_Shut_off.mp3 b/assets/shared/sounds/Lights_Shut_off.mp3 similarity index 100% rename from assets/preload/sounds/Lights_Shut_off.mp3 rename to assets/shared/sounds/Lights_Shut_off.mp3 diff --git a/assets/preload/sounds/Lights_Shut_off.ogg b/assets/shared/sounds/Lights_Shut_off.ogg similarity index 100% rename from assets/preload/sounds/Lights_Shut_off.ogg rename to assets/shared/sounds/Lights_Shut_off.ogg diff --git a/assets/preload/sounds/Lights_Turn_On.mp3 b/assets/shared/sounds/Lights_Turn_On.mp3 similarity index 100% rename from assets/preload/sounds/Lights_Turn_On.mp3 rename to assets/shared/sounds/Lights_Turn_On.mp3 diff --git a/assets/preload/sounds/Lights_Turn_On.ogg b/assets/shared/sounds/Lights_Turn_On.ogg similarity index 100% rename from assets/preload/sounds/Lights_Turn_On.ogg rename to assets/shared/sounds/Lights_Turn_On.ogg diff --git a/assets/preload/sounds/Senpai_Dies.mp3 b/assets/shared/sounds/Senpai_Dies.mp3 similarity index 100% rename from assets/preload/sounds/Senpai_Dies.mp3 rename to assets/shared/sounds/Senpai_Dies.mp3 diff --git a/assets/preload/sounds/Senpai_Dies.ogg b/assets/shared/sounds/Senpai_Dies.ogg similarity index 100% rename from assets/preload/sounds/Senpai_Dies.ogg rename to assets/shared/sounds/Senpai_Dies.ogg diff --git a/assets/preload/sounds/badnoise1.mp3 b/assets/shared/sounds/badnoise1.mp3 similarity index 100% rename from assets/preload/sounds/badnoise1.mp3 rename to assets/shared/sounds/badnoise1.mp3 diff --git a/assets/preload/sounds/badnoise1.ogg b/assets/shared/sounds/badnoise1.ogg similarity index 100% rename from assets/preload/sounds/badnoise1.ogg rename to assets/shared/sounds/badnoise1.ogg diff --git a/assets/preload/sounds/badnoise2.mp3 b/assets/shared/sounds/badnoise2.mp3 similarity index 100% rename from assets/preload/sounds/badnoise2.mp3 rename to assets/shared/sounds/badnoise2.mp3 diff --git a/assets/preload/sounds/badnoise2.ogg b/assets/shared/sounds/badnoise2.ogg similarity index 100% rename from assets/preload/sounds/badnoise2.ogg rename to assets/shared/sounds/badnoise2.ogg diff --git a/assets/preload/sounds/badnoise3.mp3 b/assets/shared/sounds/badnoise3.mp3 similarity index 100% rename from assets/preload/sounds/badnoise3.mp3 rename to assets/shared/sounds/badnoise3.mp3 diff --git a/assets/preload/sounds/badnoise3.ogg b/assets/shared/sounds/badnoise3.ogg similarity index 100% rename from assets/preload/sounds/badnoise3.ogg rename to assets/shared/sounds/badnoise3.ogg diff --git a/assets/preload/sounds/cancelMenu.mp3 b/assets/shared/sounds/cancelMenu.mp3 similarity index 100% rename from assets/preload/sounds/cancelMenu.mp3 rename to assets/shared/sounds/cancelMenu.mp3 diff --git a/assets/preload/sounds/cancelMenu.ogg b/assets/shared/sounds/cancelMenu.ogg similarity index 100% rename from assets/preload/sounds/cancelMenu.ogg rename to assets/shared/sounds/cancelMenu.ogg diff --git a/assets/preload/sounds/carPass0.mp3 b/assets/shared/sounds/carPass0.mp3 similarity index 100% rename from assets/preload/sounds/carPass0.mp3 rename to assets/shared/sounds/carPass0.mp3 diff --git a/assets/preload/sounds/carPass0.ogg b/assets/shared/sounds/carPass0.ogg similarity index 100% rename from assets/preload/sounds/carPass0.ogg rename to assets/shared/sounds/carPass0.ogg diff --git a/assets/preload/sounds/carPass1.mp3 b/assets/shared/sounds/carPass1.mp3 similarity index 100% rename from assets/preload/sounds/carPass1.mp3 rename to assets/shared/sounds/carPass1.mp3 diff --git a/assets/preload/sounds/carPass1.ogg b/assets/shared/sounds/carPass1.ogg similarity index 100% rename from assets/preload/sounds/carPass1.ogg rename to assets/shared/sounds/carPass1.ogg diff --git a/assets/preload/sounds/clickText.mp3 b/assets/shared/sounds/clickText.mp3 similarity index 100% rename from assets/preload/sounds/clickText.mp3 rename to assets/shared/sounds/clickText.mp3 diff --git a/assets/preload/sounds/clickText.ogg b/assets/shared/sounds/clickText.ogg similarity index 100% rename from assets/preload/sounds/clickText.ogg rename to assets/shared/sounds/clickText.ogg diff --git a/assets/preload/sounds/fnf_loss_sfx-pixel.mp3 b/assets/shared/sounds/fnf_loss_sfx-pixel.mp3 similarity index 100% rename from assets/preload/sounds/fnf_loss_sfx-pixel.mp3 rename to assets/shared/sounds/fnf_loss_sfx-pixel.mp3 diff --git a/assets/preload/sounds/fnf_loss_sfx-pixel.ogg b/assets/shared/sounds/fnf_loss_sfx-pixel.ogg similarity index 100% rename from assets/preload/sounds/fnf_loss_sfx-pixel.ogg rename to assets/shared/sounds/fnf_loss_sfx-pixel.ogg diff --git a/assets/preload/sounds/fnf_loss_sfx.mp3 b/assets/shared/sounds/fnf_loss_sfx.mp3 similarity index 100% rename from assets/preload/sounds/fnf_loss_sfx.mp3 rename to assets/shared/sounds/fnf_loss_sfx.mp3 diff --git a/assets/preload/sounds/fnf_loss_sfx.ogg b/assets/shared/sounds/fnf_loss_sfx.ogg similarity index 100% rename from assets/preload/sounds/fnf_loss_sfx.ogg rename to assets/shared/sounds/fnf_loss_sfx.ogg diff --git a/assets/preload/sounds/intro1-pixel.mp3 b/assets/shared/sounds/intro1-pixel.mp3 similarity index 100% rename from assets/preload/sounds/intro1-pixel.mp3 rename to assets/shared/sounds/intro1-pixel.mp3 diff --git a/assets/preload/sounds/intro1-pixel.ogg b/assets/shared/sounds/intro1-pixel.ogg similarity index 100% rename from assets/preload/sounds/intro1-pixel.ogg rename to assets/shared/sounds/intro1-pixel.ogg diff --git a/assets/preload/sounds/intro1.mp3 b/assets/shared/sounds/intro1.mp3 similarity index 100% rename from assets/preload/sounds/intro1.mp3 rename to assets/shared/sounds/intro1.mp3 diff --git a/assets/preload/sounds/intro1.ogg b/assets/shared/sounds/intro1.ogg similarity index 100% rename from assets/preload/sounds/intro1.ogg rename to assets/shared/sounds/intro1.ogg diff --git a/assets/preload/sounds/intro2-pixel.mp3 b/assets/shared/sounds/intro2-pixel.mp3 similarity index 100% rename from assets/preload/sounds/intro2-pixel.mp3 rename to assets/shared/sounds/intro2-pixel.mp3 diff --git a/assets/preload/sounds/intro2-pixel.ogg b/assets/shared/sounds/intro2-pixel.ogg similarity index 100% rename from assets/preload/sounds/intro2-pixel.ogg rename to assets/shared/sounds/intro2-pixel.ogg diff --git a/assets/preload/sounds/intro2.mp3 b/assets/shared/sounds/intro2.mp3 similarity index 100% rename from assets/preload/sounds/intro2.mp3 rename to assets/shared/sounds/intro2.mp3 diff --git a/assets/preload/sounds/intro2.ogg b/assets/shared/sounds/intro2.ogg similarity index 100% rename from assets/preload/sounds/intro2.ogg rename to assets/shared/sounds/intro2.ogg diff --git a/assets/preload/sounds/intro3-pixel.mp3 b/assets/shared/sounds/intro3-pixel.mp3 similarity index 100% rename from assets/preload/sounds/intro3-pixel.mp3 rename to assets/shared/sounds/intro3-pixel.mp3 diff --git a/assets/preload/sounds/intro3-pixel.ogg b/assets/shared/sounds/intro3-pixel.ogg similarity index 100% rename from assets/preload/sounds/intro3-pixel.ogg rename to assets/shared/sounds/intro3-pixel.ogg diff --git a/assets/preload/sounds/intro3.mp3 b/assets/shared/sounds/intro3.mp3 similarity index 100% rename from assets/preload/sounds/intro3.mp3 rename to assets/shared/sounds/intro3.mp3 diff --git a/assets/preload/sounds/intro3.ogg b/assets/shared/sounds/intro3.ogg similarity index 100% rename from assets/preload/sounds/intro3.ogg rename to assets/shared/sounds/intro3.ogg diff --git a/assets/preload/sounds/introGo-pixel.mp3 b/assets/shared/sounds/introGo-pixel.mp3 similarity index 100% rename from assets/preload/sounds/introGo-pixel.mp3 rename to assets/shared/sounds/introGo-pixel.mp3 diff --git a/assets/preload/sounds/introGo-pixel.ogg b/assets/shared/sounds/introGo-pixel.ogg similarity index 100% rename from assets/preload/sounds/introGo-pixel.ogg rename to assets/shared/sounds/introGo-pixel.ogg diff --git a/assets/preload/sounds/introGo.mp3 b/assets/shared/sounds/introGo.mp3 similarity index 100% rename from assets/preload/sounds/introGo.mp3 rename to assets/shared/sounds/introGo.mp3 diff --git a/assets/preload/sounds/introGo.ogg b/assets/shared/sounds/introGo.ogg similarity index 100% rename from assets/preload/sounds/introGo.ogg rename to assets/shared/sounds/introGo.ogg diff --git a/assets/preload/sounds/missnote1.mp3 b/assets/shared/sounds/missnote1.mp3 similarity index 100% rename from assets/preload/sounds/missnote1.mp3 rename to assets/shared/sounds/missnote1.mp3 diff --git a/assets/preload/sounds/missnote1.ogg b/assets/shared/sounds/missnote1.ogg similarity index 100% rename from assets/preload/sounds/missnote1.ogg rename to assets/shared/sounds/missnote1.ogg diff --git a/assets/preload/sounds/missnote2.mp3 b/assets/shared/sounds/missnote2.mp3 similarity index 100% rename from assets/preload/sounds/missnote2.mp3 rename to assets/shared/sounds/missnote2.mp3 diff --git a/assets/preload/sounds/missnote2.ogg b/assets/shared/sounds/missnote2.ogg similarity index 100% rename from assets/preload/sounds/missnote2.ogg rename to assets/shared/sounds/missnote2.ogg diff --git a/assets/preload/sounds/missnote3.mp3 b/assets/shared/sounds/missnote3.mp3 similarity index 100% rename from assets/preload/sounds/missnote3.mp3 rename to assets/shared/sounds/missnote3.mp3 diff --git a/assets/preload/sounds/missnote3.ogg b/assets/shared/sounds/missnote3.ogg similarity index 100% rename from assets/preload/sounds/missnote3.ogg rename to assets/shared/sounds/missnote3.ogg diff --git a/assets/preload/sounds/pixelText.mp3 b/assets/shared/sounds/pixelText.mp3 similarity index 100% rename from assets/preload/sounds/pixelText.mp3 rename to assets/shared/sounds/pixelText.mp3 diff --git a/assets/preload/sounds/pixelText.ogg b/assets/shared/sounds/pixelText.ogg similarity index 100% rename from assets/preload/sounds/pixelText.ogg rename to assets/shared/sounds/pixelText.ogg diff --git a/assets/preload/sounds/soundTest.mp3 b/assets/shared/sounds/soundTest.mp3 similarity index 100% rename from assets/preload/sounds/soundTest.mp3 rename to assets/shared/sounds/soundTest.mp3 diff --git a/assets/preload/sounds/soundTest.ogg b/assets/shared/sounds/soundTest.ogg similarity index 100% rename from assets/preload/sounds/soundTest.ogg rename to assets/shared/sounds/soundTest.ogg diff --git a/assets/preload/sounds/sounds-go-here.txt b/assets/shared/sounds/sounds-go-here.txt similarity index 100% rename from assets/preload/sounds/sounds-go-here.txt rename to assets/shared/sounds/sounds-go-here.txt diff --git a/assets/preload/sounds/thunder_1.mp3 b/assets/shared/sounds/thunder_1.mp3 similarity index 100% rename from assets/preload/sounds/thunder_1.mp3 rename to assets/shared/sounds/thunder_1.mp3 diff --git a/assets/preload/sounds/thunder_1.ogg b/assets/shared/sounds/thunder_1.ogg similarity index 100% rename from assets/preload/sounds/thunder_1.ogg rename to assets/shared/sounds/thunder_1.ogg diff --git a/assets/preload/sounds/thunder_2.mp3 b/assets/shared/sounds/thunder_2.mp3 similarity index 100% rename from assets/preload/sounds/thunder_2.mp3 rename to assets/shared/sounds/thunder_2.mp3 diff --git a/assets/preload/sounds/thunder_2.ogg b/assets/shared/sounds/thunder_2.ogg similarity index 100% rename from assets/preload/sounds/thunder_2.ogg rename to assets/shared/sounds/thunder_2.ogg diff --git a/assets/preload/sounds/train_passes.mp3 b/assets/shared/sounds/train_passes.mp3 similarity index 100% rename from assets/preload/sounds/train_passes.mp3 rename to assets/shared/sounds/train_passes.mp3 diff --git a/assets/preload/sounds/train_passes.ogg b/assets/shared/sounds/train_passes.ogg similarity index 100% rename from assets/preload/sounds/train_passes.ogg rename to assets/shared/sounds/train_passes.ogg diff --git a/assets/tutorial/tutorial_stuff_here.txt b/assets/tutorial/tutorial_stuff_here.txt new file mode 100644 index 0000000..e69de29 diff --git a/assets/week1/week1_stuff_here.txt b/assets/week1/week1_stuff_here.txt new file mode 100644 index 0000000..e69de29 diff --git a/assets/preload/images/Monster_Assets.png b/assets/week2/images/Monster_Assets.png similarity index 100% rename from assets/preload/images/Monster_Assets.png rename to assets/week2/images/Monster_Assets.png diff --git a/assets/preload/images/Monster_Assets.xml b/assets/week2/images/Monster_Assets.xml similarity index 100% rename from assets/preload/images/Monster_Assets.xml rename to assets/week2/images/Monster_Assets.xml diff --git a/assets/preload/images/halloween_bg.png b/assets/week2/images/halloween_bg.png similarity index 100% rename from assets/preload/images/halloween_bg.png rename to assets/week2/images/halloween_bg.png diff --git a/assets/preload/images/halloween_bg.xml b/assets/week2/images/halloween_bg.xml similarity index 100% rename from assets/preload/images/halloween_bg.xml rename to assets/week2/images/halloween_bg.xml diff --git a/assets/preload/images/spooky_kids_assets.png b/assets/week2/images/spooky_kids_assets.png similarity index 100% rename from assets/preload/images/spooky_kids_assets.png rename to assets/week2/images/spooky_kids_assets.png diff --git a/assets/preload/images/spooky_kids_assets.xml b/assets/week2/images/spooky_kids_assets.xml similarity index 100% rename from assets/preload/images/spooky_kids_assets.xml rename to assets/week2/images/spooky_kids_assets.xml diff --git a/assets/week2/week2_stuff_here.txt b/assets/week2/week2_stuff_here.txt new file mode 100644 index 0000000..e69de29 diff --git a/assets/preload/images/Pico_FNF_assetss.png b/assets/week3/images/Pico_FNF_assetss.png similarity index 100% rename from assets/preload/images/Pico_FNF_assetss.png rename to assets/week3/images/Pico_FNF_assetss.png diff --git a/assets/preload/images/Pico_FNF_assetss.xml b/assets/week3/images/Pico_FNF_assetss.xml similarity index 100% rename from assets/preload/images/Pico_FNF_assetss.xml rename to assets/week3/images/Pico_FNF_assetss.xml diff --git a/assets/preload/images/philly/behindTrain.png b/assets/week3/images/philly/behindTrain.png similarity index 100% rename from assets/preload/images/philly/behindTrain.png rename to assets/week3/images/philly/behindTrain.png diff --git a/assets/preload/images/philly/city.png b/assets/week3/images/philly/city.png similarity index 100% rename from assets/preload/images/philly/city.png rename to assets/week3/images/philly/city.png diff --git a/assets/preload/images/philly/sky.png b/assets/week3/images/philly/sky.png similarity index 100% rename from assets/preload/images/philly/sky.png rename to assets/week3/images/philly/sky.png diff --git a/assets/preload/images/philly/street.png b/assets/week3/images/philly/street.png similarity index 100% rename from assets/preload/images/philly/street.png rename to assets/week3/images/philly/street.png diff --git a/assets/preload/images/philly/train.png b/assets/week3/images/philly/train.png similarity index 100% rename from assets/preload/images/philly/train.png rename to assets/week3/images/philly/train.png diff --git a/assets/preload/images/philly/win0.png b/assets/week3/images/philly/win0.png similarity index 100% rename from assets/preload/images/philly/win0.png rename to assets/week3/images/philly/win0.png diff --git a/assets/preload/images/philly/win1.png b/assets/week3/images/philly/win1.png similarity index 100% rename from assets/preload/images/philly/win1.png rename to assets/week3/images/philly/win1.png diff --git a/assets/preload/images/philly/win2.png b/assets/week3/images/philly/win2.png similarity index 100% rename from assets/preload/images/philly/win2.png rename to assets/week3/images/philly/win2.png diff --git a/assets/preload/images/philly/win3.png b/assets/week3/images/philly/win3.png similarity index 100% rename from assets/preload/images/philly/win3.png rename to assets/week3/images/philly/win3.png diff --git a/assets/preload/images/philly/win4.png b/assets/week3/images/philly/win4.png similarity index 100% rename from assets/preload/images/philly/win4.png rename to assets/week3/images/philly/win4.png diff --git a/assets/week3/week3_stuff_here.txt b/assets/week3/week3_stuff_here.txt new file mode 100644 index 0000000..e69de29 diff --git a/assets/preload/images/Mom_Assets.png b/assets/week4/images/Mom_Assets.png similarity index 100% rename from assets/preload/images/Mom_Assets.png rename to assets/week4/images/Mom_Assets.png diff --git a/assets/preload/images/Mom_Assets.xml b/assets/week4/images/Mom_Assets.xml similarity index 100% rename from assets/preload/images/Mom_Assets.xml rename to assets/week4/images/Mom_Assets.xml diff --git a/assets/preload/images/limo/bgLimo.png b/assets/week4/images/limo/bgLimo.png similarity index 100% rename from assets/preload/images/limo/bgLimo.png rename to assets/week4/images/limo/bgLimo.png diff --git a/assets/preload/images/limo/bgLimo.xml b/assets/week4/images/limo/bgLimo.xml similarity index 100% rename from assets/preload/images/limo/bgLimo.xml rename to assets/week4/images/limo/bgLimo.xml diff --git a/assets/preload/images/limo/dumb.png b/assets/week4/images/limo/dumb.png similarity index 100% rename from assets/preload/images/limo/dumb.png rename to assets/week4/images/limo/dumb.png diff --git a/assets/preload/images/limo/fastCarLol.png b/assets/week4/images/limo/fastCarLol.png similarity index 100% rename from assets/preload/images/limo/fastCarLol.png rename to assets/week4/images/limo/fastCarLol.png diff --git a/assets/preload/images/limo/limoDancer.png b/assets/week4/images/limo/limoDancer.png similarity index 100% rename from assets/preload/images/limo/limoDancer.png rename to assets/week4/images/limo/limoDancer.png diff --git a/assets/preload/images/limo/limoDancer.xml b/assets/week4/images/limo/limoDancer.xml similarity index 100% rename from assets/preload/images/limo/limoDancer.xml rename to assets/week4/images/limo/limoDancer.xml diff --git a/assets/preload/images/limo/limoDrive.png b/assets/week4/images/limo/limoDrive.png similarity index 100% rename from assets/preload/images/limo/limoDrive.png rename to assets/week4/images/limo/limoDrive.png diff --git a/assets/preload/images/limo/limoDrive.xml b/assets/week4/images/limo/limoDrive.xml similarity index 100% rename from assets/preload/images/limo/limoDrive.xml rename to assets/week4/images/limo/limoDrive.xml diff --git a/assets/preload/images/limo/limoOverlay.png b/assets/week4/images/limo/limoOverlay.png similarity index 100% rename from assets/preload/images/limo/limoOverlay.png rename to assets/week4/images/limo/limoOverlay.png diff --git a/assets/preload/images/limo/limoSunset.png b/assets/week4/images/limo/limoSunset.png similarity index 100% rename from assets/preload/images/limo/limoSunset.png rename to assets/week4/images/limo/limoSunset.png diff --git a/assets/week4/week4_stuff_here.txt b/assets/week4/week4_stuff_here.txt new file mode 100644 index 0000000..e69de29 diff --git a/assets/preload/images/christmas/bfChristmas.png b/assets/week5/images/christmas/bfChristmas.png similarity index 100% rename from assets/preload/images/christmas/bfChristmas.png rename to assets/week5/images/christmas/bfChristmas.png diff --git a/assets/preload/images/christmas/bfChristmas.xml b/assets/week5/images/christmas/bfChristmas.xml similarity index 100% rename from assets/preload/images/christmas/bfChristmas.xml rename to assets/week5/images/christmas/bfChristmas.xml diff --git a/assets/preload/images/christmas/bgEscalator.png b/assets/week5/images/christmas/bgEscalator.png similarity index 100% rename from assets/preload/images/christmas/bgEscalator.png rename to assets/week5/images/christmas/bgEscalator.png diff --git a/assets/preload/images/christmas/bgWalls.png b/assets/week5/images/christmas/bgWalls.png similarity index 100% rename from assets/preload/images/christmas/bgWalls.png rename to assets/week5/images/christmas/bgWalls.png diff --git a/assets/preload/images/christmas/bottomBop.png b/assets/week5/images/christmas/bottomBop.png similarity index 100% rename from assets/preload/images/christmas/bottomBop.png rename to assets/week5/images/christmas/bottomBop.png diff --git a/assets/preload/images/christmas/bottomBop.xml b/assets/week5/images/christmas/bottomBop.xml similarity index 100% rename from assets/preload/images/christmas/bottomBop.xml rename to assets/week5/images/christmas/bottomBop.xml diff --git a/assets/preload/images/christmas/christmasTree.png b/assets/week5/images/christmas/christmasTree.png similarity index 100% rename from assets/preload/images/christmas/christmasTree.png rename to assets/week5/images/christmas/christmasTree.png diff --git a/assets/preload/images/christmas/christmasWall.png b/assets/week5/images/christmas/christmasWall.png similarity index 100% rename from assets/preload/images/christmas/christmasWall.png rename to assets/week5/images/christmas/christmasWall.png diff --git a/assets/preload/images/christmas/evilBG.png b/assets/week5/images/christmas/evilBG.png similarity index 100% rename from assets/preload/images/christmas/evilBG.png rename to assets/week5/images/christmas/evilBG.png diff --git a/assets/preload/images/christmas/evilSnow.png b/assets/week5/images/christmas/evilSnow.png similarity index 100% rename from assets/preload/images/christmas/evilSnow.png rename to assets/week5/images/christmas/evilSnow.png diff --git a/assets/preload/images/christmas/evilTree.png b/assets/week5/images/christmas/evilTree.png similarity index 100% rename from assets/preload/images/christmas/evilTree.png rename to assets/week5/images/christmas/evilTree.png diff --git a/assets/preload/images/christmas/fgSnow.png b/assets/week5/images/christmas/fgSnow.png similarity index 100% rename from assets/preload/images/christmas/fgSnow.png rename to assets/week5/images/christmas/fgSnow.png diff --git a/assets/preload/images/christmas/gfChristmas.png b/assets/week5/images/christmas/gfChristmas.png similarity index 100% rename from assets/preload/images/christmas/gfChristmas.png rename to assets/week5/images/christmas/gfChristmas.png diff --git a/assets/preload/images/christmas/gfChristmas.xml b/assets/week5/images/christmas/gfChristmas.xml similarity index 100% rename from assets/preload/images/christmas/gfChristmas.xml rename to assets/week5/images/christmas/gfChristmas.xml diff --git a/assets/preload/images/christmas/mom_dad_christmas_assets.png b/assets/week5/images/christmas/mom_dad_christmas_assets.png similarity index 100% rename from assets/preload/images/christmas/mom_dad_christmas_assets.png rename to assets/week5/images/christmas/mom_dad_christmas_assets.png diff --git a/assets/preload/images/christmas/mom_dad_christmas_assets.xml b/assets/week5/images/christmas/mom_dad_christmas_assets.xml similarity index 100% rename from assets/preload/images/christmas/mom_dad_christmas_assets.xml rename to assets/week5/images/christmas/mom_dad_christmas_assets.xml diff --git a/assets/preload/images/christmas/monsterChristmas.png b/assets/week5/images/christmas/monsterChristmas.png similarity index 100% rename from assets/preload/images/christmas/monsterChristmas.png rename to assets/week5/images/christmas/monsterChristmas.png diff --git a/assets/preload/images/christmas/monsterChristmas.xml b/assets/week5/images/christmas/monsterChristmas.xml similarity index 100% rename from assets/preload/images/christmas/monsterChristmas.xml rename to assets/week5/images/christmas/monsterChristmas.xml diff --git a/assets/preload/images/christmas/santa.png b/assets/week5/images/christmas/santa.png similarity index 100% rename from assets/preload/images/christmas/santa.png rename to assets/week5/images/christmas/santa.png diff --git a/assets/preload/images/christmas/santa.xml b/assets/week5/images/christmas/santa.xml similarity index 100% rename from assets/preload/images/christmas/santa.xml rename to assets/week5/images/christmas/santa.xml diff --git a/assets/preload/images/christmas/upperBop.png b/assets/week5/images/christmas/upperBop.png similarity index 100% rename from assets/preload/images/christmas/upperBop.png rename to assets/week5/images/christmas/upperBop.png diff --git a/assets/preload/images/christmas/upperBop.xml b/assets/week5/images/christmas/upperBop.xml similarity index 100% rename from assets/preload/images/christmas/upperBop.xml rename to assets/week5/images/christmas/upperBop.xml diff --git a/assets/week5/week5_stuff_here.txt b/assets/week5/week5_stuff_here.txt new file mode 100644 index 0000000..e69de29 diff --git a/assets/preload/images/weeb/animatedEvilSchool.png b/assets/week6/images/weeb/animatedEvilSchool.png similarity index 100% rename from assets/preload/images/weeb/animatedEvilSchool.png rename to assets/week6/images/weeb/animatedEvilSchool.png diff --git a/assets/preload/images/weeb/animatedEvilSchool.xml b/assets/week6/images/weeb/animatedEvilSchool.xml similarity index 100% rename from assets/preload/images/weeb/animatedEvilSchool.xml rename to assets/week6/images/weeb/animatedEvilSchool.xml diff --git a/assets/preload/images/weeb/bfPixel.png b/assets/week6/images/weeb/bfPixel.png similarity index 100% rename from assets/preload/images/weeb/bfPixel.png rename to assets/week6/images/weeb/bfPixel.png diff --git a/assets/preload/images/weeb/bfPixel.xml b/assets/week6/images/weeb/bfPixel.xml similarity index 100% rename from assets/preload/images/weeb/bfPixel.xml rename to assets/week6/images/weeb/bfPixel.xml diff --git a/assets/preload/images/weeb/bfPixelsDEAD.png b/assets/week6/images/weeb/bfPixelsDEAD.png similarity index 100% rename from assets/preload/images/weeb/bfPixelsDEAD.png rename to assets/week6/images/weeb/bfPixelsDEAD.png diff --git a/assets/preload/images/weeb/bfPixelsDEAD.xml b/assets/week6/images/weeb/bfPixelsDEAD.xml similarity index 100% rename from assets/preload/images/weeb/bfPixelsDEAD.xml rename to assets/week6/images/weeb/bfPixelsDEAD.xml diff --git a/assets/preload/images/weeb/bfPortrait.png b/assets/week6/images/weeb/bfPortrait.png similarity index 100% rename from assets/preload/images/weeb/bfPortrait.png rename to assets/week6/images/weeb/bfPortrait.png diff --git a/assets/preload/images/weeb/bfPortrait.xml b/assets/week6/images/weeb/bfPortrait.xml similarity index 100% rename from assets/preload/images/weeb/bfPortrait.xml rename to assets/week6/images/weeb/bfPortrait.xml diff --git a/assets/preload/images/weeb/bgFreaks.png b/assets/week6/images/weeb/bgFreaks.png similarity index 100% rename from assets/preload/images/weeb/bgFreaks.png rename to assets/week6/images/weeb/bgFreaks.png diff --git a/assets/preload/images/weeb/bgFreaks.xml b/assets/week6/images/weeb/bgFreaks.xml similarity index 100% rename from assets/preload/images/weeb/bgFreaks.xml rename to assets/week6/images/weeb/bgFreaks.xml diff --git a/assets/preload/images/weeb/evilSchoolBG.png b/assets/week6/images/weeb/evilSchoolBG.png similarity index 100% rename from assets/preload/images/weeb/evilSchoolBG.png rename to assets/week6/images/weeb/evilSchoolBG.png diff --git a/assets/preload/images/weeb/evilSchoolFG.png b/assets/week6/images/weeb/evilSchoolFG.png similarity index 100% rename from assets/preload/images/weeb/evilSchoolFG.png rename to assets/week6/images/weeb/evilSchoolFG.png diff --git a/assets/preload/images/weeb/gfPixel.png b/assets/week6/images/weeb/gfPixel.png similarity index 100% rename from assets/preload/images/weeb/gfPixel.png rename to assets/week6/images/weeb/gfPixel.png diff --git a/assets/preload/images/weeb/gfPixel.xml b/assets/week6/images/weeb/gfPixel.xml similarity index 100% rename from assets/preload/images/weeb/gfPixel.xml rename to assets/week6/images/weeb/gfPixel.xml diff --git a/assets/preload/images/weeb/petals.png b/assets/week6/images/weeb/petals.png similarity index 100% rename from assets/preload/images/weeb/petals.png rename to assets/week6/images/weeb/petals.png diff --git a/assets/preload/images/weeb/petals.xml b/assets/week6/images/weeb/petals.xml similarity index 100% rename from assets/preload/images/weeb/petals.xml rename to assets/week6/images/weeb/petals.xml diff --git a/assets/preload/images/weeb/pixelUI/arrowEnds.png b/assets/week6/images/weeb/pixelUI/arrowEnds.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/arrowEnds.png rename to assets/week6/images/weeb/pixelUI/arrowEnds.png diff --git a/assets/preload/images/weeb/pixelUI/arrows-pixels.png b/assets/week6/images/weeb/pixelUI/arrows-pixels.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/arrows-pixels.png rename to assets/week6/images/weeb/pixelUI/arrows-pixels.png diff --git a/assets/preload/images/weeb/pixelUI/bad-pixel.png b/assets/week6/images/weeb/pixelUI/bad-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/bad-pixel.png rename to assets/week6/images/weeb/pixelUI/bad-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/combo-pixel.png b/assets/week6/images/weeb/pixelUI/combo-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/combo-pixel.png rename to assets/week6/images/weeb/pixelUI/combo-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/date-pixel.png b/assets/week6/images/weeb/pixelUI/date-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/date-pixel.png rename to assets/week6/images/weeb/pixelUI/date-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/dialogueBox-evil.png b/assets/week6/images/weeb/pixelUI/dialogueBox-evil.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/dialogueBox-evil.png rename to assets/week6/images/weeb/pixelUI/dialogueBox-evil.png diff --git a/assets/preload/images/weeb/pixelUI/dialogueBox-evil.xml b/assets/week6/images/weeb/pixelUI/dialogueBox-evil.xml similarity index 100% rename from assets/preload/images/weeb/pixelUI/dialogueBox-evil.xml rename to assets/week6/images/weeb/pixelUI/dialogueBox-evil.xml diff --git a/assets/preload/images/weeb/pixelUI/dialogueBox-pixel.png b/assets/week6/images/weeb/pixelUI/dialogueBox-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/dialogueBox-pixel.png rename to assets/week6/images/weeb/pixelUI/dialogueBox-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/dialogueBox-pixel.xml b/assets/week6/images/weeb/pixelUI/dialogueBox-pixel.xml similarity index 100% rename from assets/preload/images/weeb/pixelUI/dialogueBox-pixel.xml rename to assets/week6/images/weeb/pixelUI/dialogueBox-pixel.xml diff --git a/assets/preload/images/weeb/pixelUI/dialogueBox-senpaiMad.png b/assets/week6/images/weeb/pixelUI/dialogueBox-senpaiMad.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/dialogueBox-senpaiMad.png rename to assets/week6/images/weeb/pixelUI/dialogueBox-senpaiMad.png diff --git a/assets/preload/images/weeb/pixelUI/dialogueBox-senpaiMad.xml b/assets/week6/images/weeb/pixelUI/dialogueBox-senpaiMad.xml similarity index 100% rename from assets/preload/images/weeb/pixelUI/dialogueBox-senpaiMad.xml rename to assets/week6/images/weeb/pixelUI/dialogueBox-senpaiMad.xml diff --git a/assets/preload/images/weeb/pixelUI/good-pixel.png b/assets/week6/images/weeb/pixelUI/good-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/good-pixel.png rename to assets/week6/images/weeb/pixelUI/good-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/hand_textbox.png b/assets/week6/images/weeb/pixelUI/hand_textbox.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/hand_textbox.png rename to assets/week6/images/weeb/pixelUI/hand_textbox.png diff --git a/assets/preload/images/weeb/pixelUI/num0-pixel.png b/assets/week6/images/weeb/pixelUI/num0-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num0-pixel.png rename to assets/week6/images/weeb/pixelUI/num0-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/num1-pixel.png b/assets/week6/images/weeb/pixelUI/num1-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num1-pixel.png rename to assets/week6/images/weeb/pixelUI/num1-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/num2-pixel.png b/assets/week6/images/weeb/pixelUI/num2-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num2-pixel.png rename to assets/week6/images/weeb/pixelUI/num2-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/num3-pixel.png b/assets/week6/images/weeb/pixelUI/num3-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num3-pixel.png rename to assets/week6/images/weeb/pixelUI/num3-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/num4-pixel.png b/assets/week6/images/weeb/pixelUI/num4-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num4-pixel.png rename to assets/week6/images/weeb/pixelUI/num4-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/num5-pixel.png b/assets/week6/images/weeb/pixelUI/num5-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num5-pixel.png rename to assets/week6/images/weeb/pixelUI/num5-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/num6-pixel.png b/assets/week6/images/weeb/pixelUI/num6-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num6-pixel.png rename to assets/week6/images/weeb/pixelUI/num6-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/num7-pixel.png b/assets/week6/images/weeb/pixelUI/num7-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num7-pixel.png rename to assets/week6/images/weeb/pixelUI/num7-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/num8-pixel.png b/assets/week6/images/weeb/pixelUI/num8-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num8-pixel.png rename to assets/week6/images/weeb/pixelUI/num8-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/num9-pixel.png b/assets/week6/images/weeb/pixelUI/num9-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/num9-pixel.png rename to assets/week6/images/weeb/pixelUI/num9-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/ready-pixel.png b/assets/week6/images/weeb/pixelUI/ready-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/ready-pixel.png rename to assets/week6/images/weeb/pixelUI/ready-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/set-pixel.png b/assets/week6/images/weeb/pixelUI/set-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/set-pixel.png rename to assets/week6/images/weeb/pixelUI/set-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/shit-pixel.png b/assets/week6/images/weeb/pixelUI/shit-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/shit-pixel.png rename to assets/week6/images/weeb/pixelUI/shit-pixel.png diff --git a/assets/preload/images/weeb/pixelUI/sick-pixel.png b/assets/week6/images/weeb/pixelUI/sick-pixel.png similarity index 100% rename from assets/preload/images/weeb/pixelUI/sick-pixel.png rename to assets/week6/images/weeb/pixelUI/sick-pixel.png diff --git a/assets/preload/images/weeb/senpai.png b/assets/week6/images/weeb/senpai.png similarity index 100% rename from assets/preload/images/weeb/senpai.png rename to assets/week6/images/weeb/senpai.png diff --git a/assets/preload/images/weeb/senpai.xml b/assets/week6/images/weeb/senpai.xml similarity index 100% rename from assets/preload/images/weeb/senpai.xml rename to assets/week6/images/weeb/senpai.xml diff --git a/assets/preload/images/weeb/senpaiCrazy.png b/assets/week6/images/weeb/senpaiCrazy.png similarity index 100% rename from assets/preload/images/weeb/senpaiCrazy.png rename to assets/week6/images/weeb/senpaiCrazy.png diff --git a/assets/preload/images/weeb/senpaiCrazy.xml b/assets/week6/images/weeb/senpaiCrazy.xml similarity index 100% rename from assets/preload/images/weeb/senpaiCrazy.xml rename to assets/week6/images/weeb/senpaiCrazy.xml diff --git a/assets/preload/images/weeb/senpaiPortrait.png b/assets/week6/images/weeb/senpaiPortrait.png similarity index 100% rename from assets/preload/images/weeb/senpaiPortrait.png rename to assets/week6/images/weeb/senpaiPortrait.png diff --git a/assets/preload/images/weeb/senpaiPortrait.xml b/assets/week6/images/weeb/senpaiPortrait.xml similarity index 100% rename from assets/preload/images/weeb/senpaiPortrait.xml rename to assets/week6/images/weeb/senpaiPortrait.xml diff --git a/assets/preload/images/weeb/spirit.png b/assets/week6/images/weeb/spirit.png similarity index 100% rename from assets/preload/images/weeb/spirit.png rename to assets/week6/images/weeb/spirit.png diff --git a/assets/preload/images/weeb/spirit.txt b/assets/week6/images/weeb/spirit.txt similarity index 100% rename from assets/preload/images/weeb/spirit.txt rename to assets/week6/images/weeb/spirit.txt diff --git a/assets/preload/images/weeb/spiritFaceForward.png b/assets/week6/images/weeb/spiritFaceForward.png similarity index 100% rename from assets/preload/images/weeb/spiritFaceForward.png rename to assets/week6/images/weeb/spiritFaceForward.png diff --git a/assets/preload/images/weeb/weebSchool.png b/assets/week6/images/weeb/weebSchool.png similarity index 100% rename from assets/preload/images/weeb/weebSchool.png rename to assets/week6/images/weeb/weebSchool.png diff --git a/assets/preload/images/weeb/weebSky.png b/assets/week6/images/weeb/weebSky.png similarity index 100% rename from assets/preload/images/weeb/weebSky.png rename to assets/week6/images/weeb/weebSky.png diff --git a/assets/preload/images/weeb/weebStreet.png b/assets/week6/images/weeb/weebStreet.png similarity index 100% rename from assets/preload/images/weeb/weebStreet.png rename to assets/week6/images/weeb/weebStreet.png diff --git a/assets/preload/images/weeb/weebTrees.png b/assets/week6/images/weeb/weebTrees.png similarity index 100% rename from assets/preload/images/weeb/weebTrees.png rename to assets/week6/images/weeb/weebTrees.png diff --git a/assets/preload/images/weeb/weebTrees.txt b/assets/week6/images/weeb/weebTrees.txt similarity index 100% rename from assets/preload/images/weeb/weebTrees.txt rename to assets/week6/images/weeb/weebTrees.txt diff --git a/assets/preload/images/weeb/weebTreesBack.png b/assets/week6/images/weeb/weebTreesBack.png similarity index 100% rename from assets/preload/images/weeb/weebTreesBack.png rename to assets/week6/images/weeb/weebTreesBack.png diff --git a/assets/preload/music/Lunchbox.mp3 b/assets/week6/music/Lunchbox.mp3 similarity index 100% rename from assets/preload/music/Lunchbox.mp3 rename to assets/week6/music/Lunchbox.mp3 diff --git a/assets/preload/music/Lunchbox.ogg b/assets/week6/music/Lunchbox.ogg similarity index 100% rename from assets/preload/music/Lunchbox.ogg rename to assets/week6/music/Lunchbox.ogg diff --git a/assets/preload/music/LunchboxScary.mp3 b/assets/week6/music/LunchboxScary.mp3 similarity index 100% rename from assets/preload/music/LunchboxScary.mp3 rename to assets/week6/music/LunchboxScary.mp3 diff --git a/assets/preload/music/LunchboxScary.ogg b/assets/week6/music/LunchboxScary.ogg similarity index 100% rename from assets/preload/music/LunchboxScary.ogg rename to assets/week6/music/LunchboxScary.ogg diff --git a/assets/week6/week6_stuff_here.txt b/assets/week6/week6_stuff_here.txt new file mode 100644 index 0000000..e69de29 diff --git a/source/ChartParser.hx b/source/ChartParser.hx index cba97ce..3884c0e 100644 --- a/source/ChartParser.hx +++ b/source/ChartParser.hx @@ -11,7 +11,7 @@ class ChartParser var IMG_WIDTH:Int = 8; var regex:EReg = new EReg("[ \t]*((\r\n)|\r|\n)[ \t]*", "g"); - var csvData = FlxStringUtil.imageToCSV('assets/data/' + songName + '/' + songName + '_section' + section + '.png'); + var csvData = FlxStringUtil.imageToCSV(Paths.file('data/' + songName + '/' + songName + '_section' + section + '.png')); var lines:Array = regex.split(csvData); var rows:Array = lines.filter(function(line) return line != ""); diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 0e7afa2..cc7d918 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -225,7 +225,7 @@ class ChartingState extends MusicBeatState stepperBPM.value = Conductor.bpm; stepperBPM.name = 'song_bpm'; - var characters:Array = CoolUtil.coolTextFile('assets/data/characterList.txt'); + var characters:Array = CoolUtil.coolTextFile(Paths.txt('characterList')); var player1DropDown = new FlxUIDropDownMenu(10, 100, FlxUIDropDownMenu.makeStrIdLabelArray(characters, true), function(character:String) { @@ -351,7 +351,7 @@ class ChartingState extends MusicBeatState // vocals.stop(); } - FlxG.sound.playMusic('assets/music/' + daSong + "_Inst" + TitleState.soundExt, 0.6); + FlxG.sound.playMusic(Paths.inst(daSong), 0.6); // WONT WORK FOR TUTORIAL OR TEST SONG!!! REDO LATER vocals = new FlxSound().loadEmbedded(Paths.music(daSong + "_Voices")); diff --git a/source/DialogueBox.hx b/source/DialogueBox.hx index 868c780..4b42525 100644 --- a/source/DialogueBox.hx +++ b/source/DialogueBox.hx @@ -60,24 +60,6 @@ class DialogueBox extends FlxSpriteGroup bgFade.alpha = 0.7; }, 5); - portraitLeft = new FlxSprite(-20, 40); - portraitLeft.frames = Paths.getSparrowAtlas('weeb/senpaiPortrait'); - portraitLeft.animation.addByPrefix('enter', 'Senpai Portrait Enter', 24, false); - portraitLeft.setGraphicSize(Std.int(portraitLeft.width * PlayState.daPixelZoom * 0.9)); - portraitLeft.updateHitbox(); - portraitLeft.scrollFactor.set(); - add(portraitLeft); - portraitLeft.visible = false; - - portraitRight = new FlxSprite(0, 40); - portraitRight.frames = Paths.getSparrowAtlas('weeb/bfPortrait'); - portraitRight.animation.addByPrefix('enter', 'Boyfriend portrait enter', 24, false); - portraitRight.setGraphicSize(Std.int(portraitRight.width * PlayState.daPixelZoom * 0.9)); - portraitRight.updateHitbox(); - portraitRight.scrollFactor.set(); - add(portraitRight); - portraitRight.visible = false; - box = new FlxSprite(-20, 45); var hasDialog = false; @@ -107,19 +89,40 @@ class DialogueBox extends FlxSpriteGroup add(face); } - if (hasDialog) - { - box.animation.play('normalOpen'); - box.setGraphicSize(Std.int(box.width * PlayState.daPixelZoom * 0.9)); - box.updateHitbox(); - add(box); - } + this.dialogueList = dialogueList; + + if (!hasDialog) + return; + + portraitLeft = new FlxSprite(-20, 40); + portraitLeft.frames = Paths.getSparrowAtlas('weeb/senpaiPortrait'); + portraitLeft.animation.addByPrefix('enter', 'Senpai Portrait Enter', 24, false); + portraitLeft.setGraphicSize(Std.int(portraitLeft.width * PlayState.daPixelZoom * 0.9)); + portraitLeft.updateHitbox(); + portraitLeft.scrollFactor.set(); + add(portraitLeft); + portraitLeft.visible = false; + + portraitRight = new FlxSprite(0, 40); + portraitRight.frames = Paths.getSparrowAtlas('weeb/bfPortrait'); + portraitRight.animation.addByPrefix('enter', 'Boyfriend portrait enter', 24, false); + portraitRight.setGraphicSize(Std.int(portraitRight.width * PlayState.daPixelZoom * 0.9)); + portraitRight.updateHitbox(); + portraitRight.scrollFactor.set(); + add(portraitRight); + portraitRight.visible = false; + + box.animation.play('normalOpen'); + box.setGraphicSize(Std.int(box.width * PlayState.daPixelZoom * 0.9)); + box.updateHitbox(); + add(box); + + box.screenCenter(X); + portraitLeft.screenCenter(X); handSelect = new FlxSprite(FlxG.width * 0.9, FlxG.height * 0.9).loadGraphic(Paths.image('weeb/pixelUI/hand_textbox')); add(handSelect); - box.screenCenter(X); - portraitLeft.screenCenter(X); if (!talkingRight) { @@ -140,8 +143,6 @@ class DialogueBox extends FlxSpriteGroup dialogue = new Alphabet(0, 80, "", false, true); // dialogue.x = 90; // add(dialogue); - - this.dialogueList = dialogueList; } var dialogueOpened:Bool = false; diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index c1f02ce..b39ebc9 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -30,7 +30,7 @@ class FreeplayState extends MusicBeatState override function create() { - songs = CoolUtil.coolTextFile('assets/data/freeplaySonglist.txt'); + songs = CoolUtil.coolTextFile(Paths.txt('freeplaySonglist')); /* if (FlxG.sound.music != null) @@ -104,7 +104,7 @@ class FreeplayState extends MusicBeatState scoreText = new FlxText(FlxG.width * 0.7, 5, 0, "", 32); // scoreText.autoSize = false; - scoreText.setFormat("assets/fonts/vcr.ttf", 32, FlxColor.WHITE, RIGHT); + scoreText.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, RIGHT); // scoreText.alignment = RIGHT; var scoreBG:FlxSprite = new FlxSprite(scoreText.x - 6, 0).makeGraphic(Std.int(FlxG.width * 0.35), 66, 0xFF000000); @@ -249,7 +249,9 @@ class FreeplayState extends MusicBeatState // lerpScore = 0; #end - FlxG.sound.playMusic('assets/music/' + songs[curSelected] + "_Inst" + TitleState.soundExt, 0); + #if PRELOAD_ALL + FlxG.sound.playMusic(Paths.inst(songs[curSelected]), 0); + #end var bullShit:Int = 0; diff --git a/source/LoadingState.hx b/source/LoadingState.hx index 64fb3c8..8e3676e 100644 --- a/source/LoadingState.hx +++ b/source/LoadingState.hx @@ -1,5 +1,7 @@ package; +import lime.app.Promise; +import lime.app.Future; import flixel.FlxG; import flixel.FlxState; import flixel.FlxSprite; @@ -8,11 +10,8 @@ import flixel.util.FlxTimer; import openfl.utils.Assets; import lime.utils.Assets as LimeAssets; -import lime.utils.AssetBundle; import lime.utils.AssetLibrary; import lime.utils.AssetManifest; -import lime.app.Future; -import lime.app.Promise; import haxe.io.Path; @@ -38,7 +37,7 @@ class LoadingState extends MusicBeatState override function create() { logo = new FlxSprite(-150, -100); - logo.frames = FlxAtlasFrames.fromSparrow('assets/images/logoBumpin.png', 'assets/images/logoBumpin.xml'); + logo.frames = Paths.getSparrowAtlas('logoBumpin'); logo.antialiasing = true; logo.animation.addByPrefix('bump', 'logo bumpin', 24); logo.animation.play('bump'); @@ -47,31 +46,33 @@ class LoadingState extends MusicBeatState // logoBl.color = FlxColor.BLACK; gfDance = new FlxSprite(FlxG.width * 0.4, FlxG.height * 0.07); - gfDance.frames = FlxAtlasFrames.fromSparrow('assets/images/gfDanceTitle.png', 'assets/images/gfDanceTitle.xml'); + gfDance.frames = Paths.getSparrowAtlas('gfDanceTitle'); gfDance.animation.addByIndices('danceLeft', 'gfDance', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false); gfDance.animation.addByIndices('danceRight', 'gfDance', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false); gfDance.antialiasing = true; add(gfDance); add(logo); - // function onSongsManifestInit() - // { - callbacks = new MultiCallback(onLoad); - var introComplete = callbacks.add("introComplete"); - checkLoadSong(getSongPath()); - checkLoadSong(getVocalPath()); - checkLibrary("shared"); - if (PlayState.storyWeek > 0) - checkLibrary("week" + PlayState.storyWeek); - else - checkLibrary("tutorial"); - - var fadeTime = 0.5; - FlxG.camera.fade(FlxG.camera.bgColor, fadeTime, true); - new FlxTimer().start(fadeTime + MIN_TIME, function(_) introComplete()); - // } - - // initSongsManifest(onSongsManifestInit); + initSongsManifest().onComplete + ( + function (lib) + { + callbacks = new MultiCallback(onLoad); + var introComplete = callbacks.add("introComplete"); + checkLoadSong(getSongPath()); + if (PlayState.SONG.needsVoices) + checkLoadSong(getVocalPath()); + checkLibrary("shared"); + if (PlayState.storyWeek > 0) + checkLibrary("week" + PlayState.storyWeek); + else + checkLibrary("tutorial"); + + var fadeTime = 0.5; + FlxG.camera.fade(FlxG.camera.bgColor, fadeTime, true); + new FlxTimer().start(fadeTime + MIN_TIME, function(_) introComplete()); + } + ); } function checkLoadSong(path:String) @@ -80,10 +81,10 @@ class LoadingState extends MusicBeatState { var library = Assets.getLibrary("songs"); final symbolPath = path.split(":").pop(); - @:privateAccess - library.types.set(symbolPath, SOUND); - @:privateAccess - library.pathGroups.set(symbolPath, [library.__cacheBreak(symbolPath)]); + // @:privateAccess + // library.types.set(symbolPath, SOUND); + // @:privateAccess + // library.pathGroups.set(symbolPath, [library.__cacheBreak(symbolPath)]); var callback = callbacks.add("song:" + path); Assets.loadSound(path).onComplete(function (_) { callback(); }); } @@ -91,8 +92,13 @@ class LoadingState extends MusicBeatState function checkLibrary(library:String) { + trace(Assets.hasLibrary(library)); if (Assets.getLibrary(library) == null) { + @:privateAccess + if (!LimeAssets.libraryPaths.exists(library)) + throw "Missing library: " + library; + var callback = callbacks.add("library:" + library); Assets.loadLibrary(library).onComplete(function (_) { callback(); }); } @@ -114,6 +120,10 @@ class LoadingState extends MusicBeatState override function update(elapsed:Float) { super.update(elapsed); + #if debug + if (FlxG.keys.justPressed.SPACE) + trace('fired: ' + callbacks.getFired() + " unfired:" + callbacks.getUnfired()); + #end } function onLoad() @@ -141,6 +151,7 @@ class LoadingState extends MusicBeatState static function getNextState(target:FlxState, stopMusic = false):FlxState { + Paths.setCurrentLevel("week" + PlayState.storyWeek); #if js var loaded = isSoundLoaded(getSongPath()) && (!PlayState.SONG.needsVoices || isSoundLoaded(getVocalPath())) @@ -174,110 +185,68 @@ class LoadingState extends MusicBeatState callbacks = null; } - - /** - * creates the song manifest without loading all the songs so we can load them individually - * @param onComplete called on load - * @return Future - */ - static function initSongsManifest(onComplete:Void->Void):Future + static function initSongsManifest() { - final id = "songs"; + var id = "songs"; var promise = new Promise(); - // #if (tools && !display && !macro) var library = LimeAssets.getLibrary(id); if (library != null) { - onComplete(); return Future.withValue(library); } - + var path = id; var rootPath = null; - - // @:privateAccess - // if (LimeAssets.bundlePaths.exists(id)) - // { - // AssetBundle.loadFromFile(bundlePaths.get(id)).onComplete(function(bundle) - // { - // if (bundle == null) - // { - // promise.error("Cannot load bundle for library \"" + id + "\""); - // return; - // } - // var library = AssetLibrary.fromBundle(bundle); - - // if (library == null) - // { - // promise.error("Cannot open library \"" + id + "\""); - // } - // else - // { - // libraries.set(id, library); - // library.onChange.add(LimeAssets.onChange.dispatch); - // promise.completeWith(Future.withValue(library)); - // onComplete(); - // } - // }).onError(function(_) - // { - // promise.error("There is no asset library with an ID of \"" + id + "\""); - // }); - // } - // else - // { - @:privateAccess - final libraryPaths = LimeAssets.libraryPaths; - if (libraryPaths.exists(id)) + @:privateAccess + var libraryPaths = LimeAssets.libraryPaths; + if (libraryPaths.exists(id)) + { + path = libraryPaths[id]; + rootPath = Path.directory(path); + } + else + { + if (StringTools.endsWith(path, ".bundle")) { - path = libraryPaths[id]; - rootPath = Path.directory(path); + rootPath = path; + path += "/library.json"; } else { - if (StringTools.endsWith(path, ".bundle")) - { - rootPath = path; - path += "/library.json"; - } - else - { - rootPath = Path.directory(path); - } - @:privateAccess - path = LimeAssets.__cacheBreak(path); + rootPath = Path.directory(path); + } + @:privateAccess + path = LimeAssets.__cacheBreak(path); + } + + AssetManifest.loadFromFile(path, rootPath).onComplete(function(manifest) + { + if (manifest == null) + { + promise.error("Cannot parse asset manifest for library \"" + id + "\""); + return; } - AssetManifest.loadFromFile(path, rootPath).onComplete(function(manifest) - { - if (manifest == null) - { - promise.error("Cannot parse asset manifest for library \"" + id + "\""); - return; - } + var library = AssetLibrary.fromManifest(manifest); - var library = AssetLibrary.fromManifest(manifest); - - if (library == null) - { - promise.error("Cannot open library \"" + id + "\""); - } - else - { - @:privateAccess - LimeAssets.libraries.set(id, library); - library.onChange.add(LimeAssets.onChange.dispatch); - promise.completeWith(Future.withValue(library)); - onComplete(); - } - }).onError(function(_) + if (library == null) { - promise.error("There is no asset library with an ID of \"" + id + "\""); - }); - // } - // #end + promise.error("Cannot open library \"" + id + "\""); + } + else + { + @:privateAccess + LimeAssets.libraries.set(id, library); + library.onChange.add(LimeAssets.onChange.dispatch); + promise.completeWith(Future.withValue(library)); + } + }).onError(function(_) + { + promise.error("There is no asset library with an ID of \"" + id + "\""); + }); return promise.future; } @@ -337,5 +306,5 @@ class MultiCallback } public function getFired() return fired.copy(); - public function getUnfired() return [for (id in unfired) id]; + public function getUnfired() return [for (id in unfired.keys()) id]; } \ No newline at end of file diff --git a/source/Note.hx b/source/Note.hx index 781206b..d056063 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -4,7 +4,9 @@ import flixel.FlxSprite; import flixel.graphics.frames.FlxAtlasFrames; import flixel.math.FlxMath; import flixel.util.FlxColor; +#if polymod import polymod.format.ParseRules.TargetSignatureElement; +#end using StringTools; diff --git a/source/OptionsMenu.hx b/source/OptionsMenu.hx index 76a1758..bf36c83 100644 --- a/source/OptionsMenu.hx +++ b/source/OptionsMenu.hx @@ -24,7 +24,7 @@ class OptionsMenu extends MusicBeatState override function create() { var menuBG:FlxSprite = new FlxSprite().loadGraphic(Paths.image('menuDesat')); - controlsStrings = CoolUtil.coolTextFile('assets/data/controls.txt'); + controlsStrings = CoolUtil.coolTextFile(Paths.txt('controls')); menuBG.color = 0xFFea71fd; menuBG.setGraphicSize(Std.int(menuBG.width * 1.1)); menuBG.updateHitbox(); diff --git a/source/Paths.hx b/source/Paths.hx index 4e2094c..73214c0 100644 --- a/source/Paths.hx +++ b/source/Paths.hx @@ -30,7 +30,7 @@ class Paths return levelPath; } - return 'assets/$file'; + return 'assets/preload/$file'; } inline static function getLibraryPath(library:String, file:String) @@ -43,14 +43,29 @@ class Paths return getPath(file, type); } - inline static public function sound(key:String) + inline static public function txt(key:String) + { + return getPath('data/$key.txt', TEXT); + } + + inline static public function xml(key:String) + { + return getPath('data/$key.xml', TEXT); + } + + inline static public function json(key:String) + { + return getPath('data/$key.json', TEXT); + } + + static public function sound(key:String) { return getPath('sounds/$key.$SOUND_EXT', SOUND); } inline static public function soundRandom(key:String, min:Int, max:Int) { - return getPath('sounds/$key${FlxG.random.int(min, max)}.$SOUND_EXT', SOUND); + return sound(key + FlxG.random.int(min, max)); } inline static public function music(key:String) @@ -60,12 +75,12 @@ class Paths inline static public function voices(song:String) { - return "songs:" + getPath('songs/${song.toLowerCase()}/Voices.$SOUND_EXT', MUSIC); + return 'songs:assets/songs/${song.toLowerCase()}/Voices.$SOUND_EXT'; } inline static public function inst(song:String) { - return "songs:" + getPath('songs/${song.toLowerCase()}/Inst.$SOUND_EXT', MUSIC); + return 'songs:assets/songs/${song.toLowerCase()}/Inst.$SOUND_EXT'; } inline static public function image(key:String) @@ -73,6 +88,11 @@ class Paths return getPath('images/$key.png', IMAGE); } + inline static public function font(key:String) + { + return 'assets/fonts/$key'; + } + inline static public function getSparrowAtlas(key:String) { return FlxAtlasFrames.fromSparrow(image(key), file('images/$key.xml')); diff --git a/source/PlayState.hx b/source/PlayState.hx index 4514911..225f3e4 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -139,7 +139,6 @@ class PlayState extends MusicBeatState if (SONG == null) SONG = Song.loadFromJson('tutorial'); - Paths.setCurrentLevel(SONG.song); Conductor.changeBPM(SONG.bpm); @@ -163,11 +162,11 @@ class PlayState extends MusicBeatState "Only then I will even CONSIDER letting you\ndate my daughter!" ]; case 'senpai': - dialogue = CoolUtil.coolTextFile('assets/data/senpai/senpaiDialogue.txt'); + dialogue = CoolUtil.coolTextFile(Paths.txt('senpai/senpaiDialogue')); case 'roses': - dialogue = CoolUtil.coolTextFile('assets/data/roses/rosesDialogue.txt'); + dialogue = CoolUtil.coolTextFile(Paths.txt('roses/rosesDialogue')); case 'thorns': - dialogue = CoolUtil.coolTextFile('assets/data/thorns/thornsDialogue.txt'); + dialogue = CoolUtil.coolTextFile(Paths.txt('thorns/thornsDialogue')); } if (SONG.song.toLowerCase() == 'spookeez' || SONG.song.toLowerCase() == 'monster' || SONG.song.toLowerCase() == 'south') @@ -676,7 +675,7 @@ class PlayState extends MusicBeatState add(healthBar); scoreTxt = new FlxText(healthBarBG.x + healthBarBG.width - 190, healthBarBG.y + 30, 0, "", 20); - scoreTxt.setFormat("assets/fonts/vcr.ttf", 16, FlxColor.WHITE, RIGHT); + scoreTxt.setFormat(Paths.font("vcr.ttf"), 16, FlxColor.WHITE, RIGHT); scoreTxt.scrollFactor.set(); add(scoreTxt); @@ -866,16 +865,16 @@ class PlayState extends MusicBeatState boyfriend.playAnim('idle'); var introAssets:Map> = new Map>(); - introAssets.set('default', ['ready.png', "set.png", "go.png"]); + introAssets.set('default', ['ready', "set", "go"]); introAssets.set('school', [ - 'weeb/pixelUI/ready-pixel.png', - 'weeb/pixelUI/set-pixel.png', - 'weeb/pixelUI/date-pixel.png' + 'weeb/pixelUI/ready-pixel', + 'weeb/pixelUI/set-pixel', + 'weeb/pixelUI/date-pixel' ]); introAssets.set('schoolEvil', [ - 'weeb/pixelUI/ready-pixel.png', - 'weeb/pixelUI/set-pixel.png', - 'weeb/pixelUI/date-pixel.png' + 'weeb/pixelUI/ready-pixel', + 'weeb/pixelUI/set-pixel', + 'weeb/pixelUI/date-pixel' ]); var introAlts:Array = introAssets.get('default'); @@ -896,7 +895,7 @@ class PlayState extends MusicBeatState case 0: FlxG.sound.play(Paths.sound('intro3'), 0.6); case 1: - var ready:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[0]); + var ready:FlxSprite = new FlxSprite().loadGraphic(Paths.image(introAlts[0])); ready.scrollFactor.set(); ready.updateHitbox(); @@ -914,7 +913,7 @@ class PlayState extends MusicBeatState }); FlxG.sound.play(Paths.sound('intro2'), 0.6); case 2: - var set:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[1]); + var set:FlxSprite = new FlxSprite().loadGraphic(Paths.image(introAlts[1])); set.scrollFactor.set(); if (curStage.startsWith('school')) @@ -931,7 +930,7 @@ class PlayState extends MusicBeatState }); FlxG.sound.play(Paths.sound('intro1'), 0.6); case 3: - var go:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[2]); + var go:FlxSprite = new FlxSprite().loadGraphic(Paths.image(introAlts[2])); go.scrollFactor.set(); if (curStage.startsWith('school')) @@ -1743,7 +1742,7 @@ class PlayState extends MusicBeatState pixelShitPart2 = '-pixel'; } - rating.loadGraphic('assets/images/' + pixelShitPart1 + daRating + pixelShitPart2 + ".png"); + rating.loadGraphic(Paths.image(pixelShitPart1 + daRating + pixelShitPart2)); rating.screenCenter(); rating.x = coolText.x - 40; rating.y -= 60; @@ -2041,7 +2040,7 @@ class PlayState extends MusicBeatState if (!boyfriend.stunned) { health -= 0.04; - if (combo > 5) + if (combo > 5 && gf.animOffsets.exists('sad')) { gf.playAnim('sad'); } diff --git a/source/Song.hx b/source/Song.hx index 55827e7..51d0f31 100644 --- a/source/Song.hx +++ b/source/Song.hx @@ -50,7 +50,7 @@ class Song public static function loadFromJson(jsonInput:String, ?folder:String):SwagSong { - var rawJson = Assets.getText('assets/data/' + folder.toLowerCase() + '/' + jsonInput.toLowerCase() + '.json').trim(); + var rawJson = Assets.getText(Paths.json(folder.toLowerCase() + '/' + jsonInput.toLowerCase())).trim(); while (!rawJson.endsWith("}")) { diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index bd5f13e..27c63e7 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -86,7 +86,7 @@ class StoryMenuState extends MusicBeatState var rankText:FlxText = new FlxText(0, 10); rankText.text = 'RANK: GREAT'; - rankText.setFormat("assets/fonts/vcr.ttf", 32); + rankText.setFormat(Paths.font("vcr.ttf"), 32); rankText.size = scoreText.size; rankText.screenCenter(X); diff --git a/source/TitleState.hx b/source/TitleState.hx index cfdaea5..afd7bd5 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -23,7 +23,6 @@ import flixel.util.FlxTimer; import io.newgrounds.NG; import lime.app.Application; import openfl.Assets; -import polymod.Polymod; using StringTools; @@ -44,8 +43,10 @@ class TitleState extends MusicBeatState override public function create():Void { - Polymod.init({modRoot: "mods", dirs: ['introMod']}); - + #if polymod + polymod.Polymod.init({modRoot: "mods", dirs: ['introMod']}); + #end + #if (!web) TitleState.soundExt = '.ogg'; #end @@ -206,7 +207,7 @@ class TitleState extends MusicBeatState function getIntroTextShit():Array> { - var fullText:String = Assets.getText('assets/data/introText.txt'); + var fullText:String = Assets.getText(Paths.txt('introText')); var firstArray:Array = fullText.split('\n'); var swagGoodArray:Array> = []; From 8b53e0c0b95e229c15938962003649c4189da02e Mon Sep 17 00:00:00 2001 From: George FunBook Date: Wed, 10 Feb 2021 14:28:05 -0600 Subject: [PATCH 05/11] sections and stuff --- Project.xml | 83 ++++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 43 deletions(-) diff --git a/Project.xml b/Project.xml index 9215a21..f25ce51 100644 --- a/Project.xml +++ b/Project.xml @@ -45,51 +45,48 @@ - - - - - - - - - - - - +
+ + + + + + + + + +
+ +
+ + + + + + + + + +
+ + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + From da69d16d80c83dd49791893d0674b6d99b4e95c1 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Thu, 11 Feb 2021 13:14:02 -0600 Subject: [PATCH 06/11] fix preloaded versions --- Project.xml | 13 ++++---- source/LoadingState.hx | 4 +-- source/Paths.hx | 68 ++++++++++++++++++++++++++---------------- 3 files changed, 53 insertions(+), 32 deletions(-) diff --git a/Project.xml b/Project.xml index f25ce51..63b25bd 100644 --- a/Project.xml +++ b/Project.xml @@ -40,12 +40,14 @@ - - + + + + -
+
@@ -57,7 +59,7 @@
-
+
@@ -112,7 +114,8 @@ - + + diff --git a/source/LoadingState.hx b/source/LoadingState.hx index 8e3676e..23bce2e 100644 --- a/source/LoadingState.hx +++ b/source/LoadingState.hx @@ -152,7 +152,7 @@ class LoadingState extends MusicBeatState static function getNextState(target:FlxState, stopMusic = false):FlxState { Paths.setCurrentLevel("week" + PlayState.storyWeek); - #if js + #if NO_PRELOAD_ALL var loaded = isSoundLoaded(getSongPath()) && (!PlayState.SONG.needsVoices || isSoundLoaded(getVocalPath())) && isLibraryLoaded("shared"); @@ -166,7 +166,7 @@ class LoadingState extends MusicBeatState return target; } - #if js + #if NO_PRELOAD_ALL static function isSoundLoaded(path:String):Bool { return Assets.cache.hasSound(path); diff --git a/source/Paths.hx b/source/Paths.hx index 73214c0..4bee419 100644 --- a/source/Paths.hx +++ b/source/Paths.hx @@ -17,60 +17,78 @@ class Paths currentLevel = name.toLowerCase(); } - static function getPath(file:String, type:AssetType) + static function getPath(file:String, type:AssetType, library:Null) { + if (library != null) + return getLibraryPath(file, library); + if (currentLevel != null) { - var levelPath = getLibraryPath(currentLevel, file); + var levelPath = getLibraryPathForce(file, currentLevel); if (OpenFlAssets.exists(levelPath, type)) return levelPath; - levelPath = getLibraryPath("shared", file); + levelPath = getLibraryPathForce(file, "shared"); if (OpenFlAssets.exists(levelPath, type)) return levelPath; } - return 'assets/preload/$file'; + return getPreloadPath(file); } - inline static function getLibraryPath(library:String, file:String) + static public function getLibraryPath(file:String, library = "preload") { + return if (library == "preload" || library == "default") + getPreloadPath(file); + else + getLibraryPathForce(file, library); + } + + inline static function getLibraryPathForce(file:String, library:String) + { + return '$library:assets/$library/$file'; } - inline static public function file(file:String, type:AssetType = TEXT) + inline static function getPreloadPath(file:String) { - return getPath(file, type); + + return 'assets/$file'; } - inline static public function txt(key:String) + inline static public function file(file:String, type:AssetType = TEXT, ?library:String) { - return getPath('data/$key.txt', TEXT); + return getPath(file, type, library); } - inline static public function xml(key:String) + inline static public function txt(key:String, ?library:String) { - return getPath('data/$key.xml', TEXT); + return getPath('data/$key.txt', TEXT, library); } - inline static public function json(key:String) + inline static public function xml(key:String, ?library:String) { - return getPath('data/$key.json', TEXT); + return getPath('data/$key.xml', TEXT, library); } - static public function sound(key:String) + inline static public function json(key:String, ?library:String) { - return getPath('sounds/$key.$SOUND_EXT', SOUND); + return getPath('data/$key.json', TEXT, library); } - inline static public function soundRandom(key:String, min:Int, max:Int) + static public function sound(key:String, ?library:String) { - return sound(key + FlxG.random.int(min, max)); + return getPath('sounds/$key.$SOUND_EXT', SOUND, library); } - inline static public function music(key:String) + inline static public function soundRandom(key:String, min:Int, max:Int, ?library:String) { - return getPath('music/$key.$SOUND_EXT', MUSIC); + return sound(key + FlxG.random.int(min, max), library); + } + + inline static public function music(key:String, ?library:String) + { + return getPath('music/$key.$SOUND_EXT', MUSIC, library); } inline static public function voices(song:String) @@ -83,9 +101,9 @@ class Paths return 'songs:assets/songs/${song.toLowerCase()}/Inst.$SOUND_EXT'; } - inline static public function image(key:String) + inline static public function image(key:String, ?library:String) { - return getPath('images/$key.png', IMAGE); + return getPath('images/$key.png', IMAGE, library); } inline static public function font(key:String) @@ -93,13 +111,13 @@ class Paths return 'assets/fonts/$key'; } - inline static public function getSparrowAtlas(key:String) + inline static public function getSparrowAtlas(key:String, ?library:String) { - return FlxAtlasFrames.fromSparrow(image(key), file('images/$key.xml')); + return FlxAtlasFrames.fromSparrow(image(key, library), file('images/$key.xml', library)); } - inline static public function getPackerAtlas(key:String) + inline static public function getPackerAtlas(key:String, ?library:String) { - return FlxAtlasFrames.fromSpriteSheetPacker(image(key), file('images/$key.txt')); + return FlxAtlasFrames.fromSpriteSheetPacker(image(key, library), file('images/$key.txt', library)); } } \ No newline at end of file From a5957262af6c5e14a6c05316af53d41194f1f8b0 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Thu, 11 Feb 2021 13:14:16 -0600 Subject: [PATCH 07/11] remove TitleState.soundExt --- source/MusicBeatState.hx | 4 ---- source/MusicBeatSubstate.hx | 9 --------- source/TitleState.hx | 5 ----- 3 files changed, 18 deletions(-) diff --git a/source/MusicBeatState.hx b/source/MusicBeatState.hx index bda5031..55bd24e 100644 --- a/source/MusicBeatState.hx +++ b/source/MusicBeatState.hx @@ -26,10 +26,6 @@ class MusicBeatState extends FlxUIState if (transIn != null) trace('reg ' + transIn.region); - #if (!web) - TitleState.soundExt = '.ogg'; - #end - super.create(); } diff --git a/source/MusicBeatSubstate.hx b/source/MusicBeatSubstate.hx index 511f597..3db4f9e 100644 --- a/source/MusicBeatSubstate.hx +++ b/source/MusicBeatSubstate.hx @@ -23,15 +23,6 @@ class MusicBeatSubstate extends FlxSubState inline function get_controls():Controls return PlayerSettings.player1.controls; - override function create() - { - #if (!web) - TitleState.soundExt = '.ogg'; - #end - - super.create(); - } - override function update(elapsed:Float) { everyStep(); diff --git a/source/TitleState.hx b/source/TitleState.hx index afd7bd5..0a1f1d4 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -29,7 +29,6 @@ using StringTools; class TitleState extends MusicBeatState { static var initialized:Bool = false; - static public var soundExt:String = ".mp3"; var blackScreen:FlxSprite; var credGroup:FlxGroup; @@ -47,10 +46,6 @@ class TitleState extends MusicBeatState polymod.Polymod.init({modRoot: "mods", dirs: ['introMod']}); #end - #if (!web) - TitleState.soundExt = '.ogg'; - #end - PlayerSettings.init(); curWacky = FlxG.random.getObject(getIntroTextShit()); From 124f2cc97ce0da1813cad50fddce5b3694daf614 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Fri, 12 Feb 2021 09:37:47 -0600 Subject: [PATCH 08/11] move more assets to week libraries --- assets/{shared => week4}/images/bfCar.png | Bin assets/{shared => week4}/images/bfCar.xml | 0 assets/{shared => week4}/images/gfCar.png | Bin assets/{shared => week4}/images/gfCar.xml | 0 assets/{shared => week4}/images/momCar.png | Bin assets/{shared => week4}/images/momCar.xml | 0 assets/{shared => week6}/music/gameOver-pixel.mp3 | Bin assets/{shared => week6}/music/gameOver-pixel.ogg | Bin .../{shared => week6}/music/gameOverEnd-pixel.mp3 | Bin .../{shared => week6}/music/gameOverEnd-pixel.ogg | Bin 10 files changed, 0 insertions(+), 0 deletions(-) rename assets/{shared => week4}/images/bfCar.png (100%) rename assets/{shared => week4}/images/bfCar.xml (100%) rename assets/{shared => week4}/images/gfCar.png (100%) rename assets/{shared => week4}/images/gfCar.xml (100%) rename assets/{shared => week4}/images/momCar.png (100%) rename assets/{shared => week4}/images/momCar.xml (100%) rename assets/{shared => week6}/music/gameOver-pixel.mp3 (100%) rename assets/{shared => week6}/music/gameOver-pixel.ogg (100%) rename assets/{shared => week6}/music/gameOverEnd-pixel.mp3 (100%) rename assets/{shared => week6}/music/gameOverEnd-pixel.ogg (100%) diff --git a/assets/shared/images/bfCar.png b/assets/week4/images/bfCar.png similarity index 100% rename from assets/shared/images/bfCar.png rename to assets/week4/images/bfCar.png diff --git a/assets/shared/images/bfCar.xml b/assets/week4/images/bfCar.xml similarity index 100% rename from assets/shared/images/bfCar.xml rename to assets/week4/images/bfCar.xml diff --git a/assets/shared/images/gfCar.png b/assets/week4/images/gfCar.png similarity index 100% rename from assets/shared/images/gfCar.png rename to assets/week4/images/gfCar.png diff --git a/assets/shared/images/gfCar.xml b/assets/week4/images/gfCar.xml similarity index 100% rename from assets/shared/images/gfCar.xml rename to assets/week4/images/gfCar.xml diff --git a/assets/shared/images/momCar.png b/assets/week4/images/momCar.png similarity index 100% rename from assets/shared/images/momCar.png rename to assets/week4/images/momCar.png diff --git a/assets/shared/images/momCar.xml b/assets/week4/images/momCar.xml similarity index 100% rename from assets/shared/images/momCar.xml rename to assets/week4/images/momCar.xml diff --git a/assets/shared/music/gameOver-pixel.mp3 b/assets/week6/music/gameOver-pixel.mp3 similarity index 100% rename from assets/shared/music/gameOver-pixel.mp3 rename to assets/week6/music/gameOver-pixel.mp3 diff --git a/assets/shared/music/gameOver-pixel.ogg b/assets/week6/music/gameOver-pixel.ogg similarity index 100% rename from assets/shared/music/gameOver-pixel.ogg rename to assets/week6/music/gameOver-pixel.ogg diff --git a/assets/shared/music/gameOverEnd-pixel.mp3 b/assets/week6/music/gameOverEnd-pixel.mp3 similarity index 100% rename from assets/shared/music/gameOverEnd-pixel.mp3 rename to assets/week6/music/gameOverEnd-pixel.mp3 diff --git a/assets/shared/music/gameOverEnd-pixel.ogg b/assets/week6/music/gameOverEnd-pixel.ogg similarity index 100% rename from assets/shared/music/gameOverEnd-pixel.ogg rename to assets/week6/music/gameOverEnd-pixel.ogg From ee3c001648ecf853679dea655ff1402103a5e526 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Mon, 15 Feb 2021 15:49:13 -0600 Subject: [PATCH 09/11] oices path --- source/ChartingState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index a987741..cc024cc 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -354,7 +354,7 @@ class ChartingState extends MusicBeatState FlxG.sound.playMusic(Paths.inst(daSong), 0.6); // WONT WORK FOR TUTORIAL OR TEST SONG!!! REDO LATER - vocals = new FlxSound().loadEmbedded(Paths.music(daSong + "_Voices")); + vocals = new FlxSound().loadEmbedded(Paths.voices(daSong)); FlxG.sound.list.add(vocals); FlxG.sound.music.pause(); From 4345d8cbca75bace625817f1dba89cc1fa3599b1 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Mon, 15 Feb 2021 16:07:20 -0600 Subject: [PATCH 10/11] move cancelMenu to preload library --- assets/{shared => preload}/sounds/cancelMenu.mp3 | Bin assets/{shared => preload}/sounds/cancelMenu.ogg | Bin 2 files changed, 0 insertions(+), 0 deletions(-) rename assets/{shared => preload}/sounds/cancelMenu.mp3 (100%) rename assets/{shared => preload}/sounds/cancelMenu.ogg (100%) diff --git a/assets/shared/sounds/cancelMenu.mp3 b/assets/preload/sounds/cancelMenu.mp3 similarity index 100% rename from assets/shared/sounds/cancelMenu.mp3 rename to assets/preload/sounds/cancelMenu.mp3 diff --git a/assets/shared/sounds/cancelMenu.ogg b/assets/preload/sounds/cancelMenu.ogg similarity index 100% rename from assets/shared/sounds/cancelMenu.ogg rename to assets/preload/sounds/cancelMenu.ogg From 1bc83d7a2dd42e5da3510d71e1a9b52bb41ef97f Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Tue, 23 Feb 2021 23:14:18 -0500 Subject: [PATCH 11/11] small shit characters dunno this shit weird lol --- source/Character.hx | 4 ++-- source/PlayState.hx | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/Character.hx b/source/Character.hx index 4177e2b..e13abde 100644 --- a/source/Character.hx +++ b/source/Character.hx @@ -622,8 +622,8 @@ class Character extends FlxSprite { animation.play(AnimName, Force, Reversed, Frame); - var daOffset = animOffsets.get(animation.curAnim.name); - if (animOffsets.exists(animation.curAnim.name)) + var daOffset = animOffsets.get(AnimName); + if (animOffsets.exists(AnimName)) { offset.set(daOffset[0], daOffset[1]); } diff --git a/source/PlayState.hx b/source/PlayState.hx index 6473571..6631271 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -124,6 +124,10 @@ class PlayState extends MusicBeatState override public function create() { + + if (FlxG.sound.music != null) + FlxG.sound.music.stop(); + // var gameCam:FlxCamera = FlxG.camera; camGame = new FlxCamera(); camHUD = new FlxCamera();