https://github.com/samme/phaser-plugin-sound-watcher
Shows sounds in the Sound Manager
https://github.com/samme/phaser-plugin-sound-watcher
audio phaser phaser-plugin
Last synced: 3 months ago
JSON representation
Shows sounds in the Sound Manager
- Host: GitHub
- URL: https://github.com/samme/phaser-plugin-sound-watcher
- Owner: samme
- Created: 2024-12-11T21:28:02.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-09T20:43:20.000Z (3 months ago)
- Last Synced: 2025-02-09T21:28:32.827Z (3 months ago)
- Topics: audio, phaser, phaser-plugin
- Language: JavaScript
- Homepage: https://phaser.io/sandbox/PgZyGawy
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Phaser Sound Watcher Plugin
===========================Shows sounds in the Sound Manager.
Symbols
-------| Symbol | Description |
|--------------|---------------------------|
| `#` | locked |
| `▁▂▃▄▅▆▇█` | volume |
| `m` | mute |
| `>` | playing |
| `:` | paused |
| `.` | not playing or paused |
| `<<+>>` | pan |
| `key:marker` | key, marker name |
| `[0.0 / 1.0]`| seek, duration |
| `@(x, y)` | position |
| `a` | has audio tag |
| `-` | has no audio tag |Module
------```js
import SoundWatcherPlugin from 'phaser-plugin-sound-watcher'new Phaser.Game({
plugins: {
global: [
{
key: 'SoundWatcherPlugin',
plugin: SoundWatcherPlugin,
start: true
}
]
}
})
```UMD
---```html
```
```js
/* global Phaser, SoundWatcherPlugin */new Phaser.Game({
plugins: {
global: [
{
key: 'SoundWatcherPlugin',
plugin: SoundWatcherPlugin,
start: true
}
]
}
})
```- [UMD example](https://codepen.io/samme/pen/WbexawE)
Quick load
----------```js
this.load.plugin('SoundWatcherPlugin', 'https://cdn.jsdelivr.net/npm/[email protected]')
```- [Quick load example](https://phaser.io/sandbox/PgZyGawy)
Load from console
-----------------Given a global `game` variable:
```js
game.scene.systemScene.load.plugin('SoundWatcherPlugin', 'https://cdn.jsdelivr.net/npm/[email protected]').start()
```