I am planning some small games that will all rely on a single system of Lua scripts to manage some unified data about:
- Some achievements that are common to each game.
- The player's progress in completing the achievements.
Players would need to have these three parts on their system to play:
- This small set of three unifying Lua scripts.
- A single data file containing a list of challenges and the status of the player's progress in completing each.
- At least one of the small games.
The three Lua scripts manage the player's progress data file:
- One script tells the game which challenge the player needs to complete next.
- Another script updates the data file with information about the player's progress.
- A final script calculates statistical information about the player's progress. A game can check use this script and decide which of this information it will show to the players.
So far, I am having the games execute the Lua scripts and using
stdout to communicate information between the games and Lua scripts placed in a
bin directory, which seems to work well on Linux, but I need a solution that works equally on Windows, OS X, and mobile devices and that will not be a challenge for players to install. Is this a more preferred method?
- Other developers using different programming languages should be able to easily connect their games to this system.
- Everything is stored locally, nothing uses the Internet.