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

  • \$\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\$ – DMGregory Mar 6 '17 at 5:03
  • \$\begingroup\$ Yes but whether it is right to make the communication between server and client about monsters(AI) with sockets. \$\endgroup\$ – Георги Няголов Mar 6 '17 at 12:55
  • 1
    \$\begingroup\$ Why would it be not right? Help us understand what specific problem you've found. \$\endgroup\$ – DMGregory Mar 6 '17 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\$ – Engineer Mar 6 '17 at 18:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.