2013-10-23 01:14:51 +00:00
|
|
|
<?php
|
2015-02-19 05:01:50 +00:00
|
|
|
if (!isset($path)) { $path = '..'; }
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if (!isset($modules))
|
2014-11-29 19:40:17 +00:00
|
|
|
{
|
2015-02-24 21:28:44 +00:00
|
|
|
$modules = array(
|
|
|
|
'keyboard' => true,
|
|
|
|
'gamepad' => true,
|
|
|
|
'bitmapdata' => true,
|
|
|
|
'graphics' => true,
|
|
|
|
'rendertexture' => true,
|
|
|
|
'text' => true,
|
|
|
|
'bitmaptext' => true,
|
|
|
|
'retrofont' => true,
|
|
|
|
'tweens' => true,
|
|
|
|
'sound' => true,
|
|
|
|
'particles' => true,
|
|
|
|
'debug' => true,
|
|
|
|
'tilemap' => true,
|
|
|
|
'arcade' => true,
|
|
|
|
'p2' => true,
|
|
|
|
'ninja' => false,
|
2015-04-13 22:16:29 +00:00
|
|
|
'box2d' => false,
|
|
|
|
'creature' => false,
|
2015-05-04 02:00:45 +00:00
|
|
|
'video' => true,
|
2015-07-23 19:54:59 +00:00
|
|
|
'rope' => true,
|
|
|
|
'tilesprite' => true
|
2015-02-24 21:28:44 +00:00
|
|
|
);
|
2014-11-29 19:40:17 +00:00
|
|
|
}
|
|
|
|
|
2015-07-23 19:54:59 +00:00
|
|
|
if ($modules['creature'])
|
2014-03-18 15:11:48 +00:00
|
|
|
{
|
2015-07-23 19:54:59 +00:00
|
|
|
echo " <script src=\"$path/src/animation/creature/gl-matrix.js\"></script>";
|
|
|
|
echo " <script src=\"$path/src/animation/creature/CreatureMeshBone.js\"></script>";
|
2014-03-18 15:11:48 +00:00
|
|
|
}
|
|
|
|
|
2015-07-23 19:54:59 +00:00
|
|
|
if ($modules['p2'])
|
2015-04-13 22:16:29 +00:00
|
|
|
{
|
2015-07-23 19:54:59 +00:00
|
|
|
echo " <script src=\"$path/src/physics/p2/p2.js\"></script>";
|
2015-04-13 22:16:29 +00:00
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['box2d'] && isset($box2dpath))
|
2014-09-29 11:26:01 +00:00
|
|
|
{
|
2014-09-29 20:19:18 +00:00
|
|
|
echo " <script src=\"$box2dpath/box2d-html5.js\"></script>";
|
2014-09-29 11:26:01 +00:00
|
|
|
}
|
|
|
|
|
2016-10-07 02:21:39 +00:00
|
|
|
echo <<<EOL
|
2016-10-07 02:08:51 +00:00
|
|
|
|
2016-10-07 02:21:39 +00:00
|
|
|
EOL;
|
2016-10-07 02:08:51 +00:00
|
|
|
|
2016-10-07 02:21:39 +00:00
|
|
|
// Phaser Global
|
2014-03-18 15:11:48 +00:00
|
|
|
echo <<<EOL
|
2014-02-06 12:29:07 +00:00
|
|
|
|
2016-10-07 02:21:39 +00:00
|
|
|
<script src="$path/src/Phaser.js"></script>
|
|
|
|
<script src="$path/src/polyfills.js"></script>
|
|
|
|
|
2013-11-24 11:04:58 +00:00
|
|
|
<script src="$path/src/pixi/display/DisplayObject.js"></script>
|
|
|
|
<script src="$path/src/pixi/display/DisplayObjectContainer.js"></script>
|
|
|
|
<script src="$path/src/pixi/display/Sprite.js"></script>
|
2014-10-17 16:38:01 +00:00
|
|
|
<script src="$path/src/pixi/renderers/canvas/utils/CanvasBuffer.js"></script>
|
2013-11-24 11:04:58 +00:00
|
|
|
<script src="$path/src/pixi/textures/BaseTexture.js"></script>
|
|
|
|
<script src="$path/src/pixi/textures/Texture.js"></script>
|
2015-02-17 16:40:18 +00:00
|
|
|
|
2014-02-28 09:30:53 +00:00
|
|
|
<script src="$path/src/utils/Utils.js"></script>
|
2016-09-28 12:38:59 +00:00
|
|
|
<script src="$path/src/utils/CanvasPool.js"></script>
|
2014-02-28 09:30:53 +00:00
|
|
|
|
|
|
|
<script src="$path/src/geom/Circle.js"></script>
|
|
|
|
<script src="$path/src/geom/Ellipse.js"></script>
|
2016-07-13 02:08:03 +00:00
|
|
|
<script src="$path/src/geom/Hermite.js"></script>
|
2015-02-17 16:40:18 +00:00
|
|
|
<script src="$path/src/geom/Line.js"></script>
|
|
|
|
<script src="$path/src/geom/Matrix.js"></script>
|
|
|
|
<script src="$path/src/geom/Point.js"></script>
|
2014-02-28 09:30:53 +00:00
|
|
|
<script src="$path/src/geom/Polygon.js"></script>
|
2015-02-17 16:40:18 +00:00
|
|
|
<script src="$path/src/geom/Rectangle.js"></script>
|
|
|
|
<script src="$path/src/geom/RoundedRectangle.js"></script>
|
2014-02-28 09:30:53 +00:00
|
|
|
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/core/Camera.js"></script>
|
2015-07-08 23:19:21 +00:00
|
|
|
<script src="$path/src/core/Create.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/core/State.js"></script>
|
|
|
|
<script src="$path/src/core/StateManager.js"></script>
|
|
|
|
<script src="$path/src/core/Signal.js"></script>
|
|
|
|
<script src="$path/src/core/SignalBinding.js"></script>
|
|
|
|
<script src="$path/src/core/Filter.js"></script>
|
|
|
|
<script src="$path/src/core/Plugin.js"></script>
|
|
|
|
<script src="$path/src/core/PluginManager.js"></script>
|
|
|
|
<script src="$path/src/core/Group.js"></script>
|
|
|
|
<script src="$path/src/core/World.js"></script>
|
2014-09-05 05:01:48 +00:00
|
|
|
<script src="$path/src/core/FlexGrid.js"></script>
|
2014-09-05 14:46:10 +00:00
|
|
|
<script src="$path/src/core/FlexLayer.js"></script>
|
2014-02-25 14:46:48 +00:00
|
|
|
<script src="$path/src/core/ScaleManager.js"></script>
|
2014-11-18 09:45:52 +00:00
|
|
|
<script src="$path/src/core/Game.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
|
|
|
|
<script src="$path/src/input/Input.js"></script>
|
|
|
|
<script src="$path/src/input/Mouse.js"></script>
|
|
|
|
<script src="$path/src/input/MSPointer.js"></script>
|
2015-07-17 12:52:09 +00:00
|
|
|
<script src="$path/src/input/DeviceButton.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/input/Pointer.js"></script>
|
|
|
|
<script src="$path/src/input/Touch.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
<script src="$path/src/input/InputHandler.js"></script>
|
|
|
|
|
2016-09-29 15:10:22 +00:00
|
|
|
<script src="$path/src/textures/TextureManager.js"></script>
|
|
|
|
<script src="$path/src/textures/Texture.js"></script>
|
2016-09-30 05:07:00 +00:00
|
|
|
<script src="$path/src/textures/TextureSource.js"></script>
|
2016-09-29 15:10:22 +00:00
|
|
|
<script src="$path/src/textures/Frame.js"></script>
|
2016-09-30 05:07:00 +00:00
|
|
|
<script src="$path/src/textures/parsers/Canvas.js"></script>
|
2016-10-10 22:39:52 +00:00
|
|
|
<script src="$path/src/textures/parsers/Image.js"></script>
|
2016-09-29 15:10:22 +00:00
|
|
|
<script src="$path/src/textures/parsers/JSONArray.js"></script>
|
2016-09-29 15:32:24 +00:00
|
|
|
<script src="$path/src/textures/parsers/JSONHash.js"></script>
|
|
|
|
<script src="$path/src/textures/parsers/SpriteSheet.js"></script>
|
2016-09-29 15:10:22 +00:00
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
EOL;
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['keyboard'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
|
|
|
<script src="$path/src/input/Key.js"></script>
|
|
|
|
<script src="$path/src/input/Keyboard.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['gamepad'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/input/Gamepad.js"></script>
|
2013-12-31 00:43:54 +00:00
|
|
|
<script src="$path/src/input/SinglePad.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
|
|
|
|
<script src="$path/src/renderer/canvas/CanvasRenderer.js"></script>
|
|
|
|
|
|
|
|
<script src="$path/src/renderer/webgl/WebGLRenderer.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/BatchManager.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/FilterManager.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/FilterTexture.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/ShaderManager.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/StencilManager.js"></script>
|
2016-11-03 04:04:34 +00:00
|
|
|
<script src="$path/src/renderer/webgl/QuadFBO.js"></script>
|
2016-10-30 22:56:26 +00:00
|
|
|
|
2016-10-30 14:57:38 +00:00
|
|
|
<script src="$path/src/renderer/webgl/batches/BaseBatch.js"></script>
|
2016-10-30 22:56:26 +00:00
|
|
|
<script src="$path/src/renderer/webgl/batches/FXBatch.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/batches/MultiTextureBatch.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/batches/PixelBatch.js"></script>
|
2016-10-31 19:44:46 +00:00
|
|
|
<script src="$path/src/renderer/webgl/batches/SingleTextureBatch.js"></script>
|
2016-10-30 22:56:26 +00:00
|
|
|
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/renderer/webgl/shaders/ComplexPrimitiveGraphics.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/shaders/PrimitiveGraphics.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/shaders/SpriteBatch.js"></script>
|
|
|
|
<script src="$path/src/renderer/webgl/shaders/Strip.js"></script>
|
|
|
|
|
2015-02-17 06:00:05 +00:00
|
|
|
<script src="$path/src/gameobjects/components/Component.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Angle.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Animation.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/AutoCull.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Bounds.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/BringToTop.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Core.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Crop.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Delta.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Destroy.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
<script src="$path/src/gameobjects/components/Events.js"></script>
|
2015-02-17 06:00:05 +00:00
|
|
|
<script src="$path/src/gameobjects/components/FixedToCamera.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Health.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/InCamera.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/InputEnabled.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/InWorld.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/LifeSpan.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/LoadTexture.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Overlap.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/PhysicsBody.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Reset.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/ScaleMinMax.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/components/Smoothed.js"></script>
|
|
|
|
|
2016-10-12 23:08:26 +00:00
|
|
|
<script src="$path/src/components/BaseTransform.js"></script>
|
2016-10-12 14:19:04 +00:00
|
|
|
<script src="$path/src/components/Children.js"></script>
|
2016-10-14 07:58:12 +00:00
|
|
|
<script src="$path/src/components/Color.js"></script>
|
2016-10-12 14:19:04 +00:00
|
|
|
<script src="$path/src/components/Data.js"></script>
|
2016-10-12 23:08:26 +00:00
|
|
|
<script src="$path/src/components/Transform.js"></script>
|
2016-10-14 07:58:12 +00:00
|
|
|
<script src="$path/src/components/UpdateManager.js"></script>
|
2016-10-12 14:19:04 +00:00
|
|
|
|
2016-10-19 10:54:00 +00:00
|
|
|
<script src="$path/src/gameobjects/GameObject.js"></script>
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/gameobjects/Factory.js"></script>
|
2016-10-08 15:31:08 +00:00
|
|
|
<script src="$path/src/gameobjects/GameObjectCreator.js"></script>
|
2016-10-08 02:05:42 +00:00
|
|
|
|
2016-10-14 01:20:43 +00:00
|
|
|
<script src="$path/src/gameobjects/container/Container.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/container/ContainerFactory.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/container/ContainerCanvasRenderer.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/container/ContainerWebGLRenderer.js"></script>
|
2016-10-08 02:05:42 +00:00
|
|
|
|
|
|
|
<script src="$path/src/gameobjects/sprite/Sprite.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/sprite/SpriteFactory.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/sprite/SpriteCanvasRenderer.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/sprite/SpriteWebGLRenderer.js"></script>
|
|
|
|
|
|
|
|
<script src="$path/src/gameobjects/image/Image.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/image/ImageFactory.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/image/ImageCanvasRenderer.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/image/ImageWebGLRenderer.js"></script>
|
|
|
|
|
|
|
|
<script src="$path/src/gameobjects/button/Button.js"></script>
|
2016-10-08 15:17:46 +00:00
|
|
|
<script src="$path/src/gameobjects/button/ButtonFactory.js"></script>
|
2016-10-08 02:05:42 +00:00
|
|
|
|
|
|
|
<script src="$path/src/gameobjects/spritebatch/SpriteBatch.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/spritebatch/SpriteBatchFactory.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/spritebatch/SpriteBatchCanvasRenderer.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/spritebatch/SpriteBatchWebGLRenderer.js"></script>
|
|
|
|
|
|
|
|
<script src="$path/src/gameobjects/particle/Particle.js"></script>
|
|
|
|
|
2016-10-30 22:56:26 +00:00
|
|
|
<script src="$path/src/gameobjects/pixelfield/PixelField.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/pixelfield/PixelFieldFactory.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/pixelfield/PixelFieldWebGLRenderer.js"></script>
|
|
|
|
|
2016-10-14 01:20:43 +00:00
|
|
|
<script src="$path/src/gameobjects/stage/Stage.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/stage/StageCanvasRenderer.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/stage/StageWebGLRenderer.js"></script>
|
2016-10-08 02:05:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
|
2016-06-03 16:26:38 +00:00
|
|
|
<script src="$path/src/plugins/weapon/WeaponPlugin.js"></script>
|
|
|
|
<script src="$path/src/plugins/weapon/Bullet.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
2016-07-13 02:08:03 +00:00
|
|
|
<script src="$path/src/plugins/path/PathManagerPlugin.js"></script>
|
|
|
|
<script src="$path/src/plugins/path/Path.js"></script>
|
|
|
|
<script src="$path/src/plugins/path/PathFollower.js"></script>
|
|
|
|
<script src="$path/src/plugins/path/PathPoint.js"></script>
|
|
|
|
<script src="$path/src/plugins/path/EventTarget.js"></script>
|
|
|
|
|
2016-10-05 00:09:23 +00:00
|
|
|
|
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
EOL;
|
|
|
|
|
2015-07-23 19:54:59 +00:00
|
|
|
if ($modules['rope'])
|
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/gameobjects/rope/Rope.js"></script>
|
2016-10-08 15:17:46 +00:00
|
|
|
<script src="$path/src/gameobjects/rope/RopeFactory.js"></script>
|
2015-07-23 19:54:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($modules['tilesprite'])
|
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/gameobjects/tilesprite/TileSprite.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/tilesprite/TileSpriteFactory.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/tilesprite/TileSpriteCanvasRenderer.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/tilesprite/TileSpriteWebGLRenderer.js"></script>
|
2015-07-23 19:54:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($modules['creature'])
|
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/gameobjects/creature/Creature.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/creature/CreatureFactory.js"></script>
|
2015-07-23 19:54:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['bitmapdata'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/textures/BitmapData.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['graphics'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/gameobjects/graphics/GraphicsData.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/graphics/Graphics.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/graphics/GraphicsFactory.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/graphics/GraphicsCanvasRenderer.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/graphics/GraphicsWebGLRenderer.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/graphics/GraphicsWebGLData.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['rendertexture'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/textures/RenderTexture.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['text'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/gameobjects/text/Text.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/text/TextFactory.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/text/TextCanvasRenderer.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/text/TextWebGLRenderer.js"></script>
|
2015-02-19 06:03:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['bitmaptext'])
|
2015-02-19 06:03:42 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/gameobjects/bitmaptext/BitmapText.js"></script>
|
2016-10-08 12:18:35 +00:00
|
|
|
<script src="$path/src/gameobjects/bitmaptext/BitmapTextFactory.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['retrofont'] && $modules['rendertexture'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/gameobjects/retrofont/RetroFont.js"></script>
|
2016-10-08 15:17:46 +00:00
|
|
|
<script src="$path/src/gameobjects/retrofont/RetroFontFactory.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
|
2015-05-04 02:00:45 +00:00
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($modules['video'])
|
|
|
|
{
|
|
|
|
echo <<<EOL
|
2016-10-08 02:05:42 +00:00
|
|
|
<script src="$path/src/gameobjects/video/Video.js"></script>
|
2016-10-08 15:17:46 +00:00
|
|
|
<script src="$path/src/gameobjects/video/VideoFactory.js"></script>
|
2015-05-04 02:00:45 +00:00
|
|
|
|
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
echo <<<EOL
|
2016-07-13 02:08:03 +00:00
|
|
|
<script src="$path/src/utils/Device.js"></script>
|
|
|
|
<script src="$path/src/utils/DOM.js"></script>
|
|
|
|
<script src="$path/src/utils/Canvas.js"></script>
|
|
|
|
<script src="$path/src/utils/RequestAnimationFrame.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
|
2014-02-07 06:25:28 +00:00
|
|
|
<script src="$path/src/math/Math.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/math/RandomDataGenerator.js"></script>
|
2014-03-07 15:14:53 +00:00
|
|
|
<script src="$path/src/math/QuadTree.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
|
|
|
|
<script src="$path/src/net/Net.js"></script>
|
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
EOL;
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['tweens'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/tween/TweenManager.js"></script>
|
|
|
|
<script src="$path/src/tween/Tween.js"></script>
|
2014-11-18 20:58:25 +00:00
|
|
|
<script src="$path/src/tween/TweenData.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/tween/Easing.js"></script>
|
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo <<<EOL
|
|
|
|
<script src="$path/src/stubs/TweenManager.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
echo <<<EOL
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/time/Time.js"></script>
|
|
|
|
<script src="$path/src/time/Timer.js"></script>
|
|
|
|
<script src="$path/src/time/TimerEvent.js"></script>
|
|
|
|
|
|
|
|
<script src="$path/src/animation/AnimationManager.js"></script>
|
|
|
|
<script src="$path/src/animation/Animation.js"></script>
|
|
|
|
<script src="$path/src/animation/Frame.js"></script>
|
|
|
|
<script src="$path/src/animation/FrameData.js"></script>
|
|
|
|
<script src="$path/src/animation/AnimationParser.js"></script>
|
|
|
|
|
|
|
|
<script src="$path/src/loader/Cache.js"></script>
|
|
|
|
<script src="$path/src/loader/Loader.js"></script>
|
|
|
|
<script src="$path/src/loader/LoaderParser.js"></script>
|
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
EOL;
|
|
|
|
|
2015-04-13 22:16:29 +00:00
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['sound'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2014-09-24 05:51:53 +00:00
|
|
|
<script src="$path/src/sound/AudioSprite.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/sound/Sound.js"></script>
|
|
|
|
<script src="$path/src/sound/SoundManager.js"></script>
|
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo <<<EOL
|
|
|
|
<script src="$path/src/stubs/SoundManager.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['debug'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
|
|
|
<script src="$path/src/utils/Debug.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
echo <<<EOL
|
2014-11-17 14:14:50 +00:00
|
|
|
<script src="$path/src/utils/ArraySet.js"></script>
|
|
|
|
<script src="$path/src/utils/LinkedList.js"></script>
|
2014-11-12 22:49:36 +00:00
|
|
|
<script src="$path/src/utils/ArrayUtils.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/utils/Color.js"></script>
|
|
|
|
|
2014-03-05 02:36:08 +00:00
|
|
|
<script src="$path/src/physics/Physics.js"></script>
|
2014-03-18 15:11:48 +00:00
|
|
|
<script src="$path/src/particles/Particles.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['particles'] && $modules['arcade'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2014-03-18 15:11:48 +00:00
|
|
|
<script src="$path/src/particles/arcade/ArcadeParticles.js"></script>
|
|
|
|
<script src="$path/src/particles/arcade/Emitter.js"></script>
|
|
|
|
|
2015-02-17 16:40:18 +00:00
|
|
|
|
2014-11-29 19:40:17 +00:00
|
|
|
EOL;
|
2015-02-19 05:01:50 +00:00
|
|
|
}
|
2014-11-29 19:40:17 +00:00
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['tilemap'])
|
2014-11-29 19:40:17 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2015-07-02 12:53:02 +00:00
|
|
|
<script src="$path/src/tilemap/ImageCollection.js"></script>
|
2014-03-18 15:11:48 +00:00
|
|
|
<script src="$path/src/tilemap/Tile.js"></script>
|
|
|
|
<script src="$path/src/tilemap/Tilemap.js"></script>
|
|
|
|
<script src="$path/src/tilemap/TilemapLayer.js"></script>
|
|
|
|
<script src="$path/src/tilemap/TilemapParser.js"></script>
|
|
|
|
<script src="$path/src/tilemap/Tileset.js"></script>
|
2014-11-18 09:45:52 +00:00
|
|
|
|
2015-02-19 05:01:50 +00:00
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
EOL;
|
2014-11-29 19:40:17 +00:00
|
|
|
}
|
2014-03-18 15:11:48 +00:00
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['arcade'])
|
2014-03-18 15:11:48 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2014-03-05 02:36:08 +00:00
|
|
|
<script src="$path/src/physics/arcade/World.js"></script>
|
|
|
|
<script src="$path/src/physics/arcade/Body.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['tilemap'] && $modules['arcade'])
|
2015-02-19 05:01:50 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2015-02-17 16:40:18 +00:00
|
|
|
<script src="$path/src/physics/arcade/TilemapCollision.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
EOL;
|
|
|
|
}
|
2014-03-06 06:27:16 +00:00
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['p2'])
|
2014-03-18 15:11:48 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2014-03-05 02:36:08 +00:00
|
|
|
<script src="$path/src/physics/p2/World.js"></script>
|
2014-04-11 02:02:19 +00:00
|
|
|
<script src="$path/src/physics/p2/FixtureList.js"></script>
|
2014-03-05 02:36:08 +00:00
|
|
|
<script src="$path/src/physics/p2/PointProxy.js"></script>
|
|
|
|
<script src="$path/src/physics/p2/InversePointProxy.js"></script>
|
|
|
|
<script src="$path/src/physics/p2/Body.js"></script>
|
2014-03-10 15:25:43 +00:00
|
|
|
<script src="$path/src/physics/p2/BodyDebug.js"></script>
|
2014-03-05 02:36:08 +00:00
|
|
|
<script src="$path/src/physics/p2/Spring.js"></script>
|
2014-08-27 23:58:50 +00:00
|
|
|
<script src="$path/src/physics/p2/RotationalSpring.js"></script>
|
2014-03-05 02:36:08 +00:00
|
|
|
<script src="$path/src/physics/p2/Material.js"></script>
|
|
|
|
<script src="$path/src/physics/p2/ContactMaterial.js"></script>
|
|
|
|
<script src="$path/src/physics/p2/CollisionGroup.js"></script>
|
2014-03-13 11:13:22 +00:00
|
|
|
<script src="$path/src/physics/p2/DistanceConstraint.js"></script>
|
|
|
|
<script src="$path/src/physics/p2/GearConstraint.js"></script>
|
2014-03-13 12:14:14 +00:00
|
|
|
<script src="$path/src/physics/p2/LockConstraint.js"></script>
|
|
|
|
<script src="$path/src/physics/p2/PrismaticConstraint.js"></script>
|
|
|
|
<script src="$path/src/physics/p2/RevoluteConstraint.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
2013-11-24 11:04:58 +00:00
|
|
|
EOL;
|
2014-03-18 15:11:48 +00:00
|
|
|
}
|
2014-03-05 02:36:08 +00:00
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['ninja'])
|
2014-03-18 15:11:48 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
|
|
|
<script src="$path/src/physics/ninja/World.js"></script>
|
|
|
|
<script src="$path/src/physics/ninja/Body.js"></script>
|
|
|
|
<script src="$path/src/physics/ninja/AABB.js"></script>
|
|
|
|
<script src="$path/src/physics/ninja/Tile.js"></script>
|
|
|
|
<script src="$path/src/physics/ninja/Circle.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
EOL;
|
|
|
|
}
|
2014-03-05 02:36:08 +00:00
|
|
|
|
2015-02-24 21:28:44 +00:00
|
|
|
if ($modules['box2d'] && isset($box2dpath))
|
2014-09-29 11:26:01 +00:00
|
|
|
{
|
|
|
|
echo <<<EOL
|
2014-09-29 20:19:18 +00:00
|
|
|
<script src="$box2dpath/World.js"></script>
|
|
|
|
<script src="$box2dpath/Body.js"></script>
|
|
|
|
<script src="$box2dpath/PointProxy.js"></script>
|
|
|
|
<script src="$box2dpath/DefaultDebugDraw.js"></script>
|
|
|
|
<script src="$box2dpath/DefaultContactListener.js"></script>
|
|
|
|
<script src="$box2dpath/Polygon.js"></script>
|
2015-02-19 05:01:50 +00:00
|
|
|
|
|
|
|
|
2014-09-29 11:26:01 +00:00
|
|
|
EOL;
|
|
|
|
}
|
|
|
|
|
2014-08-27 20:24:53 +00:00
|
|
|
if (isset($custom))
|
2014-08-06 15:24:33 +00:00
|
|
|
{
|
|
|
|
for ($i = 0; $i < count($custom); $i++)
|
|
|
|
{
|
|
|
|
echo ' <script src="' . $custom[$i] . '"></script>' . "\n";
|
|
|
|
}
|
|
|
|
}
|
2014-02-28 09:30:53 +00:00
|
|
|
?>
|