Skip to content

Commit

Permalink
what i have
Browse files Browse the repository at this point in the history
  • Loading branch information
x8c8r committed Jun 20, 2024
1 parent 9292d20 commit 9386849
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 11 deletions.
61 changes: 61 additions & 0 deletions source/CreditsState.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
package;

import flixel.tweens.FlxEase;
import flixel.tweens.FlxTween;
import flixel.FlxG;

class CreditsState extends MusicBeatState {
var curSelected:Int = 0;

var credits:Array<CreditsCredit> = [
{name: "Le devs", description: ""},
{name: "", description: ""},
{name: "x8c8r", description: "Coded a bunch of shit, made a few songs, redrew some graphics. i coded this menu i get to be first"},
{name: "didgie", description: "Also coded a bunch of shit, made almost every song, made sprites"},
{name: "poedev", description: "Also also coded a bunch of shit, also made a lot of sprites"},
{name: "jo560hs", description: "He was there i guess, provided some sprites for weeks 4 and 6"},
{name: "", description: ""},
{name: "Special Thanks", description: ""},
{name: "", description: ""},
{name: "earthlivecountry", description: "made fnf v2, goated"},
{name: "shadowmario", description: "thanks for being an inspiration mr mario"},
{name: "KadeDev", description: "Made Kade Engine lol"}
];

var grpCredits:Array<Alphabet> = [];

public override function create() {
super.create();

for (i in 0...credits.length) {
var thing:Alphabet = new Alphabet(64, 150 + (i*64), credits[i].name);
thing.targetY = i;
grpCredits.push(thing);
add(thing);
}

scroll(0);
}

public override function update(elapsed:Float) {
super.update(elapsed);

if (controls.BACK)
{
FlxG.switchState(new MainMenuState());
}

if (FlxG.keys.justPressed.DOWN)
scroll(1);
if (FlxG.keys.justPressed.UP)
scroll(-1);
}

function scroll(change:Int) {
}
}

typedef CreditsCredit = {
var name:String;
var description:String;
}
4 changes: 3 additions & 1 deletion source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MainMenuState extends MusicBeatState
var menuItems:FlxTypedGroup<FlxSprite>;

#if !switch
var optionShit:Array<String> = ['story mode', 'freeplay', 'donate', 'options'];
var optionShit:Array<String> = ['story mode', 'freeplay', 'donate', 'credits', 'options'];
#else
var optionShit:Array<String> = ['story mode', 'freeplay'];
#end
Expand Down Expand Up @@ -182,6 +182,8 @@ class MainMenuState extends MusicBeatState
FlxG.switchState(new FreeplayState());

trace("Freeplay Menu Selected");
case 'credits':
FlxG.switchState(new CreditsState());

case 'options':
FlxG.switchState(new OptionsMenu());
Expand Down
27 changes: 18 additions & 9 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,8 @@ class PlayState extends MusicBeatState
accDisplay = "Not an FC smh";
else if (accuracy >= 95)
accDisplay = "uhhh i guess its good?";
else if (accuracy >= 94)
accDisplay = "not the best";
else if (accuracy >= 93)
accDisplay = "93 lollll";
else if (accuracy >= 90)
Expand All @@ -1424,29 +1426,37 @@ class PlayState extends MusicBeatState
accDisplay = "WAS THAT THE BI-";
else if (accuracy >= 85)
accDisplay = "SFC (stands for shit fuck cake)";
else if (accuracy >= 84)
accDisplay = "speechless";
else if (accuracy >= 83)
accDisplay = "83 lollll";
else if (accuracy >= 73)
else if (accuracy >= 73 && accuracy <= 74)
accDisplay = "73 lollll";
else if (accuracy >= 69)
accDisplay = "haha sex";
else if (accuracy >= 63)
else if (accuracy >= 63 && accuracy <= 64)
accDisplay = "63 lollll";
else if (accuracy >= 56)
else if (accuracy >= 56 && accuracy <= 57)
accDisplay = "jo56hs";
else if (accuracy >= 55)
accDisplay = "im gonna leave this one blank in case anyone wants to change it later";
else if (accuracy >= 54)
accDisplay = "";
else if (accuracy >= 53)
accDisplay = "53 lollll";
else if (accuracy >= 43)
else if (accuracy >= 43 && accuracy <= 44)
accDisplay = "43 lollll";
else if (accuracy >= 33)
else if (accuracy >= 33 && accuracy <= 34)
accDisplay = "33 lollll";
else if (accuracy >= 23)
else if (accuracy >= 23 && accuracy <= 24)
accDisplay = "23 lollll";
else if (accuracy >= 13)
else if (accuracy >= 13 && accuracy <= 14)
accDisplay = "13 lollll";
else if (accuracy >= 10)
accDisplay = "certain death";
else if (accuracy >= 3)
else if (accuracy >= 5 && accuracy <= 6)
accDisplay = "this is my lucky number";
else if (accuracy >= 3 && accuracy <= 4)
accDisplay = "3 lollll";
else if (accuracy == 0)
accDisplay = "HOW ARE YOU STILL ALIVE";
Expand Down Expand Up @@ -2228,7 +2238,6 @@ class PlayState extends MusicBeatState
if (upP && spr.animation.curAnim.name != 'confirm')
{
spr.animation.play('pressed');
trace('play');
}
if (upR)
{
Expand Down
6 changes: 5 additions & 1 deletion source/ResultsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ResultsSubState extends MusicBeatSubstate {
var missText:FlxText;
var scoreText:FlxText;
var accText:FlxText;
var ratingText:FlxText;

var texts:FlxTypedGroup<FlxText>;
var playState:PlayState;
Expand All @@ -53,7 +54,8 @@ class ResultsSubState extends MusicBeatSubstate {
shitText = new FlxText(-150, 245, 0, "Shits: " + results.shit, 32, false);
missText = new FlxText(-150, 275, 0, "Misses: " + results.miss, 32, false);
scoreText = new FlxText(-150, 25, 0, "Score: " + results.score, 64, false);
accText = new FlxText(-150, 450, 0, "Accuracy: " + results.accuracy + "% (" + results.rating + ")", 48, false);
accText = new FlxText(-150, 450, 0, "Accuracy: " + results.accuracy, 48, false);
ratingText = new FlxText(-150, 500, 0, "Rating: " + results.rating, 48, false);

sickText.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, FlxTextAlign.LEFT);
goodText.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, FlxTextAlign.LEFT);
Expand All @@ -62,6 +64,7 @@ class ResultsSubState extends MusicBeatSubstate {
missText.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, FlxTextAlign.LEFT);
scoreText.setFormat(Paths.font("vcr.ttf"), 64, FlxColor.WHITE, FlxTextAlign.LEFT);
accText.setFormat(Paths.font("vcr.ttf"), 48, FlxColor.WHITE, FlxTextAlign.LEFT);
ratingText.setFormat(Paths.font("vcr.ttf"), 48, FlxColor.WHITE, FlxTextAlign.LEFT);

texts.add(sickText);
texts.add(goodText);
Expand All @@ -70,6 +73,7 @@ class ResultsSubState extends MusicBeatSubstate {
texts.add(missText);
texts.add(scoreText);
texts.add(accText);
texts.add(ratingText);
texts.add(exitText);

texts.forEach((t:FlxText) -> {
Expand Down

0 comments on commit 9386849

Please sign in to comment.