LOW: GameModes.js exists but is never imported #7

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

Description

The file js/GameModes.js defines GameMode, QuickRace, TimeTrial, Endurance, and Career classes, but is not imported or referenced by any other module in the project.

Impact

These game mode classes are dead code. The actual game orchestration happens entirely in main.js Game class.

Fix

Either import and use GameModes.js in main.js, or remove the file if it's not needed.

## Description The file `js/GameModes.js` defines `GameMode`, `QuickRace`, `TimeTrial`, `Endurance`, and `Career` classes, but is not imported or referenced by any other module in the project. ## Impact These game mode classes are dead code. The actual game orchestration happens entirely in `main.js` Game class. ## Fix Either import and use GameModes.js in main.js, or remove the file if it's not needed.
Mark closed this issue 2026-05-11 14:02:32 +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#7
No description provided.