Online turn based game

Hello,

Can someone point me in the right direction of making a game like draw something, and ruzzle?
Where can I find good information how to make a game where you can also play with friends, turn based?
I know how to make the game itself but I don’t have experience with “multiplayer” games and I dont know how far this is possible in corona.

Thanks in advance,

Alexander [import]uid: 118839 topic_id: 33344 reply_id: 333344[/import]

It’s all possible and this is a topic that’s been debated quite a bit in the last couple of weeks. It’s all heavily reliant on server-side logic, there’s a few guys on here that know quite a bit - in particular Ntero has been very helpful in sharing ideas.

Perhaps the demi-gods at Corona Labs might want to look at providing an in-depth tutorial on the subject considering the interest at the moment :wink: wink wink. [import]uid: 33275 topic_id: 33344 reply_id: 132411[/import]

Thanks for the reply, a tutorial would be great :slight_smile: Normally I would just go and try stuff out, but I never worked with online stuff before, and because it is online and connecting with other people I’m worried I might forget something important concerning the privacy of users. [import]uid: 118839 topic_id: 33344 reply_id: 132417[/import]

@alexander0, check out a game called Peek! it is developed in Corona and uses Game Minion as the back end service for multiplayer etc.

iOS https://itunes.apple.com/au/app/peek!-photo-guessing-game/id528963426?mt=8
Android https://play.google.com/store/apps/details?id=com.piranhabyte.peek

-Mohamed [import]uid: 144378 topic_id: 33344 reply_id: 132448[/import]

There is significant amounts of server side bits to make this work. But in general terms.

For a turn based game like WWF and DrawSomething, if you wanted to do your own, you would need a web hosting environment that supports a server side scripting language like PHP. Your host would have to provide your some database access (typically MySQL).

From your game you would use network.request() to run the server side scripts that would either get or put data to the database. In addition these type of games also use push notifications to let your opponent know they have a turn to take. That’s a simple overview because you also have to manage logging in and out, passing profile information (avatar, name) as well has managing the game turns. As long as it’s simple and you don’t need constant connections you would be in good shape. Where you can run into problems is in two areas. 1. You don’t have the skills to do the backend work. This is a big project to undertake if you don’t have quite a bit of experience working with PHP and database engines. 2. Most web hosts don’t scale very well if your app takes off. Services like Game Minion provide this service.

The other type of games like a fantasy role playing game where you need live data and your opponents are in the game at the same time require a different setup where you have a high speed message passing service similar to PubNub to get messages to the players as quickly as possible. In my days as a server programmer for a company that did this style game, we found it very important to not trust the players and we kept all the game rules running on a server on our farm. The infrastructure to support this drastically increases the complexity. But it doesn’t sound like this is what you’re looking for.

Rob [import]uid: 199310 topic_id: 33344 reply_id: 132497[/import]

It’s all possible and this is a topic that’s been debated quite a bit in the last couple of weeks. It’s all heavily reliant on server-side logic, there’s a few guys on here that know quite a bit - in particular Ntero has been very helpful in sharing ideas.

Perhaps the demi-gods at Corona Labs might want to look at providing an in-depth tutorial on the subject considering the interest at the moment :wink: wink wink. [import]uid: 33275 topic_id: 33344 reply_id: 132411[/import]

Thanks for the reply, a tutorial would be great :slight_smile: Normally I would just go and try stuff out, but I never worked with online stuff before, and because it is online and connecting with other people I’m worried I might forget something important concerning the privacy of users. [import]uid: 118839 topic_id: 33344 reply_id: 132417[/import]

Thanks alot for the clear explanation! I think im going to wait until I have spoken to our publisher, to see if they can somehow help us with this. And otherwise I will probably go for the gameminions option. Cause writing it myself in php is a bit too difficult cause i never made anything in php before. [import]uid: 118839 topic_id: 33344 reply_id: 132567[/import]

Fancy providing a more in-depth tutorial now you’re Staff then Rob :wink:

Congratulations BTW. [import]uid: 33275 topic_id: 33344 reply_id: 132579[/import]

@alexander0, check out a game called Peek! it is developed in Corona and uses Game Minion as the back end service for multiplayer etc.

iOS https://itunes.apple.com/au/app/peek!-photo-guessing-game/id528963426?mt=8
Android https://play.google.com/store/apps/details?id=com.piranhabyte.peek

-Mohamed [import]uid: 144378 topic_id: 33344 reply_id: 132448[/import]

I haven’t used it, but I think MOAI Cloud would work as server too: http://getmoai.com/pricing.html

You don’t have to use their SDK to make the game, you can use Corona and their Cloud service combined. I know Bubble Ball 2 is going to be made with Corona and use MOAI Cloud for the online made levels. [import]uid: 53195 topic_id: 33344 reply_id: 132608[/import]

There is significant amounts of server side bits to make this work. But in general terms.

For a turn based game like WWF and DrawSomething, if you wanted to do your own, you would need a web hosting environment that supports a server side scripting language like PHP. Your host would have to provide your some database access (typically MySQL).

From your game you would use network.request() to run the server side scripts that would either get or put data to the database. In addition these type of games also use push notifications to let your opponent know they have a turn to take. That’s a simple overview because you also have to manage logging in and out, passing profile information (avatar, name) as well has managing the game turns. As long as it’s simple and you don’t need constant connections you would be in good shape. Where you can run into problems is in two areas. 1. You don’t have the skills to do the backend work. This is a big project to undertake if you don’t have quite a bit of experience working with PHP and database engines. 2. Most web hosts don’t scale very well if your app takes off. Services like Game Minion provide this service.

The other type of games like a fantasy role playing game where you need live data and your opponents are in the game at the same time require a different setup where you have a high speed message passing service similar to PubNub to get messages to the players as quickly as possible. In my days as a server programmer for a company that did this style game, we found it very important to not trust the players and we kept all the game rules running on a server on our farm. The infrastructure to support this drastically increases the complexity. But it doesn’t sound like this is what you’re looking for.

Rob [import]uid: 199310 topic_id: 33344 reply_id: 132497[/import]

Thanks alot for the clear explanation! I think im going to wait until I have spoken to our publisher, to see if they can somehow help us with this. And otherwise I will probably go for the gameminions option. Cause writing it myself in php is a bit too difficult cause i never made anything in php before. [import]uid: 118839 topic_id: 33344 reply_id: 132567[/import]

Fancy providing a more in-depth tutorial now you’re Staff then Rob :wink:

Congratulations BTW. [import]uid: 33275 topic_id: 33344 reply_id: 132579[/import]

I haven’t used it, but I think MOAI Cloud would work as server too: http://getmoai.com/pricing.html

You don’t have to use their SDK to make the game, you can use Corona and their Cloud service combined. I know Bubble Ball 2 is going to be made with Corona and use MOAI Cloud for the online made levels. [import]uid: 53195 topic_id: 33344 reply_id: 132608[/import]