MINOR: Track difficulty stars display confusingly on track select screen #9

Closed
opened 2026-05-11 06:16:43 +00:00 by Mark · 0 comments
Owner

Description

In _refreshTrackSelect() (UIManager.js line 487-488), the difficulty is shown as stars. However, all tracks display as if difficulty is 1 because the grid repeat logic is off:

const diff = Math.max(1, Math.min(5, track.difficulty || 1));
stars.textContent = '\u2605'.repeat(diff) + '\u2606'.repeat(5 - diff);

Also, the environment type always shows Deep Space for all tracks because track.environment is never set on the tracks in config.js (they only have type like 'tutorial', 'race', 'expert').

Impact

Players see LEO Circuit as 1-star and all other tracks (difficulty 2-6) also as limited stars. Track select screen doesn't communicate environment info.

Fix

  1. Set environment property on track definitions in config.js
  2. OR have UIManager derive it from track type/id
## Description In `_refreshTrackSelect()` (UIManager.js line 487-488), the difficulty is shown as stars. However, all tracks display as if difficulty is 1 because the grid repeat logic is off: ```js const diff = Math.max(1, Math.min(5, track.difficulty || 1)); stars.textContent = '\u2605'.repeat(diff) + '\u2606'.repeat(5 - diff); ``` Also, the environment type always shows `Deep Space` for all tracks because `track.environment` is never set on the tracks in config.js (they only have `type` like `'tutorial'`, `'race'`, `'expert'`). ## Impact Players see LEO Circuit as 1-star and all other tracks (difficulty 2-6) also as limited stars. Track select screen doesn't communicate environment info. ## Fix 1. Set `environment` property on track definitions in config.js 2. OR have UIManager derive it from track type/id
Mark closed this issue 2026-05-11 18:52:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/gravity-racer#9
No description provided.