FreeplayState
| Kind | class |
| Package | states |
| Full name | states.FreeplayState |
| Source | source/states/FreeplayState.hx |
| Extends | MusicBeatState |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
curPlaying | Bool | yes | false | — |
instPlaying | Int | yes | -1 | — |
vocals | FlxSound | yes | null | — |
opponentVocals | FlxSound | yes | null | — |
Public methods
onResize
override function onResize(width:Int, height:Int):Void
| Parameter | Type | Default |
|---|---|---|
width | Int | — |
height | Int | — |
addSong
function addSong(songName:String, weekNum:Int, songCharacter:String, color:Int)
| Parameter | Type | Default |
|---|---|---|
songName | String | — |
weekNum | Int | — |
songCharacter | String | — |
color | Int | — |
destroyFreeplayVocals
static function destroyFreeplayVocals()
updateTexts
function updateTexts(elapsed:Float = 0.0)
| Parameter | Type | Default |
|---|---|---|
elapsed (optional) | Float | 0.0 |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
songs | Array<SongMetadata> | no |
curSelected | Int | yes |
curDifficulty | Int | no |
lastDifficultyName | String | yes |
scoreBG | FlxSprite | no |
scoreText | FlxText | no |
searchText | FlxText | no |
diffText | FlxText | no |
lerpScore | Float | no |
lerpRating | Float | no |
intendedScore | Float | no |
intendedRating | Float | no |
requiredRamLoad | Float | no |
noteCount | Float | no |
bottomString | String | no |
bottomText | FlxText | no |
bottomBG | FlxSprite | no |
grpSongs | FlxTypedGroup<Alphabet> | no |
grpIcons | FlxTypedGroup<HealthIcon> | no |
lerpSelected | Float | no |
bg | FlxSprite | no |
intendedColor | Int | no |
colorTween | FlxTween | no |
missingTextBG | FlxSprite | no |
missingText | FlxText | no |
songSearchText | FlxUIInputText | no |
buttonTop | FlxButton | no |
player | MusicPlayer | no |
layoutWidth | Int | no |
holdTime | Float | no |
_drawDistance | Int | no |
_lastVisibles | Array<Int> | no |
| Method |
|---|
override function create() |
function checkForSongsThatMatch(start:String = '') |
function regenerateSongs(start:String = '') |
override function closeSubState() |
function weekIsLocked(name:String):Bool |
function regenList() |
override function update(elapsed:Float) |
function getVocalFromCharacter(char:String) |
function changeDiff(change:Int = 0) |
function changeSelection(change:Int = 0, playSound:Bool = true) |
function positionHighscore() |
override function beatHit() |