how to send and get multiple response ?

0 votes
I am developing Action base Multi-Player game, like space shooter, In this game i am facing issue about sending multiple data and receiving Multiple data.

Ex:

In Space shooter game, have so many resources like, Asteroids, Bullets, Score, Spaceship movement etc,

- I want to send , All resources coordinate at a time, and those all movement display on the opponent Screen.

 

Please Give me, reply........
asked Apr 15, 2015 in AppWarp by tarbundiyahitesh21 (81 points)
edited Apr 15, 2015 by tarbundiyahitesh21

1 Answer

0 votes
Hi,
 
You should send message when an action occurs instead of sending messages continuously. You can send messages as JSON messages. Create JSON messages such that they represents the object and its action. For example, in case of asteroid, send first message  with initial position and velocity. Then you can simulate the asteroid on other side. Then when it changes its direction or hit's other object send that info.  Do same for all objects.
 
Thanks
answered Apr 16, 2015 by Suyash Mohan (900 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...