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