Need help with multiplayer game

Get help using Construct 2

Post » Mon Jul 03, 2017 1:03 pm

Hi,
I'm developing a small mobile game with multiplayer feature, where max of three people can play at a time. I could successfully run the multiplayer on three different browsers (haven't tested on a mobile, yet). Instead of everyone joining the game room, I want only people accepted my request to join the room.

For example take whatsapp, I can call any person from my phone contacts then my contact receives call request, if he/she accepts it we can have conversion or if they reject it you know what happens. If any of my contacts doesn't have whatsapp installed, I can invite them to install whatspp using invite button. Similarly, I want to send request to my contact having my game installed, if they accept it we can play together if they declines we don't play. And if any of my contact doesn't have my game installed I should be able to send the game link to them.

If anyone know anything about it. Please help.

Thanks.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Wed Jul 05, 2017 3:33 pm

You need a public and private API.

Your public API includes things like "accept match" and "exchange keys" and your private API contains all of your game logic.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Wed Jul 05, 2017 6:29 pm

Hey @gumshoe2029, thanks for responding. Could you please explain it in detail? I'm not so familiar with coding.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Fri Jul 14, 2017 6:32 pm

Sorry for the delay; life got crazy for a bit.

Your public API doesn't require your users to login to your website, while the private API requires either a login session or some kind of API key to be submitted with each request either in the URL parameters or as part of the HTTP headers.

Try to Google "private api"
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Microbex and 18 guests