recharted Fresh

This commit is contained in:
Cameron Taylor 2020-10-21 11:05:27 -07:00
parent 8ec6f229aa
commit aaaf633f58
24 changed files with 77 additions and 25 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

View File

@ -5,4 +5,6 @@ HenryEYES
Clone Hero
Tom Fulp
StuffedWombat
mmatt_ugh
mmatt_ugh
Squidly
Luis

Binary file not shown.

Binary file not shown.

54
source/FreeplayState.hx Normal file
View File

@ -0,0 +1,54 @@
package;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.text.FlxText;
class FreeplayState extends MusicBeatState
{
var songs:Array<String> = ["Bopeebo", "Dadbattle", "Fresh", "Tutorial"];
var selector:FlxText;
var curSelected:Int = 0;
override function create()
{
// LOAD MUSIC
// LOAD CHARACTERS
for (i in 0...songs.length)
{
var songText:FlxText = new FlxText(10, (26 * i) + 30, 0, songs[i], 24);
add(songText);
}
selector = new FlxText();
selector.size = 24;
selector.text = ">";
add(selector);
super.create();
}
override function update(elapsed:Float)
{
if (FlxG.keys.justPressed.UP)
{
curSelected -= 1;
}
if (FlxG.keys.justPressed.DOWN)
{
curSelected += 1;
}
if (curSelected < 0)
curSelected = songs.length - 1;
if (curSelected >= songs.length)
curSelected = 0;
selector.y = (26 * curSelected) + 30;
super.update(elapsed);
}
}

View File

@ -9,7 +9,7 @@ class Main extends Sprite
public function new()
{
super();
addChild(new FlxGame(0, 0, TitleState));
addChild(new FlxGame(0, 0, ChartingState));
#if !mobile
addChild(new FPS(10, 3, 0xFFFFFF));

View File

@ -1,15 +0,0 @@
package;
class NoteMeta
{
public var strumTime:Float = 0;
public var noteData:Int = 0;
public var sustainLength:Float = 0;
public function new(strumTime:Float, noteData:Int, sustain:Float)
{
this.strumTime = strumTime;
this.noteData = noteData;
sustainLength = sustain;
}
}

View File

@ -113,7 +113,12 @@ class TitleState extends MusicBeatState
pressedEnter = true;
}
if (pressedEnter && !transitioning)
if (pressedEnter && !skippedIntro)
{
skipIntro();
}
if (pressedEnter && !transitioning && skippedIntro)
{
FlxG.camera.flash(FlxColor.WHITE, 1);
@ -170,8 +175,18 @@ class TitleState extends MusicBeatState
credTextShit.text += '\nFunkin';
case 16:
FlxG.camera.flash(FlxColor.WHITE, 4);
remove(credGroup);
skipIntro();
}
}
var skippedIntro:Bool = false;
function skipIntro():Void
{
if (!skippedIntro)
{
FlxG.camera.flash(FlxColor.WHITE, 4);
remove(credGroup);
}
}
}