idk campaign menu shit

This commit is contained in:
Cameron Taylor 2021-02-02 02:20:14 -05:00
parent c66eb94ccf
commit 385097941c
4 changed files with 45 additions and 10 deletions

View file

@ -22,7 +22,7 @@ class MainMenuState extends MusicBeatState
var menuItems:FlxTypedGroup<FlxSprite>; var menuItems:FlxTypedGroup<FlxSprite>;
#if !switch #if !switch
var optionShit:Array<String> = ['story mode', 'freeplay', 'donate', 'options']; var optionShit:Array<String> = ['story mode', 'freeplay', 'donate'];
#else #else
var optionShit:Array<String> = ['story mode', 'freeplay']; var optionShit:Array<String> = ['story mode', 'freeplay'];
#end #end

View file

@ -24,6 +24,7 @@ class MenuCharacter extends FlxSprite
animation.addByPrefix('pico', "Pico Idle Dance", 24); animation.addByPrefix('pico', "Pico Idle Dance", 24);
animation.addByPrefix('mom', "Mom Idle BLACK LINES", 24); animation.addByPrefix('mom', "Mom Idle BLACK LINES", 24);
animation.addByPrefix('parents-christmas', "Parent Christmas Idle", 24); animation.addByPrefix('parents-christmas', "Parent Christmas Idle", 24);
animation.addByPrefix('senpai', "SENPAI idle Black Lines", 24);
// Parent Christmas Idle // Parent Christmas Idle
animation.play(character); animation.play(character);

View file

@ -25,6 +25,7 @@ class MenuItem extends FlxSpriteGroup
week.animation.addByPrefix('week3', "Week 3 press", 24); week.animation.addByPrefix('week3', "Week 3 press", 24);
week.animation.addByPrefix('week4', "Week 4 press", 24); week.animation.addByPrefix('week4', "Week 4 press", 24);
week.animation.addByPrefix('week5', "week 5", 24); week.animation.addByPrefix('week5', "week 5", 24);
week.animation.addByPrefix('week6', "Week 6", 24);
add(week); add(week);
week.animation.play('week' + weekNum); week.animation.play('week' + weekNum);

View file

@ -24,11 +24,12 @@ class StoryMenuState extends MusicBeatState
['Spookeez', 'South'], ['Spookeez', 'South'],
['Pico', 'Philly', "Blammed"], ['Pico', 'Philly', "Blammed"],
['Satin-Panties', "High", "Milf"], ['Satin-Panties', "High", "Milf"],
['Cocoa', 'Eggnog', 'Winter-Horrorland'] ['Cocoa', 'Eggnog', 'Winter-Horrorland'],
['Senpai', 'Roses', 'Thorns']
]; ];
var curDifficulty:Int = 1; var curDifficulty:Int = 1;
public static var weekUnlocked:Array<Bool> = [true, true, true, true, true, true]; public static var weekUnlocked:Array<Bool> = [true, true, true, true, true, true, true];
var weekCharacters:Array<Dynamic> = [ var weekCharacters:Array<Dynamic> = [
['dad', 'bf', 'gf'], ['dad', 'bf', 'gf'],
@ -36,8 +37,22 @@ class StoryMenuState extends MusicBeatState
['spooky', 'bf', 'gf'], ['spooky', 'bf', 'gf'],
['pico', 'bf', 'gf'], ['pico', 'bf', 'gf'],
['mom', 'bf', 'gf'], ['mom', 'bf', 'gf'],
['parents-christmas', 'bf', 'gf'] ['parents-christmas', 'bf', 'gf'],
['senpai', 'bf', 'gf']
]; ];
var weekNames:Array<String> = [
"",
"Daddy Dearest",
"Spooky Month",
"PICO",
"MOMMY MUST MURDER",
"RED SNOW",
"hating simulator ft. moawling"
];
var txtWeekTitle:FlxText;
var curWeek:Int = 0; var curWeek:Int = 0;
var txtTracklist:FlxText; var txtTracklist:FlxText;
@ -65,6 +80,10 @@ class StoryMenuState extends MusicBeatState
scoreText = new FlxText(10, 10, 0, "SCORE: 49324858", 36); scoreText = new FlxText(10, 10, 0, "SCORE: 49324858", 36);
scoreText.setFormat("VCR OSD Mono", 32); scoreText.setFormat("VCR OSD Mono", 32);
txtWeekTitle = new FlxText(FlxG.width * 0.7, 10, 0, "", 32);
txtWeekTitle.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, RIGHT);
txtWeekTitle.alpha = 0.7;
var rankText:FlxText = new FlxText(0, 10); var rankText:FlxText = new FlxText(0, 10);
rankText.text = 'RANK: GREAT'; rankText.text = 'RANK: GREAT';
rankText.setFormat("assets/fonts/vcr.ttf", 32); rankText.setFormat("assets/fonts/vcr.ttf", 32);
@ -132,11 +151,8 @@ class StoryMenuState extends MusicBeatState
weekCharacterThing.setGraphicSize(Std.int(weekCharacterThing.width * 0.5)); weekCharacterThing.setGraphicSize(Std.int(weekCharacterThing.width * 0.5));
weekCharacterThing.updateHitbox(); weekCharacterThing.updateHitbox();
case 'pico': case 'pico':
weekCharacterThing.y += 170;
weekCharacterThing.flipX = true; weekCharacterThing.flipX = true;
weekCharacterThing.x -= 40;
case 'parents-christmas': case 'parents-christmas':
weekCharacterThing.x -= 600;
weekCharacterThing.setGraphicSize(Std.int(weekCharacterThing.width * 0.9)); weekCharacterThing.setGraphicSize(Std.int(weekCharacterThing.width * 0.9));
weekCharacterThing.updateHitbox(); weekCharacterThing.updateHitbox();
} }
@ -185,6 +201,7 @@ class StoryMenuState extends MusicBeatState
add(txtTracklist); add(txtTracklist);
// add(rankText); // add(rankText);
add(scoreText); add(scoreText);
add(txtWeekTitle);
updateText(); updateText();
@ -199,6 +216,10 @@ class StoryMenuState extends MusicBeatState
lerpScore = Math.floor(FlxMath.lerp(lerpScore, intendedScore, 0.5)); lerpScore = Math.floor(FlxMath.lerp(lerpScore, intendedScore, 0.5));
scoreText.text = "WEEK SCORE:" + lerpScore; scoreText.text = "WEEK SCORE:" + lerpScore;
txtWeekTitle.text = weekNames[curWeek].toUpperCase();
txtWeekTitle.x = FlxG.width - (txtWeekTitle.width + 10);
// FlxG.watch.addQuick('font', scoreText.font); // FlxG.watch.addQuick('font', scoreText.font);
difficultySelectors.visible = weekUnlocked[curWeek]; difficultySelectors.visible = weekUnlocked[curWeek];
@ -375,11 +396,23 @@ class StoryMenuState extends MusicBeatState
switch (grpWeekCharacters.members[0].animation.curAnim.name) switch (grpWeekCharacters.members[0].animation.curAnim.name)
{ {
case 'parents-christmas': case 'parents-christmas':
grpWeekCharacters.members[0].offset.x = 250; grpWeekCharacters.members[0].offset.set(200, 200);
grpWeekCharacters.members[0].setGraphicSize(Std.int(grpWeekCharacters.members[0].width * 0.97)); grpWeekCharacters.members[0].setGraphicSize(Std.int(grpWeekCharacters.members[0].width * 0.99));
case 'senpai':
grpWeekCharacters.members[0].offset.set(130, 0);
grpWeekCharacters.members[0].setGraphicSize(Std.int(grpWeekCharacters.members[0].width * 1.4));
case 'mom':
grpWeekCharacters.members[0].offset.set(100, 200);
grpWeekCharacters.members[0].setGraphicSize(Std.int(grpWeekCharacters.members[0].width * 1));
case 'dad':
grpWeekCharacters.members[0].offset.set(120, 200);
grpWeekCharacters.members[0].setGraphicSize(Std.int(grpWeekCharacters.members[0].width * 1));
default: default:
grpWeekCharacters.members[0].offset.x = 100; grpWeekCharacters.members[0].offset.set(100, 100);
grpWeekCharacters.members[0].setGraphicSize(Std.int(grpWeekCharacters.members[0].width * 1)); grpWeekCharacters.members[0].setGraphicSize(Std.int(grpWeekCharacters.members[0].width * 1));
// grpWeekCharacters.members[0].updateHitbox(); // grpWeekCharacters.members[0].updateHitbox();
} }