T
T
Turar Abu2015-05-31 07:31:53
PHP
Turar Abu, 2015-05-31 07:31:53

How to pass client parameters to the client?

I decided to create a game similar to agar.io to develop my skills. And for me there was a problem when transferring client data to the client. For example: The player is heading in a certain direction, there is another player towards him. The problem is that I don't know how to transfer the coordinates, size, color and name of a player to another player. How is it even possible to pass two PHP variables that were created on different sides of the server-client? I will not use the database, because I use Comet and doing dozens of requests per second to the database for my server is a big load. Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2015-05-31
@kemply

web socket

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question