BUILTINvariablenacatamalon
BUILTIN: { FONTS, MUSIC, SOUNDS, LOOKS, PALETTES }What the engine carries, asked for by name, by kind.
FONTS: the fonts a text can name,'nacatamalon:arcade'first, the one it uses when it names none.MUSIC.SONGS: the songs,useLoadSong({ src: 'nacatamalon:' + key }).MUSIC.INSTRUMENTSandMUSIC.SAMPLES: what a song's notes play with@name, and what its sample voices play.SOUNDS: the kinds of sound effectrenderSfxmakes.LOOKS: the looks a material can take.PALETTES: the colours of the machines that had a fixed list of them,nes,gameBoyandc64, as#rrggbb: forgetColor,snapToPaletteor a palette of rows. ForpaletteMatch,useLoadPalette({ src: 'nacatamalon:nes' }).
Propiedades
FONTStypeOperatorMUSIC{ SONGS, INSTRUMENTS, SAMPLES }SOUNDStypeOperatorLOOKStypeOperatorPALETTESReadonly<Record<TConsolePaletteName, typeOperator>>
Ejemplo
const song = useLoadSong({ src: `nacatamalon:${BUILTIN.MUSIC.SONGS[0].key}` });
createText({ text: 'READY', font: BUILTIN.FONTS[2] });
const dusk = getColor(BUILTIN.PALETTES.nes[19]);