Hi guys!
I’m quite a newbie when it comes to lua but I am very eager to learn and master lua+corona. Coming from a mediocre javascript and php background.
I’m creating a multiplayer collectible card game. Firstly, my approach is to store information about all the types of cards into an sqlite db with each card having a unique id (the default incremental id). Then, when users create their own deck of cards, I store that information only as id’s so that when they start a game session, the app retrieves the full data of the card from the db using only the id given in the player’s deck. The cards will also have special “skills” such as those seen in MTG.
Questions:
- Is this a correct approach to my db management?
- If it is, how do I perform it? If it isn’t, What’s a better way?
- How do I store the special “skills” in my db? Should I use JSON instead?
Thank you very much guys! I’m actively looking around reading tutorials and documentation. Just need someone to push me in the right direction