phaser/src/gameobjects/index.js

147 lines
5.8 KiB
JavaScript
Raw Normal View History

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