Michi2208
Mortal
posted 09 February 2019 04:40 AM EDT (US)
Hi guys,
so basically with the right files you can change the players colors, my question is, does someone know how to genereate random numbers for HTML so it would be possible to assign de playercolors randomly?
it's not important the player color only changes every startup, but it would be a welcome change.
does anyone have an idea how to realise this idea?
greetings
nottud
Demigod
posted 09 February 2019 10:37 AM
EDT (US)
1 / 1
Best suggestion would be to write a program to generate a random player colours file and then launch the game. Then run this when you want to launch the game. Program can in a language of your choosing - just needs to support:
(1)Writing to a file
(2)Launching another program
If (2) is difficult then simply do (1) and launch it every time you want to randomise the colours.