Skip to content

Commit

Permalink
i hate this
Browse files Browse the repository at this point in the history
  • Loading branch information
x8c8r committed Jun 20, 2024
1 parent 65933c8 commit 544b47f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions source/DialogueBox.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 15 additions & 1 deletion source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -832,7 +834,7 @@ class PlayState extends MusicBeatState
ease: FlxEase.quadInOut,
onComplete: function(twn:FlxTween)
{
startCountdown();
startDialogue(doof);
}
});
});
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 544b47f

Please sign in to comment.