2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2019-01-15 16:20:22 +00:00
|
|
|
* @copyright 2019 Photon Storm Ltd.
|
2018-02-12 16:01:20 +00:00
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2018-01-31 13:54:44 +00:00
|
|
|
/**
|
|
|
|
* @namespace Phaser.GameObjects
|
|
|
|
*/
|
2017-02-23 03:54:54 +00:00
|
|
|
|
2017-09-13 16:06:05 +01:00
|
|
|
var GameObjects = {
|
2017-02-23 03:54:54 +00:00
|
|
|
|
2019-01-18 14:21:45 +00:00
|
|
|
Events: require('./events'),
|
|
|
|
|
2018-01-16 22:28:29 +00:00
|
|
|
DisplayList: require('./DisplayList'),
|
|
|
|
GameObjectCreator: require('./GameObjectCreator'),
|
|
|
|
GameObjectFactory: require('./GameObjectFactory'),
|
2018-02-07 17:10:01 +00:00
|
|
|
UpdateList: require('./UpdateList'),
|
2018-01-16 22:28:29 +00:00
|
|
|
|
2017-07-04 01:59:31 +01:00
|
|
|
Components: require('./components'),
|
2017-02-23 03:54:54 +00:00
|
|
|
|
2018-03-09 15:13:42 +08:00
|
|
|
BuildGameObject: require('./BuildGameObject'),
|
|
|
|
BuildGameObjectAnimation: require('./BuildGameObjectAnimation'),
|
2018-03-09 12:31:37 +08:00
|
|
|
GameObject: require('./GameObject'),
|
2018-01-23 20:36:49 -03:00
|
|
|
BitmapText: require('./bitmaptext/static/BitmapText'),
|
2017-02-28 01:12:13 +00:00
|
|
|
Blitter: require('./blitter/Blitter'),
|
2018-03-23 14:15:52 -03:00
|
|
|
Container: require('./container/Container'),
|
2018-01-24 15:55:23 -03:00
|
|
|
DynamicBitmapText: require('./bitmaptext/dynamic/DynamicBitmapText'),
|
2018-10-29 23:07:30 +00:00
|
|
|
Extern: require('./extern/Extern.js'),
|
2018-01-24 00:03:43 -03:00
|
|
|
Graphics: require('./graphics/Graphics.js'),
|
2018-01-24 22:10:30 -03:00
|
|
|
Group: require('./group/Group'),
|
2018-01-23 17:32:20 -03:00
|
|
|
Image: require('./image/Image'),
|
2018-03-28 15:04:09 +01:00
|
|
|
Particles: require('./particles'),
|
2018-01-24 22:10:30 -03:00
|
|
|
PathFollower: require('./pathfollower/PathFollower'),
|
2018-02-23 00:44:22 -03:00
|
|
|
RenderTexture: require('./rendertexture/RenderTexture'),
|
2018-04-19 13:07:59 +01:00
|
|
|
RetroFont: require('./bitmaptext/RetroFont'),
|
2018-01-23 16:29:47 -03:00
|
|
|
Sprite: require('./sprite/Sprite'),
|
2018-01-23 21:40:20 -03:00
|
|
|
Text: require('./text/static/Text'),
|
2018-01-24 21:15:51 -03:00
|
|
|
TileSprite: require('./tilesprite/TileSprite'),
|
2018-01-24 22:10:30 -03:00
|
|
|
Zone: require('./zone/Zone'),
|
2017-09-14 01:53:47 +01:00
|
|
|
|
2018-09-05 16:20:25 +01:00
|
|
|
// Shapes
|
|
|
|
|
|
|
|
Shape: require('./shape/Shape'),
|
2018-09-06 11:26:50 +01:00
|
|
|
Arc: require('./shape/arc/Arc'),
|
2018-09-07 17:19:33 +01:00
|
|
|
Curve: require('./shape/curve/Curve'),
|
2018-09-06 11:26:50 +01:00
|
|
|
Ellipse: require('./shape/ellipse/Ellipse'),
|
2018-09-13 01:02:59 +01:00
|
|
|
Grid: require('./shape/grid/Grid'),
|
2018-09-06 16:52:00 +01:00
|
|
|
IsoBox: require('./shape/isobox/IsoBox'),
|
2018-09-07 14:23:25 +01:00
|
|
|
IsoTriangle: require('./shape/isotriangle/IsoTriangle'),
|
2018-09-07 12:43:49 +01:00
|
|
|
Line: require('./shape/line/Line'),
|
2018-09-06 11:26:50 +01:00
|
|
|
Polygon: require('./shape/polygon/Polygon'),
|
|
|
|
Rectangle: require('./shape/rectangle/Rectangle'),
|
2018-09-06 22:40:56 +01:00
|
|
|
Star: require('./shape/star/Star'),
|
2018-09-06 11:26:50 +01:00
|
|
|
Triangle: require('./shape/triangle/Triangle'),
|
2018-09-05 16:20:25 +01:00
|
|
|
|
2017-09-14 01:53:47 +01:00
|
|
|
// Game Object Factories
|
2017-09-14 02:27:29 +01:00
|
|
|
|
|
|
|
Factories: {
|
|
|
|
Blitter: require('./blitter/BlitterFactory'),
|
2018-03-23 14:15:52 -03:00
|
|
|
Container: require('./container/ContainerFactory'),
|
2018-01-24 15:55:23 -03:00
|
|
|
DynamicBitmapText: require('./bitmaptext/dynamic/DynamicBitmapTextFactory'),
|
2018-10-29 23:07:30 +00:00
|
|
|
Extern: require('./extern/ExternFactory'),
|
2018-01-24 00:03:43 -03:00
|
|
|
Graphics: require('./graphics/GraphicsFactory'),
|
2018-01-24 22:10:30 -03:00
|
|
|
Group: require('./group/GroupFactory'),
|
2018-01-23 17:32:20 -03:00
|
|
|
Image: require('./image/ImageFactory'),
|
2018-01-24 22:10:30 -03:00
|
|
|
Particles: require('./particles/ParticleManagerFactory'),
|
|
|
|
PathFollower: require('./pathfollower/PathFollowerFactory'),
|
2018-02-23 00:44:22 -03:00
|
|
|
RenderTexture: require('./rendertexture/RenderTextureFactory'),
|
2018-02-07 17:10:01 +00:00
|
|
|
Sprite: require('./sprite/SpriteFactory'),
|
2018-01-23 20:36:49 -03:00
|
|
|
StaticBitmapText: require('./bitmaptext/static/BitmapTextFactory'),
|
2018-01-23 21:40:20 -03:00
|
|
|
Text: require('./text/static/TextFactory'),
|
2018-01-24 21:15:51 -03:00
|
|
|
TileSprite: require('./tilesprite/TileSpriteFactory'),
|
2018-09-06 15:08:15 +01:00
|
|
|
Zone: require('./zone/ZoneFactory'),
|
|
|
|
|
|
|
|
// Shapes
|
|
|
|
Arc: require('./shape/arc/ArcFactory'),
|
2018-09-07 17:19:33 +01:00
|
|
|
Curve: require('./shape/curve/CurveFactory'),
|
2018-09-06 15:08:15 +01:00
|
|
|
Ellipse: require('./shape/ellipse/EllipseFactory'),
|
2018-09-13 01:02:59 +01:00
|
|
|
Grid: require('./shape/grid/GridFactory'),
|
2018-09-06 16:52:00 +01:00
|
|
|
IsoBox: require('./shape/isobox/IsoBoxFactory'),
|
2018-09-07 14:23:25 +01:00
|
|
|
IsoTriangle: require('./shape/isotriangle/IsoTriangleFactory'),
|
2018-09-07 12:43:49 +01:00
|
|
|
Line: require('./shape/line/LineFactory'),
|
2018-09-06 15:08:15 +01:00
|
|
|
Polygon: require('./shape/polygon/PolygonFactory'),
|
|
|
|
Rectangle: require('./shape/rectangle/RectangleFactory'),
|
2018-09-06 22:40:56 +01:00
|
|
|
Star: require('./shape/star/StarFactory'),
|
2018-09-06 15:08:15 +01:00
|
|
|
Triangle: require('./shape/triangle/TriangleFactory')
|
2017-09-14 02:27:29 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
Creators: {
|
|
|
|
Blitter: require('./blitter/BlitterCreator'),
|
2018-03-23 14:15:52 -03:00
|
|
|
Container: require('./container/ContainerCreator'),
|
2018-01-24 15:55:23 -03:00
|
|
|
DynamicBitmapText: require('./bitmaptext/dynamic/DynamicBitmapTextCreator'),
|
2018-01-24 00:03:43 -03:00
|
|
|
Graphics: require('./graphics/GraphicsCreator'),
|
2018-01-24 22:10:30 -03:00
|
|
|
Group: require('./group/GroupCreator'),
|
2018-01-23 17:32:20 -03:00
|
|
|
Image: require('./image/ImageCreator'),
|
2018-01-24 22:10:30 -03:00
|
|
|
Particles: require('./particles/ParticleManagerCreator'),
|
2018-02-23 00:44:22 -03:00
|
|
|
RenderTexture: require('./rendertexture/RenderTextureCreator'),
|
2018-02-07 17:10:01 +00:00
|
|
|
Sprite: require('./sprite/SpriteCreator'),
|
2018-01-23 20:36:49 -03:00
|
|
|
StaticBitmapText: require('./bitmaptext/static/BitmapTextCreator'),
|
2018-01-23 21:40:20 -03:00
|
|
|
Text: require('./text/static/TextCreator'),
|
2018-01-24 21:15:51 -03:00
|
|
|
TileSprite: require('./tilesprite/TileSpriteCreator'),
|
2018-01-24 22:10:30 -03:00
|
|
|
Zone: require('./zone/ZoneCreator')
|
2017-09-14 02:27:29 +01:00
|
|
|
}
|
2017-06-26 21:10:09 +01:00
|
|
|
|
2017-02-23 03:54:54 +00:00
|
|
|
};
|
2017-09-13 16:06:05 +01:00
|
|
|
|
2018-08-23 18:11:10 +01:00
|
|
|
if (typeof EXPERIMENTAL)
|
|
|
|
{
|
|
|
|
GameObjects.DOMElement = require('./domelement/DOMElement');
|
|
|
|
GameObjects.Factories.DOMElement = require('./domelement/DOMElementFactory');
|
|
|
|
}
|
|
|
|
|
2018-04-20 00:23:24 +01:00
|
|
|
if (typeof WEBGL_RENDERER)
|
2017-09-13 16:06:05 +01:00
|
|
|
{
|
2017-09-14 01:53:47 +01:00
|
|
|
// WebGL only Game Objects
|
2018-01-23 16:29:47 -03:00
|
|
|
GameObjects.Mesh = require('./mesh/Mesh');
|
2018-01-23 21:58:37 -03:00
|
|
|
GameObjects.Quad = require('./quad/Quad');
|
2017-09-14 01:53:47 +01:00
|
|
|
|
2018-01-23 16:29:47 -03:00
|
|
|
GameObjects.Factories.Mesh = require('./mesh/MeshFactory');
|
2018-01-23 21:58:37 -03:00
|
|
|
GameObjects.Factories.Quad = require('./quad/QuadFactory');
|
2017-09-14 02:27:29 +01:00
|
|
|
|
2018-01-23 16:29:47 -03:00
|
|
|
GameObjects.Creators.Mesh = require('./mesh/MeshCreator');
|
2018-01-23 21:58:37 -03:00
|
|
|
GameObjects.Creators.Quad = require('./quad/QuadCreator');
|
2018-02-12 22:16:27 +00:00
|
|
|
|
2018-02-12 23:03:48 +00:00
|
|
|
GameObjects.Light = require('./lights/Light');
|
2018-02-12 22:16:27 +00:00
|
|
|
|
|
|
|
require('./lights/LightsManager');
|
|
|
|
require('./lights/LightsPlugin');
|
2017-09-13 16:06:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = GameObjects;
|