forked from phaserjs/phaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphaser.js
72 lines (41 loc) · 1.25 KB
/
phaser.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
require('./polyfills');
var CONST = require('./const');
var Extend = require('./utils/object/Extend');
// This object is exported globally
var Phaser = {
Actions: require('./actions/'),
Create: require('./create/'),
Cameras: require('./camera/'),
DOM: require('./dom/'),
Game: require('./boot/Game'),
Math: require('./math'),
Geom: require('./geom'),
Display: require('./display'),
Input: require('./input'),
GameObjects: require('./gameobjects'),
Scene: require('./scene/local/Scene'),
Loader: {
ImageFile: require('./loader/filetypes/ImageFile')
},
Sound: require('./sound'),
Structs: require('./structs'),
Curves: require('./curves'),
Physics: require('./physics'),
Class: require('./utils/Class'),
Utils: require('./utils')
};
// Merge in the consts
Phaser = Extend(false, Phaser, CONST);
// Export it
module.exports = Phaser;
global.Phaser = Phaser;
/*
* "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
*/