audio-and-sound
A reference skill published in the Phaser game framework's own repository for adding sound and music to a Phaser 4 game through its shared sound manager.
スキルの内容
A reference skill published in the Phaser game framework's own repository for adding sound and music to a Phaser 4 game through its shared sound manager. It explains how Phaser chooses between Web Audio, HTML5 Audio and a silent fallback and what each supports, then covers loading audio with format fallbacks, one-off and retained sounds, volume, rate, detune, looping, seeking and stereo panning, audio sprites and named markers, background music, positional audio that follows a game object, decoding audio at runtime and an analyser for visualisations. Event lists and a source file map follow, and pitfalls cover browser autoplay unlocking, Safari's lack of panning, simultaneous playback limits in HTML5 Audio and looping sounds that outlive a scene.
できること
- Load and play sounds and music
- Use audio sprites and markers
- Add positional audio to game objects
- Handle browser autoplay unlocking
概要
- 公開元
- Phaser
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/phaserjs/phaser · 根拠となる項目:スクリプトを含む2026年11月10日
- GitHubリポジトリgithub.com/phaserjs/phaser · 根拠となる項目:公開元, 活動状況, ライセンス2026年11月11日
- リポジトリ内のフォルダ(audio-and-sound)github.com/phaserjs/phaser · 根拠となる項目:スクリプトを含む2026年11月10日