forked from phaserjs/custom-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phaser-full.js
78 lines (65 loc) · 1.76 KB
/
phaser-full.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/**
* @author Richard Davey <[email protected]>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
require('polyfills');
var CONST = require('const');
var Extend = require('utils/object/Extend');
/**
* @namespace Phaser
*/
var Phaser = {
Actions: require('actions'),
Animations: require('animations'),
BlendModes: require('renderer/BlendModes'),
Cache: require('cache'),
Cameras: require('cameras'),
Core: require('core'),
Class: require('utils/Class'),
Create: require('create'),
Curves: require('curves'),
Data: require('data'),
Display: require('display'),
DOM: require('dom'),
Events: require('events/index'),
Game: require('core/Game'),
GameObjects: require('gameobjects'),
Geom: require('geom'),
Input: require('input'),
Loader: require('loader'),
Math: require('math'),
Physics: require('physics'),
Plugins: require('plugins'),
Renderer: require('renderer'),
Scale: require('scale'),
ScaleModes: require('renderer/ScaleModes'),
Scene: require('scene/Scene'),
Scenes: require('scene'),
Structs: require('structs'),
Textures: require('textures'),
Tilemaps: require('tilemaps'),
Time: require('time'),
Tweens: require('tweens'),
Utils: require('utils'),
};
// Merge in the optional plugins and WebGL only features
if (typeof FEATURE_SOUND) {
Phaser.Sound = require('sound');
}
// Merge in the consts
Phaser = Extend(false, Phaser, CONST);
/**
* The root types namespace.
*
* @namespace Phaser.Types
* @since 3.17.0
*/
// Export it
module.exports = Phaser;
global.Phaser = Phaser;
/*
* "Documentation is like pizza: when it is good, it is very, very good;
* and when it is bad, it is better than nothing."
* -- Dick Brandon
*/