# 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/efc9536feda21bc17c50370f5e35fd8d8d88843a/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
