diff --git a/assets/preload/data/winter-horrorland/winter-horrorlandDialogue.txt b/assets/preload/data/winter-horrorland/winter-horrorlandDialogue.txt new file mode 100644 index 0000000..93d742a --- /dev/null +++ b/assets/preload/data/winter-horrorland/winter-horrorlandDialogue.txt @@ -0,0 +1,20 @@ +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:dad:i am the frosted one +:bf:ok \ No newline at end of file diff --git a/source/DialogueBox.hx b/source/DialogueBox.hx index ab3bf3a..ad96ba5 100644 --- a/source/DialogueBox.hx +++ b/source/DialogueBox.hx @@ -88,6 +88,12 @@ class DialogueBox extends FlxSpriteGroup var face:FlxSprite = new FlxSprite(320, 170).loadGraphic(Paths.image('weeb/spiritFaceForward')); face.setGraphicSize(Std.int(face.width * 6)); add(face); + case 'winter-horrorland': + 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); + + hasDialog = true; } this.dialogueList = dialogueList; diff --git a/source/PlayState.hx b/source/PlayState.hx index f4ef3b8..e2e9b46 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -256,6 +256,8 @@ class PlayState extends MusicBeatState dialogue = CoolUtil.coolTextFile(Paths.txt('roses/rosesDialogue')); case 'thorns': dialogue = CoolUtil.coolTextFile(Paths.txt('thorns/thornsDialogue')); + case 'winter-horrorland': + dialogue = CoolUtil.coolTextFile(Paths.txt('winter-horrorland/winter-horrorlandDialogue')); } if (SONG.song.toLowerCase() == 'spookeez' || SONG.song.toLowerCase() == 'monster' || SONG.song.toLowerCase() == 'south') @@ -832,7 +834,7 @@ class PlayState extends MusicBeatState ease: FlxEase.quadInOut, onComplete: function(twn:FlxTween) { - startCountdown(); + startDialogue(doof); } }); }); @@ -860,6 +862,18 @@ class PlayState extends MusicBeatState super.create(); } + function startDialogue(?dialogueBox:DialogueBox):Void { + if (dialogueBox != null) { + new FlxTimer().start(0.3, function(tmr:FlxTimer){ + inCutscene = true; + + add(dialogueBox); + }); + } + else + startCountdown(); + } + function schoolIntro(?dialogueBox:DialogueBox):Void { var black:FlxSprite = new FlxSprite(-100, -100).makeGraphic(FlxG.width * 2, FlxG.height * 2, FlxColor.BLACK);