Skip to content

five-on-it / packages/catalogue/src/sky / skyOfSpec

Function: skyOfSpec() ​

skyOfSpec(spec): LevelSky

Defined in: packages/catalogue/src/sky.ts:34

The sky a level built from a spec carries: its climate (by the spec, its biome, or temperate) and its clock when the spec sets one.

Parameters ​

spec ​

biome? ​

string

climate? ​

string

clock? ​

{ pace: number; start: string; }

clock.pace ​

number

clock.start ​

string

template ​

string

Returns ​

LevelSky