Online Multiplayer Game Tutorial #3 - Connect and disconnect players
Chris Courses
GitHub URL: https://github.com/chriscourses/multiplayer-game-starter
Time to learn about backend connections with socket.io. There's a lot to cover here, but the most important takeaway is that all game data is stored on the backend and broadcasted to connected users.
This lesson will teach you how to:
- Connect and disconnect players
- Remove enemies
- Install nodemon
- Install socket.io@4.6.1
- Create initial connection
- Create new http server
- Use new http server required for socket.io server
- Listen for a connection event
- Create first player using sockets
- Create multiple players with sockets
- Remove players on disconnect and timeout
00:19 Remove enemies 02:45 Install nodemon 06:58 Install socket.io 08:37 Create initial connection 17:34 Create first player using sockets 33:02 Create multiple players with sockets 34:36 Disconnect players ... https://www.youtube.com/watch?v=_NPVEO--oVE
2023-04-27
0.0 LBC
Copyrighted (contact publisher)
312650782 Bytes