phaser/src/phaser.js

66 lines
1.6 KiB
JavaScript
Raw Normal View History

2018-02-12 16:01:20 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
2016-11-22 03:11:33 +00:00
require('./polyfills');
var CONST = require('./const');
var Extend = require('./utils/object/Extend');
2018-01-31 13:54:44 +00:00
/**
2018-04-13 16:05:59 +00:00
* @namespace Phaser
*/
2016-11-22 03:11:33 +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'),
Class: require('./utils/Class'),
2018-01-18 05:19:17 +00:00
Create: require('./create'),
Curves: require('./curves'),
Data: require('./data'),
2018-01-18 05:19:17 +00:00
Display: require('./display'),
DOM: require('./dom'),
Events: require('./events'),
FBInstant: require('./fbinstant/FacebookInstantGamesPlugin'),
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-05-10 16:14:52 +00:00
Plugins: require('./plugins'),
Renderer: require('./renderer'),
Scene: require('./scene/Scene'),
2018-01-18 05:19:17 +00:00
Scenes: require('./scene'),
Sound: require('./sound'),
Structs: require('./structs'),
Textures: require('./textures'),
2018-02-07 17:10:01 +00:00
Tilemaps: require('./tilemaps'),
2018-01-18 05:19:17 +00:00
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;
2017-01-05 17:06:57 +00:00
/*
2018-03-26 22:17:06 +00:00
* "Documentation is like pizza: when it is good, it is very, very good;
2017-04-05 00:15:53 +00:00
* and when it is bad, it is better than nothing."
* -- Dick Brandon
*/