Skip to content

GameOverModule

Celestial Body Schema / Definitions / GameOverModule
Schema Type: JSON Type: object

No Description Found

text

Type: string

Text displayed in orange on game over. For localization, put translations under UI.


colour

Type: MColor

Change the colour of the game over text. Leave empty to use the default orange.

See Definitions/MColor

condition

Type: string

Condition that must be true for this game over to trigger. If this is on a LoadCreditsVolume, leave empty to always trigger this game over.
Note this is a regular dialogue condition, not a persistent condition.


audio

Type: string

The audio to use for the credits music. Can be a path to a .wav/.ogg/.mp3 file, or taken from the AudioClip list.
Credits will be silent unless this attribute is specified.
Note: only applies when creditsType is set to "custom".


audioVolume

Type: number Default: 1

The length of the fade in and out for the credits music.
Note: only applies when creditsType is set to "custom".


audioLooping

Type: boolean Default: false

Determines if the credits music should loop.
Note: only applies when creditsType is set to "custom".


length

Type: number Default: 120

Duration of the credits scroll in seconds.
Note: only applies when creditsType is set to "custom".


creditsType

Type: NHCreditsType Default: fast

The type of credits that will run after the game over message is shown

See Definitions/NHCreditsType