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
|
|
|
|
2017-03-28 12:20:39 +00:00
|
|
|
Actions: require('./actions/'),
|
|
|
|
|
2017-06-15 00:34:05 +00:00
|
|
|
Create: require('./create/'),
|
|
|
|
|
2017-09-16 02:07:57 +00:00
|
|
|
Cameras: require('./camera/'),
|
2017-09-15 03:04:51 +00:00
|
|
|
|
2017-02-02 16:55:02 +00:00
|
|
|
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'),
|
|
|
|
|
|
|
|
Math: require('./math'),
|
|
|
|
|
2016-12-22 01:32:21 +00:00
|
|
|
Geom: require('./geom'),
|
|
|
|
|
2017-10-11 16:05:59 +00:00
|
|
|
Display: require('./display'),
|
2017-02-11 08:18:22 +00:00
|
|
|
|
2017-02-21 01:04:11 +00:00
|
|
|
Input: require('./input'),
|
|
|
|
|
2017-02-23 03:54:54 +00:00
|
|
|
GameObjects: require('./gameobjects'),
|
2016-12-13 16:12:25 +00:00
|
|
|
|
2017-08-18 00:42:14 +00:00
|
|
|
Scene: require('./scene/local/Scene'),
|
2017-02-06 23:59:15 +00:00
|
|
|
|
2016-12-13 16:12:25 +00:00
|
|
|
Loader: {
|
|
|
|
|
|
|
|
ImageFile: require('./loader/filetypes/ImageFile')
|
|
|
|
|
2016-12-15 17:15:47 +00:00
|
|
|
},
|
|
|
|
|
2017-01-11 04:38:15 +00:00
|
|
|
Sound: require('./sound'),
|
|
|
|
|
2017-07-11 23:48:56 +00:00
|
|
|
Structs: require('./structs'),
|
2017-09-20 15:51:49 +00:00
|
|
|
|
2017-10-13 15:39:41 +00:00
|
|
|
Curves: require('./curves'),
|
2017-07-11 23:48:56 +00:00
|
|
|
|
2017-11-13 01:04:45 +00:00
|
|
|
Physics: require('./physics'),
|
2017-03-08 23:53:53 +00:00
|
|
|
|
2017-02-23 03:10:48 +00:00
|
|
|
Class: require('./utils/Class'),
|
|
|
|
|
2017-06-07 22:49:22 +00:00
|
|
|
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
|
|
|
*/
|