cleaner dialogue code

This commit is contained in:
CyndaquilDAC 2021-08-08 14:21:49 -05:00
parent 728d22ede8
commit ea1417d037
4 changed files with 12 additions and 33 deletions

View File

@ -456,32 +456,11 @@ class PlayState extends MusicBeatState
trace('INFORMATION ABOUT WHAT U PLAYIN WIT:\nFRAMES: ' + PlayStateChangeables.safeFrames + '\nZONE: ' + Conductor.safeZoneOffset + '\nTS: ' trace('INFORMATION ABOUT WHAT U PLAYIN WIT:\nFRAMES: ' + PlayStateChangeables.safeFrames + '\nZONE: ' + Conductor.safeZoneOffset + '\nTS: '
+ Conductor.timeScale + '\nBotPlay : ' + PlayStateChangeables.botPlay); + Conductor.timeScale + '\nBotPlay : ' + PlayStateChangeables.botPlay);
// dialogue shit
switch(songLowercase) switch(songLowercase)
{ {
case 'tutorial': //if the song has dialogue, so we don't accidentally try to load a nonexistant file and crash the game
dialogue = ["Hey you're pretty cute.", 'Use the arrow keys to keep up \nwith me singing.']; case 'senpai' | 'roses' | 'thorns':
case 'bopeebo': dialogue = CoolUtil.coolTextFile(Paths.txt('data/' + songLowercase + '/dialogue'));
dialogue = [
'HEY!',
"You think you can just sing\nwith my daughter like that?",
"If you want to date her...",
"You're going to have to go \nthrough ME first!"
];
case 'fresh':
dialogue = ["Not too shabby boy.", ""];
case 'dadbattle':
dialogue = [
"gah you think you're hot stuff?",
"If you can beat me here...",
"Only then I will even CONSIDER letting you\ndate my daughter!"
];
case 'senpai':
dialogue = CoolUtil.coolTextFile(Paths.txt('data/senpai/senpaiDialogue'));
case 'roses':
dialogue = CoolUtil.coolTextFile(Paths.txt('data/roses/rosesDialogue'));
case 'thorns':
dialogue = CoolUtil.coolTextFile(Paths.txt('data/thorns/thornsDialogue'));
} }
// defaults if no stage was found in chart // defaults if no stage was found in chart