recharted Fresh
Before Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 123 B |
Before Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 125 B |
Before Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 149 B |
Before Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 116 B |
Before Width: | Height: | Size: 120 B |
Before Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 149 B |
Before Width: | Height: | Size: 117 B |
@ -5,4 +5,6 @@ HenryEYES
|
|||||||
Clone Hero
|
Clone Hero
|
||||||
Tom Fulp
|
Tom Fulp
|
||||||
StuffedWombat
|
StuffedWombat
|
||||||
mmatt_ugh
|
mmatt_ugh
|
||||||
|
Squidly
|
||||||
|
Luis
|
54
source/FreeplayState.hx
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
@ -9,7 +9,7 @@ class Main extends Sprite
|
|||||||
public function new()
|
public function new()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
addChild(new FlxGame(0, 0, TitleState));
|
addChild(new FlxGame(0, 0, ChartingState));
|
||||||
|
|
||||||
#if !mobile
|
#if !mobile
|
||||||
addChild(new FPS(10, 3, 0xFFFFFF));
|
addChild(new FPS(10, 3, 0xFFFFFF));
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -113,7 +113,12 @@ class TitleState extends MusicBeatState
|
|||||||
pressedEnter = true;
|
pressedEnter = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pressedEnter && !transitioning)
|
if (pressedEnter && !skippedIntro)
|
||||||
|
{
|
||||||
|
skipIntro();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pressedEnter && !transitioning && skippedIntro)
|
||||||
{
|
{
|
||||||
FlxG.camera.flash(FlxColor.WHITE, 1);
|
FlxG.camera.flash(FlxColor.WHITE, 1);
|
||||||
|
|
||||||
@ -170,8 +175,18 @@ class TitleState extends MusicBeatState
|
|||||||
credTextShit.text += '\nFunkin';
|
credTextShit.text += '\nFunkin';
|
||||||
|
|
||||||
case 16:
|
case 16:
|
||||||
FlxG.camera.flash(FlxColor.WHITE, 4);
|
skipIntro();
|
||||||
remove(credGroup);
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var skippedIntro:Bool = false;
|
||||||
|
|
||||||
|
function skipIntro():Void
|
||||||
|
{
|
||||||
|
if (!skippedIntro)
|
||||||
|
{
|
||||||
|
FlxG.camera.flash(FlxColor.WHITE, 4);
|
||||||
|
remove(credGroup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|