Unity 5 Multiplayer Networking Node.js socket.io : Node.js Server 9/16

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Thank you for sharing this video for future game client programmer || server programmer !

qkreltms
Автор

Thank you for the tutorials about Node.js working with Unity.
I have still some doubts to understand how it works. The idea behind node.js is clear but when I try to code it by myself, I am lost...

As far as I have understand, Node.js is only working with events. And on each event a thread is started and Node.js is ready for next request.
So the system (server) sends back the response to the client when the data is ready.

In short, node.js is just the event handler (controller). Is this right?

Here some corrections about errors in the video.
Line 27: rotation:clients[i].rotation (instead of position)
Line 66: socket.emit('enemies', enemiesResponse) (instead of enemeis)
Line 85: function guid() (instead of fuction)

ndl
visit shbcf.ru