Skip to main content

GameOverSubstate

Kindclass
Packagestates.substates
Full namestates.substates.GameOverSubstate
Sourcesource/states/substates/GameOverSubstate.hx
ExtendsMusicBeatSubstate

Public fields​

NameTypeStaticDefaultNotes
boyfriendCharacterno——
genericCharacterFlxSpriteno——
characterNameStringyes'bf-dead'—
deathSoundNameStringyes'fnf_loss_sfx'—
loopSoundNameStringyes'gameOver'—
endSoundNameStringyes'gameOverEnd'—
deathDelayFloatyes0—
genericNameStringyes——
genericSoundStringyes——
genericMusicStringyes——
instanceGameOverSubstateyes——

Public methods​

onResize​

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

View source

new (constructor)​

function new(?char:Character, ps:PlayState)
ParameterTypeDefault
char (optional)Character—
psPlayState—

View source

resetVariables​

static function resetVariables()

View source

Internals​

Private / internal members
FieldTypeStatic
camFollowFlxPointno
camFollowPosFlxObjectno
stagePostfixStringno
parentPlayStatePlayStateno
charXFloatno
charYFloatno
overlayFlxSpriteno
overlayConfirmOffsetsFlxPointno
isEndingBoolno
Method
function createDeathCharacter(char:Character, game:PlayState)
inline function startGeneric()
function doGenericGameOver()
inline function usingCharacter():Bool
override function create()
override function update(elapsed:Float)
function coolStartDeath(volume:Float = 1):Void
function endGameOver():Void
override function destroy()