1
\$\begingroup\$

First hello and sorry for my English, and now about my problem. I create node.js server that communicates with the browser-client for player position, life, def, etc ... with sockets.io. And my question is how can i do and communication between server and client about this monster(bot) object? A small example of what I mean

\$\endgroup\$
4
  • \$\begingroup\$ What have you tried so far? Why won't the strategies for bi-directional communication you're already using for the player data work for the monster data? \$\endgroup\$ Commented Mar 6, 2017 at 5:03
  • \$\begingroup\$ Yes but whether it is right to make the communication between server and client about monsters(AI) with sockets. \$\endgroup\$ Commented Mar 6, 2017 at 12:55
  • 1
    \$\begingroup\$ Why would it be not right? Help us understand what specific problem you've found. \$\endgroup\$ Commented Mar 6, 2017 at 13:20
  • \$\begingroup\$ Stop thinking in terms of "right" and "wrong" and just focus on making things work for now. Then once you identify actual problems, come back and present them. Also, this is a very open-ended question and those are not a good fit for this site. \$\endgroup\$ Commented Mar 6, 2017 at 18:13

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.