ABCxFF / diepcustom

An open source diep.io custom private-server template
https://diepcustom.herokuapp.com/
GNU Affero General Public License v3.0
69 stars 60 forks source link

Implementing serverside (net) color loading on the clientside #128

Closed Nul-led closed 1 year ago

Nul-led commented 1 year ago

Why:

Provides more color variety, also allows for forcefully changing default colors on the client.

Summarize what's being changed (include any screenshots, code, or other media if available):

Basically all it does is change the location of where netcolors are stored to remove the limitation of static array length. It also overwrite the limitation logic from >= kMaxColors to != kMaxColors; changed kMaxColors from 18 to -2. Also implemented an api endpoint api/colors to allow loading colors from the serverside, this may be deactivated by setting the reloadColorsInterval to -1.

Confirm the following: