GameOverSubstate
| Kind | class |
| Package | states.substates |
| Full name | states.substates.GameOverSubstate |
| Source | source/states/substates/GameOverSubstate.hx |
| Extends | MusicBeatSubstate |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
boyfriend | Character | no | — | — |
genericCharacter | FlxSprite | no | — | — |
characterName | String | yes | 'bf-dead' | — |
deathSoundName | String | yes | 'fnf_loss_sfx' | — |
loopSoundName | String | yes | 'gameOver' | — |
endSoundName | String | yes | 'gameOverEnd' | — |
deathDelay | Float | yes | 0 | — |
genericName | String | yes | — | — |
genericSound | String | yes | — | — |
genericMusic | String | yes | — | — |
instance | GameOverSubstate | yes | — | — |
Public methods
onResize
override function onResize(width:Int, height:Int):Void
| Parameter | Type | Default |
|---|---|---|
width | Int | — |
height | Int | — |
new (constructor)
function new(?char:Character, ps:PlayState)
| Parameter | Type | Default |
|---|---|---|
char (optional) | Character | — |
ps | PlayState | — |
resetVariables
static function resetVariables()
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
camFollow | FlxPoint | no |
camFollowPos | FlxObject | no |
stagePostfix | String | no |
parentPlayState | PlayState | no |
charX | Float | no |
charY | Float | no |
overlay | FlxSprite | no |
overlayConfirmOffsets | FlxPoint | no |
isEnding | Bool | no |
| 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() |