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?

\$\begingroup\$
\$\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\$DMGregory– DMGregory ♦2017-03-06 05:03:39 +00:00Commented 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\$Георги Няголов– Георги Няголов2017-03-06 12:55:26 +00:00Commented Mar 6, 2017 at 12:55
-
1\$\begingroup\$ Why would it be not right? Help us understand what specific problem you've found. \$\endgroup\$DMGregory– DMGregory ♦2017-03-06 13:20:31 +00:00Commented 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\$Engineer– Engineer2017-03-06 18:13:24 +00:00Commented Mar 6, 2017 at 18:13
Add a comment
|