Skip to content

Serialization Design

PaulAlger05 edited this page Apr 9, 2022 · 27 revisions

The file format we will use for saving the state of the game and all it's components will be a binary file. The binary file will be saved with the following format:

currentLevel
 totalEnemies
 screens
 currentScreen
 currentRow
 currentCol
 currentLevel
...and so on

Where each variable corresponds to the variables of the object.

Ex.

  • currentLevel = The world's currentLevel variable
    • totalEnemies = the currentLevel's totalEnemies variable and so on...

Clone this wiki locally