An open API service indexing awesome lists of open source software.

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

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()
```