Skip to main content
The editor displays real-time score information in the HUD as you build your level. This helps you balance difficulty and reward structure.

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 EditorScore value
  • BlockOnly templates: The block itself contributes its EditorScore value
  • Bonus themes: Blocks with VisitRequired contribute 50 points each

Item Scores

  • Each item contributes its template’s EditorScore value
  • Items are also counted as treasures, fruits, or keys based on their template properties

Enemy Scores

  • Each enemy contributes its template’s EditorScore value

Lazy Evaluation

The score is not recalculated every frame. Instead, a _scoreInfoDeprecated flag marks when recalculation is needed:
  • Set to true when elements are added/removed/modified
  • Calculated in UpdateScoreInfo() during Update()
  • Reset to false after calculation
This prevents unnecessary computation when nothing has changed.

Score Data Structure

The ScoreInfoData struct implements equality comparison for efficient change detection in the HUD.

Best Editor Time

The BestEditorElapsedTime 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”