Log inGet started
Package

levelMoods.dataType

README.md

levelMoods (dataType)

The mood of every level of a game, as data: which library mood each level shows, with the few changes it makes to it, the mood with no level running, the blend time and (optionally) the synced style stack the moods paint on. A .data bound to this contract is what the moodKit.LevelMoods component reads through its set field, so a game keeps its look as one data file and swapping a level's mood is one value.

contract: levelMoods
values:
  fallback: twilight          # title screen, menus
  fade: 3                     # seconds to blend between levels
  levels:
    - { level: meadows, mood: dawn, hour: 8 }
    - { level: gorge, mood: midday }
    - { level: lake, mood: goldenHour, palette: cartoon }
    - { level: ridge, mood: dusk, weather: snow }
    - { level: summit, mood: starryNight }
    - { level: cave, mood: night, overrides: '{"haze":0.006,"grade":{"exposure":1.4}}' }
  stack:                      # optional styleKit stack (toonBlocks / inkBlocks entries)
    - { id: light, block: toonRamp, settings: '{"rampStrength":1}' }
    - { id: line, block: inkPenLine, settings: '{"width":1.25}' }
    - { id: paper, block: inkPaper }

Per level: mood is any moodKit mood, alias ("storm", "rain", "golden") or "mood.palette"; palette draws it in storybook / realistic / cartoon / moody / pastel / noir; hour, weather, stars and skyLook change those fields (-1 / empty keeps the mood's own); overrides is a JSON object deep-merged over the mood for anything else (grade, sky, haze, ramp, ink, paper). Stack settings and stackOptions are JSON objects.