fix difficulty menu colors and states (fixes #8)

This commit is contained in:
Kevin Ngo
2018-09-18 02:44:21 -07:00
parent c769b497af
commit 1e8ea3a0b0
5 changed files with 35 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ AFRAME.registerState({
// Populate difficulty options.
state.menuDifficulties.length = 0;
for (let i = 0; i < challengeData.difficulties.length; i++) {
state.menuDifficulties.unshift(challengeData.difficulties[i].toUpperCase());
state.menuDifficulties.unshift(challengeData.difficulties[i]);
}
state.menuDifficulties.sort(difficultyComparator);
// Default to easiest difficulty.