MEIKYUU_SOUND_KINDS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
THE SOUNDS, made in the browser: short tones from the Web Audio API, one for each thing that happens (a step, drawing back, a key, an arrow bumping, an arrow flying off, an unlock, a solve, a loss). There are no recordings, so there is nothing to fetch and nothing to credit. Nothing is made until the first sound is asked for, a browser with no audio, or one that has not been touched yet, is silent without an error, and a sound that comes too soon after the last of its kind is dropped.
インポート
import { MEIKYUU_SOUND_KINDS } from "@johnmorrisdotca/meikyuu/play";
定義
const MEIKYUU_SOUND_KINDS: readonly ["step", "back", "key", "bump", "fly", "unlock", "solve", "lose", "tap", "stone"] = ["step", "back", "key", "bump", "fly", "unlock", "solve", "lose", "tap", "stone"] as const
例
import { MEIKYUU_SOUND_KINDS } from "@johnmorrisdotca/meikyuu/play";
console.log(MEIKYUU_SOUND_KINDS);[
'step', 'back',
'key', 'bump',
'fly', 'unlock',
'solve', 'lose',
'tap', 'stone'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。