Some questions about multiplayer turn based games in Corona Cloud.

Hi!

We’re trying to develop a turn based game with Corona Cloud, but, as we are moving forward with the project some doubts are arising… maybe someone from Corona (Rob, Mohamed) or even other developers can help us.

Here are the questions:

  1. How longer is the data of the matches stored? If two players are playing and one of them simply stops opening the app… how longer will the other player can access that match?

  2. How to control “dead users”? We’re trying to give a reward to a player if the other player in the just disappear and doesn’t send any move in some days… which is the right way to do this? Maybe getting the match data, reviewing the last player who submited a move and the date and do some code tricks in the player side…

  3. Is there any way to submit some custom data? For example, if a player wants to submit a trendy quote to be displayed to anyone who sees his profile, or submit some data about a match created, like “size = 5x5”, we are sending this data as movecontent in the first turn, and then the rest of the match is played starting from the 2 turn… but we think there should be a better way to do this…

And at last:

  • Is there any way to see into the Cloud Console our API monthly usage? How could we know it’s time to upgrade our plan?

Thank you!

Hi,

  1. Our strategy is to purge (delete) games that don’t receive any moves for 14 days.

  2. Yes, I think your way sounds good.

  3. Currently we don’t provide a way to send custom data, this is planned. Doing it in the 1st move is very clever and should do the job for now.

We should be providing the Cloud analytics on the Portal, so you will have complete visibility on all API and features used.

Thanks

-Mohamed

I like to send my move data by having it all in a Lua table, then doing a json.encode(mygamedatatable) and using that string to send.  Unless you’re game data is large, it won’t hurt to have an initial parameters table in your data table and pass it with each turn if it’s just a small amount of data.

Hi,

  1. Our strategy is to purge (delete) games that don’t receive any moves for 14 days.

  2. Yes, I think your way sounds good.

  3. Currently we don’t provide a way to send custom data, this is planned. Doing it in the 1st move is very clever and should do the job for now.

We should be providing the Cloud analytics on the Portal, so you will have complete visibility on all API and features used.

Thanks

-Mohamed

I like to send my move data by having it all in a Lua table, then doing a json.encode(mygamedatatable) and using that string to send.  Unless you’re game data is large, it won’t hurt to have an initial parameters table in your data table and pass it with each turn if it’s just a small amount of data.