Enhancement: Future-proof difficulty star visuals #3075
Labels
status: pending triage
The bug or PR has not been reviewed yet.
type: enhancement
Provides an enhancement or new feature.
Issue Checklist
What is your suggestion, and why should it be implemented?
The freeplay menu visuals currently handle difficulties up to level 15, and it's been stated that the maximum difficulty will likely be 20. But what if those plans change, and the maximum level is raised to 30? Or, more likely, a player/modder wants to use a difficulty level higher than 20 for their song chart? It might be useful to have some functionality for this prepared, if only to give the engine more versatility.
A simple solution would be to re-shade the flames as a different color for each range of ten. For example, let's say 11-20 has blue flames, 21-30 has purple flames, 31-40 has red flames, and so on, with each loop being a darker shade from the last. This could be handled by some kind of formula so the colors aren't hard coded.
I don't work in Haxe so I can't give exact code ideas, but I imagine you could take advantage of the difficulty visual being handled in multiples of 10 to simplify the process.
curDifficulty / 10
gives you the shade for all of the stars (2 for blue, 3 for purple, 4 for red, etc.), whilecurDifficulty % 10
gives you the number of stars that need the shadecurDifficulty / 10 + 1
.The text was updated successfully, but these errors were encountered: