Namespace: PhaserGlobal

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,
};
Properties:
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

Source:
src/PhaserGlobal.js line 1

phaser-ce@2.20.1 is on GitHub and NPM

Documentation generated by JSDoc 3.6.11 on 2024-10-05 using Tomorrow.