phaser/src/phaser.js

75 lines
1.3 KiB
JavaScript
Raw Normal View History

2016-11-22 03:11:33 +00:00
require('./polyfills');
var CONST = require('./const');
var Extend = require('./utils/object/Extend');
// This object is exported globally
2016-11-22 03:11:33 +00:00
var Phaser = {
2016-11-22 03:11:33 +00:00
Actions: require('./actions/'),
Create: require('./create/'),
Cameras: require('./camera/'),
2017-09-15 03:04:51 +00:00
DOM: require('./dom/'),
EventEmitter: require('./events/EventEmitter'),
Game: require('./boot/Game'),
Math: require('./math'),
Geom: require('./geom'),
2017-10-11 16:05:59 +00:00
Display: require('./display'),
Input: require('./input'),
GameObjects: require('./gameobjects'),
Scene: require('./scene/local/Scene'),
2017-02-06 23:59:15 +00:00
Loader: {
ImageFile: require('./loader/filetypes/ImageFile')
},
Sound: require('./sound'),
2017-07-11 23:48:56 +00:00
Structs: require('./structs'),
Curves: require('./curves'),
2017-07-11 23:48:56 +00:00
Physics: require('./physics'),
2017-03-08 23:53:53 +00:00
Class: require('./utils/Class'),
Utils: require('./utils')
};
// Merge in the consts
Phaser = Extend(false, Phaser, CONST);
// 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
*/