Online Multiplayer Game Tutorial #4 - Add unique attributes (color)
Chris Courses
GitHub URL: https://github.com/chriscourses/multiplayer-game
If all players are white, how will we differentiate between them? This lesson will teach you the correct way to start differentiating your players using a backend methodology. I'll also teach you some good file and variable naming practices to keep your codebase clean.
This lesson will teach you how to:
- Add unique attributes (color)
- Change color on frontend
- Refactor player constructor
- Easier-to-understand variable and file names
- Generate random color on backend
- Enhance canvas resolution
0:00 Change color on frontend 4:57 Refactor player constructor 8:20 Easier-to-understand variable and file names 15:29 Generate random color on backend 20:00 Enhance canvas resolution ... https://www.youtube.com/watch?v=rk1mfqINyGQ
2023-05-11
0.0 LBC
Copyrighted (contact publisher)
152821120 Bytes