Skip to main content

FreeplayState

Kindclass
Packagestates
Full namestates.FreeplayState
Sourcesource/states/FreeplayState.hx
ExtendsMusicBeatState

Public fields​

NameTypeStaticDefaultNotes
curPlayingBoolyesfalse—
instPlayingIntyes-1—
vocalsFlxSoundyesnull—
opponentVocalsFlxSoundyesnull—

Public methods​

onResize​

override function onResize(width:Int, height:Int):Void
ParameterTypeDefault
widthInt—
heightInt—

View source

addSong​

function addSong(songName:String, weekNum:Int, songCharacter:String, color:Int)
ParameterTypeDefault
songNameString—
weekNumInt—
songCharacterString—
colorInt—

View source

destroyFreeplayVocals​

static function destroyFreeplayVocals()

View source

updateTexts​

function updateTexts(elapsed:Float = 0.0)
ParameterTypeDefault
elapsed (optional)Float0.0

View source

Internals​

Private / internal members
FieldTypeStatic
songsArray<SongMetadata>no
curSelectedIntyes
curDifficultyIntno
lastDifficultyNameStringyes
scoreBGFlxSpriteno
scoreTextFlxTextno
searchTextFlxTextno
diffTextFlxTextno
lerpScoreFloatno
lerpRatingFloatno
intendedScoreFloatno
intendedRatingFloatno
requiredRamLoadFloatno
noteCountFloatno
bottomStringStringno
bottomTextFlxTextno
bottomBGFlxSpriteno
grpSongsFlxTypedGroup<Alphabet>no
grpIconsFlxTypedGroup<HealthIcon>no
lerpSelectedFloatno
bgFlxSpriteno
intendedColorIntno
colorTweenFlxTweenno
missingTextBGFlxSpriteno
missingTextFlxTextno
songSearchTextFlxUIInputTextno
buttonTopFlxButtonno
playerMusicPlayerno
layoutWidthIntno
holdTimeFloatno
_drawDistanceIntno
_lastVisiblesArray<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()