Namespace: PhaserGlobal


You can create a PhaserGlobal object to recycle Phaser's AudioContext or change certain settings.

window.PhaserGlobal = {}; // empty; Phaser will save Phaser.SoundManager#context here
// or
window.PhaserGlobal = {
  disableAudio: true,
  hideBanner: true,
Name Type Argument Description
audioContext AudioContext <optional>

Phaser will save the AudioContext being used for playback here

disableAudio boolean <optional>

Disable Phaser.SoundManager (noAudio)

disableWebAudio boolean <optional>

Use Audio Tags instead of Web Audio

fakeiOSTouchLock boolean <optional>

Force touch unlocking of media

hideBanner boolean <optional>

Don't print the Phaser debug header in the console

stopFocus boolean <optional>

Don't call window.focus() when booting the game

src/PhaserGlobal.js line 1

phaser-ce@2.20.0 is on GitHub and NPM

Documentation generated by JSDoc 3.6.7 on 2022-12-10 using Tomorrow.