phaser/src/phaser.js
Richard Davey 4ec30b8db8 Recoded the Data component
Added is back in as DataManager, which Game Objects can have an instance of. Plus exposed as DataManagerPlugin available to Scenes. Removed callback based system and implemented events and fixed the destroy method.
2018-01-30 00:55:27 +00:00

59 lines
1.5 KiB
JavaScript

require('./polyfills');
var CONST = require('./const');
var Extend = require('./utils/object/Extend');
// This object is exported globally
var Phaser = {
Actions: require('./actions'),
Animation: require('./animations'),
Cache: require('./cache'),
Cameras: require('./cameras'),
Class: require('./utils/Class'),
Create: require('./create'),
Curves: require('./curves'),
Data: require('./data'),
Display: require('./display'),
DOM: require('./dom'),
EventEmitter: require('./events/EventEmitter'),
Game: require('./boot/Game'),
GameObjects: require('./gameobjects'),
Geom: require('./geom'),
Input: require('./input'),
Loader: require('./loader'),
Math: require('./math'),
Physics: require('./physics'),
Scene: require('./scene/Scene'),
Scenes: require('./scene'),
Sound: require('./sound'),
Structs: require('./structs'),
Textures: require('./textures'),
Time: require('./time'),
Tweens: require('./tweens'),
Utils: require('./utils')
};
// Merge in the consts
Phaser = Extend(false, Phaser, CONST);
// Export it
module.exports = Phaser;
global.Phaser = Phaser;
/*
* "Documentation is like sex: when it is good, it is very, very good;
* and when it is bad, it is better than nothing."
* -- Dick Brandon
*/
/*
* "Sometimes, the elegant implementation is just a function.
* Not a method. Not a class. Not a framework. Just a function."
* -- John Carmack
*/