Saves game data

In most of your games, you want to be able to save player progression through levels, across game session, across devices, etc. Here are some tips to have a first run with game data manipulation.


Like many arcade game, if you just need to save score, lives through levels and don't need them anymore when your game is restarted the AGameData dynamic class should be your friend. It is already instancied thanks to the CitrusEngine's gameData variable.

Shared Object

If you want to save a local game progression (be able to continue your game after it's closed), the SharedObject class will be your friend! Very easy to use, you can save values and objects via the SharedObject's dictionary.


Managing multi-users or complex data…


Leaderboards, Player, Entity, Stats…

  citrus/gamedata.txt · Last modified: 2013/11/11 01:14 by aymeric
Powered by DokuWiki