Game Definition
8 nodes
On this page 8
Check Game
FunctionChecks a definition: its story against its files.
Signature
CheckGame(game: Game Definition) -> Text Array
string[] CheckGame(GameDefinition game)
Parameters
| name | type | default | description |
|---|---|---|---|
| game | Game Definition | — |
Returns
| Problems | Text 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
FunctionMakes a game definition from a story.
Signature
MakeGameDefinition -> Game Definition
title: Text
story: Story
width: Integer
height: IntegerGameDefinition MakeGameDefinition(
string title,
Story story,
int width = 1280,
int height = 720)Parameters
| name | type | default | description |
|---|---|---|---|
| title | Text | — | The game's name. |
| story | Story | — | The story. |
| width | Integer | 1280 | The resolution's width. |
| height | Integer | 720 | The resolution's height. |
Returns
| Game | Game 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
FunctionRuns 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
| name | type | default | description |
|---|---|---|---|
| game | Game 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
FunctionA definition that reads files from a folder on disk.
Signature
WithAssetFolder -> Game Definition
game: Game Definition
folder: TextGameDefinition WithAssetFolder(
GameDefinition game,
string folder)Parameters
| name | type | default | description |
|---|---|---|---|
| game | Game Definition | — | |
| folder | Text | — |
Returns
| Game | Game Definition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Game Definition
- Package
- Novella Visual Novels
With Config
FunctionA definition with a configuration setting changed, as define config.key does.
Signature
WithConfig -> Game Definition
game: Game Definition
key: Text
value: TextGameDefinition WithConfig(
GameDefinition game,
string key,
string value)Parameters
| name | type | default | description |
|---|---|---|---|
| game | Game Definition | — | |
| key | Text | — | |
| value | Text | — |
Returns
| Game | Game 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
FunctionA 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: TruthGameDefinition WithLibraryAssets(
GameDefinition game,
IDivookaAssetLibrary _library,
bool loadScripts = false)Parameters
| name | type | default | description |
|---|---|---|---|
| game | Game Definition | — | The definition. |
| _library | IDivookaAssetLibrary | — | The document's library (supplied automatically). |
| loadScripts | Truth | False | Also add the library's .novella scripts to the story. |
Returns
| Game | Game Definition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Game Definition
- Package
- Novella Visual Novels
With Story
FunctionA definition with another story's content added.
Signature
WithStory -> Game Definition
game: Game Definition
story: StoryGameDefinition WithStory(GameDefinition game, Story story)
Parameters
| name | type | default | description |
|---|---|---|---|
| game | Game Definition | — | |
| story | Story | — |
Returns
| Game | Game Definition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Game Definition
- Package
- Novella Visual Novels
With Theme
FunctionA 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: TextGameDefinition WithTheme(
GameDefinition game,
string key,
string value)Parameters
| name | type | default | description |
|---|---|---|---|
| game | Game Definition | — | |
| key | Text | — | |
| value | Text | — |
Returns
| Game | Game Definition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Game Definition
- Package
- Novella Visual Novels