Displayed Information
How Score Is Calculated
The score is recalculated whenever elements are added, removed, or modified. The calculation iterates over all sections and their blocks:Block Scores
- Side templates: Each side contributes its
EditorScorevalue - BlockOnly templates: The block itself contributes its
EditorScorevalue - Bonus themes: Blocks with
VisitRequiredcontribute 50 points each
Item Scores
- Each item contributes its template’s
EditorScorevalue - Items are also counted as treasures, fruits, or keys based on their template properties
Enemy Scores
- Each enemy contributes its template’s
EditorScorevalue
Lazy Evaluation
The score is not recalculated every frame. Instead, a_scoreInfoDeprecated flag marks when recalculation is needed:
- Set to
truewhen elements are added/removed/modified - Calculated in
UpdateScoreInfo()duringUpdate() - Reset to
falseafter calculation
Score Data Structure
ScoreInfoData struct implements equality comparison for efficient change detection in the HUD.
Best Editor Time
TheBestEditorElapsedTime tracks the fastest completion time from testing sessions. It is:
- Updated when a test playthrough completes
- Persisted with the level data
- Displayed in the HUD as “Best Timestamp”