# Function: start() (/jsdoc/pixi-vn/index/namespaces/Game/functions/start)



\> **start**\<`T`>(`label`, `props`): `Promise`\<[`StepLabelResultType`](/jsdoc/pixi-vn/index/type-aliases/StepLabelResultType)>

Defined in: [src/index.ts:282](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/index.ts#L282)

Start the game with a label. This function will clear all the game data and start the narration from the specified label.

Type Parameters [#type-parameters]

T [#t]

`T` *extends* `object` = \{ }

Parameters [#parameters]

label [#label]

`string` | [`LabelAbstract`](/jsdoc/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`>

The label to start the game with. It can be a string or a LabelAbstract instance. If it is a string, it will be used as the id of the label to start. If it is a LabelAbstract instance, it will be used directly. If the label is not found, an error will be thrown.

props [#props]

[`StepLabelPropsType`](/jsdoc/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`>

The properties to pass to the label. It will be passed to the [StepLabelType](/jsdoc/pixi-vn/index/type-aliases/StepLabelType) of the label when it is executed.

Returns [#returns]

`Promise`\<[`StepLabelResultType`](/jsdoc/pixi-vn/index/type-aliases/StepLabelResultType)>

The result of the label execution. It can be a [StepLabelResultType](/jsdoc/pixi-vn/index/type-aliases/StepLabelResultType) or a Promise that resolves to a [StepLabelResultType](/jsdoc/pixi-vn/index/type-aliases/StepLabelResultType).
