You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Arthur Pacaud edited this page Dec 1, 2019
·
1 revision
To implement your feature in your multiplayer game, you need to use socketIOs Events system. For that, go in the main.ts file. Note that you will need the Typescript compiler. I recommend to use WebStorm IDE from JetBrains as it automatically handles that for you (it is paid tho(it is free for students tho)). Here, go to the part with socket.on("auth"). Inside the function passed to it, add a new socket.on("your keyword", function(data){your function that implements your feature}) definition (Of course modify the obvious placeholders with your own code). Then compile the ts files and try to execute the server.