Divooka Reference

Game Definition

8 nodes

On this page 8

Check Game

Function

Checks a definition: its story against its files.

Signature
CheckGame(game: Game Definition) -> Text Array
string[] CheckGame(GameDefinition game)

Parameters

nametypedefaultdescription
gameGame Definition—

Returns

ProblemsText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Game Definition
Package
Novella Visual Novels

Make Game Definition

Function

Makes a game definition from a story.

Signature
MakeGameDefinition -> Game Definition
    title: Text
    story: Story
    width: Integer
    height: Integer
GameDefinition MakeGameDefinition(
    string title,
    Story story,
    int width = 1280,
    int height = 720)

Parameters

nametypedefaultdescription
titleText—The game's name.
storyStory—The story.
widthInteger1280The resolution's width.
heightInteger720The resolution's height.

Returns

GameGame Definition
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Game Definition
Package
Novella Visual Novels

Run Game Definition

Function

Runs a definition in a window until it is closed. The procedural end of a functional description.

Signature
RunGameDefinition(game: Game Definition)
void RunGameDefinition(GameDefinition game)

Parameters

nametypedefaultdescription
gameGame Definition—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Game Definition
Package
Novella Visual Novels

With Asset Folder

Function

A definition that reads files from a folder on disk.

Signature
WithAssetFolder -> Game Definition
    game: Game Definition
    folder: Text
GameDefinition WithAssetFolder(
    GameDefinition game,
    string folder)

Parameters

nametypedefaultdescription
gameGame Definition—
folderText—

Returns

GameGame Definition
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Game Definition
Package
Novella Visual Novels

With Config

Function

A definition with a configuration setting changed, as define config.key does.

Signature
WithConfig -> Game Definition
    game: Game Definition
    key: Text
    value: Text
GameDefinition WithConfig(
    GameDefinition game,
    string key,
    string value)

Parameters

nametypedefaultdescription
gameGame Definition—
keyText—
valueText—

Returns

GameGame Definition
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Game Definition
Package
Novella Visual Novels

With Library Assets

Function

A definition that reads its files from the document's library: the images, sounds and scripts embedded in the document.

Signature
WithLibraryAssets -> Game Definition
    game: Game Definition
    _library: IDivookaAssetLibrary
    loadScripts: Truth
GameDefinition WithLibraryAssets(
    GameDefinition game,
    IDivookaAssetLibrary _library,
    bool loadScripts = false)

Parameters

nametypedefaultdescription
gameGame Definition—The definition.
_libraryIDivookaAssetLibrary—The document's library (supplied automatically).
loadScriptsTruthFalseAlso add the library's .novella scripts to the story.

Returns

GameGame Definition
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Game Definition
Package
Novella Visual Novels

With Story

Function

A definition with another story's content added.

Signature
WithStory -> Game Definition
    game: Game Definition
    story: Story
GameDefinition WithStory(GameDefinition game, Story story)

Parameters

nametypedefaultdescription
gameGame Definition—
storyStory—

Returns

GameGame Definition
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Game Definition
Package
Novella Visual Novels

With Theme

Function

A definition with a theme setting changed, as define theme.key does: a colour, a size, an image, a font.

Signature
WithTheme -> Game Definition
    game: Game Definition
    key: Text
    value: Text
GameDefinition WithTheme(
    GameDefinition game,
    string key,
    string value)

Parameters

nametypedefaultdescription
gameGame Definition—
keyText—
valueText—

Returns

GameGame Definition
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Game Definition
Package
Novella Visual Novels