2016-11-22 03:11:33 +00:00
|
|
|
require('./polyfills');
|
|
|
|
|
2017-01-16 22:43:46 +00:00
|
|
|
var CONST = require('./const');
|
|
|
|
var Extend = require('./utils/object/Extend');
|
|
|
|
|
2016-12-13 16:12:25 +00:00
|
|
|
// This object is exported globally
|
2016-11-22 03:11:33 +00:00
|
|
|
|
2016-12-13 16:12:25 +00:00
|
|
|
var Phaser = {
|
2016-11-22 03:11:33 +00:00
|
|
|
|
2018-01-18 05:19:17 +00:00
|
|
|
Actions: require('./actions'),
|
|
|
|
Animation: require('./animations'),
|
|
|
|
Cache: require('./cache'),
|
|
|
|
Cameras: require('./cameras'),
|
2018-01-16 22:28:29 +00:00
|
|
|
Class: require('./utils/Class'),
|
2018-01-18 05:19:17 +00:00
|
|
|
Create: require('./create'),
|
|
|
|
Curves: require('./curves'),
|
|
|
|
Display: require('./display'),
|
|
|
|
DOM: require('./dom'),
|
2018-01-12 18:59:01 +00:00
|
|
|
EventEmitter: require('./events/EventEmitter'),
|
2016-12-13 16:12:25 +00:00
|
|
|
Game: require('./boot/Game'),
|
2018-01-18 05:19:17 +00:00
|
|
|
GameObjects: require('./gameobjects'),
|
|
|
|
Geom: require('./geom'),
|
|
|
|
Input: require('./input'),
|
|
|
|
Loader: require('./loader'),
|
|
|
|
Math: require('./math'),
|
|
|
|
Physics: require('./physics'),
|
2018-01-16 22:28:29 +00:00
|
|
|
Scene: require('./scene/Scene'),
|
2018-01-18 05:19:17 +00:00
|
|
|
Scenes: require('./scene'),
|
|
|
|
Sound: require('./sound'),
|
|
|
|
Structs: require('./structs'),
|
|
|
|
Textures: require('./textures'),
|
|
|
|
Time: require('./time'),
|
|
|
|
Tweens: require('./tweens'),
|
|
|
|
Utils: require('./utils')
|
2016-12-13 16:12:25 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-01-16 22:43:46 +00:00
|
|
|
// Merge in the consts
|
|
|
|
|
|
|
|
Phaser = Extend(false, Phaser, CONST);
|
|
|
|
|
2016-12-13 16:12:25 +00:00
|
|
|
// Export it
|
|
|
|
|
|
|
|
module.exports = Phaser;
|
|
|
|
|
|
|
|
global.Phaser = Phaser;
|
2017-01-05 17:06:57 +00:00
|
|
|
|
|
|
|
/*
|
2017-04-05 00:15:53 +00:00
|
|
|
* "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
|
2017-01-05 17:06:57 +00:00
|
|
|
*/
|