-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathphaser-custom.js
More file actions
37 lines (29 loc) · 823 Bytes
/
Copy pathphaser-custom.js
File metadata and controls
37 lines (29 loc) · 823 Bytes
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
require('polyfills');
var CONST = require('const');
var Extend = require('utils/object/Extend');
var Phaser = {
Cameras: {
Scene2D: require('cameras/2d')
},
Events: require('events/index'),
Game: require('core/Game'),
GameObjects: {
DisplayList: require('gameobjects/DisplayList'),
UpdateList: require('gameobjects/UpdateList'),
Graphics: require('gameobjects/graphics/Graphics.js'),
Factories: {
Graphics: require('gameobjects/graphics/GraphicsFactory')
},
Creators: {
Graphics: require('gameobjects/graphics/GraphicsCreator')
}
},
Math: {
Between: require('math/Between')
}
};
// Merge in the consts
Phaser = Extend(false, Phaser, CONST);
// Export it
module.exports = Phaser;
global.Phaser = Phaser;