mirror of
https://github.com/wassname/phaser.git
synced 2026-09-10 12:29:30 +08:00
Fixed Firefox audio issue with the Loader and added defined functions for anonymous callbacks
This commit is contained in:
+9
-12
@@ -1,6 +1,7 @@
|
||||
var Phaser;
|
||||
(function (Phaser) {
|
||||
/// <reference path="../Phaser/Game.ts" />
|
||||
/// <reference path="IPlugin.ts" />
|
||||
/**
|
||||
* Phaser - Example Plugin
|
||||
*/
|
||||
@@ -13,31 +14,27 @@ var Phaser;
|
||||
}
|
||||
Example.prototype.preUpdate = /**
|
||||
* Pre-update is called at the start of the update cycle, before any other updates have taken place.
|
||||
* It is only called if active is set to true.
|
||||
*/
|
||||
function () {
|
||||
};
|
||||
Example.prototype.postUpdate = /**
|
||||
* Post-update is called at the end of the objects update cycle, after other update logic has taken place.
|
||||
* It is only called if active is set to true.
|
||||
*/
|
||||
function () {
|
||||
};
|
||||
Example.prototype.preRender = /**
|
||||
* Pre-render is called at the start of the object render cycle, before any transforms have taken place.
|
||||
* It happens directly AFTER a canvas context.save has happened if added to a Camera.
|
||||
* @param {Camera} camera
|
||||
* Pre-render is called right before the Game Renderer starts and before any custom preRender callbacks have been run.
|
||||
* It is only called if visible is set to true.
|
||||
*/
|
||||
function (camera) {
|
||||
};
|
||||
Example.prototype.render = /**
|
||||
* render is called during the objects render cycle, right after all transforms have finished, but before any children/image data is rendered.
|
||||
* @param {Camera} camera
|
||||
*/
|
||||
function (camera) {
|
||||
function () {
|
||||
};
|
||||
Example.prototype.postRender = /**
|
||||
* Post-render is called during the objects render cycle, after the children/image data has been rendered.
|
||||
* Post-render is called after every camera and game object has been rendered, also after any custom postRender callbacks have been run.
|
||||
* It is only called if visible is set to true.
|
||||
*/
|
||||
function (camera) {
|
||||
function () {
|
||||
};
|
||||
Example.prototype.destroy = /**
|
||||
* Clear down this Plugin and null out references
|
||||
|
||||
Reference in New Issue
Block a user