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



\> **exportGameState**(): [`GameState`](/jsdoc/pixi-vn/index/interfaces/GameState)

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

Get all the game data. It can be used to save the game.

Returns [#returns]

[`GameState`](/jsdoc/pixi-vn/index/interfaces/GameState)

The game data
