forked from phaserjs/phaser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphaser.js
More file actions
72 lines (42 loc) · 1.36 KB
/
Copy pathphaser.js
File metadata and controls
72 lines (42 loc) · 1.36 KB
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
require('./polyfills');
var CONST = require('./const');
var Extend = require('./utils/object/Extend');
// This object is exported globally
var Phaser = {
DOM: require('./dom/'),
Game: require('./boot/Game'),
Event: require('./events/Event'),
EventDispatcher: require('./events/EventDispatcher'),
Math: require('./math'),
Components: require('./components'),
Geom: require('./geom'),
Graphics: require('./graphics'),
GameObjects: {
Factory: require('./gameobjects/FactoryContainer')
},
State: require('./state/State'),
Loader: {
ImageFile: require('./loader/filetypes/ImageFile')
},
Sound: require('./sound'),
Utils: {
Array: require('./utils/array/'),
Objects: require('./utils/object/'),
String: require('./utils/string/')
}
};
// Required, but don't need Phaser level exports
require('./gameobjects/blitter/BlitterFactory');
require('./gameobjects/image/ImageFactory');
require('./gameobjects/sprite/SpriteFactory');
require('./gameobjects/container/ContainerFactory');
// Merge in the consts
Phaser = Extend(false, Phaser, CONST);
// Export it
module.exports = Phaser;
global.Phaser = Phaser;
/*
* “Sometimes, the elegant implementation is just a function.
* Not a method. Not a class. Not a framework. Just a function.”
* - John Carmack
*/