2013-10-23 01:14:51 +00:00
|
|
|
<?php
|
2014-02-05 16:54:35 +00:00
|
|
|
if (!isset($path))
|
|
|
|
{
|
|
|
|
$path = '..';
|
|
|
|
}
|
2013-11-24 11:04:58 +00:00
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
if (!isset($p2))
|
|
|
|
{
|
|
|
|
$p2 = true;
|
|
|
|
}
|
|
|
|
|
2014-09-29 11:26:01 +00:00
|
|
|
if (!isset($box2d))
|
|
|
|
{
|
|
|
|
$box2d = false;
|
|
|
|
}
|
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
if (!isset($ninja))
|
|
|
|
{
|
2014-09-29 11:26:01 +00:00
|
|
|
$ninja = false;
|
2014-03-18 15:11:48 +00:00
|
|
|
}
|
2014-02-06 03:34:27 +00:00
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
if (!isset($arcade))
|
|
|
|
{
|
|
|
|
$arcade = true;
|
|
|
|
}
|
|
|
|
|
2014-11-29 19:40:17 +00:00
|
|
|
if (!isset($tilemap))
|
|
|
|
{
|
|
|
|
$tilemap = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($nophysics))
|
|
|
|
{
|
|
|
|
$p2 = false;
|
|
|
|
$box2d = false;
|
|
|
|
$ninja = false;
|
|
|
|
$arcade = false;
|
|
|
|
$tilemap = false;
|
|
|
|
}
|
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
if ($p2)
|
|
|
|
{
|
|
|
|
echo " <script src=\"$path/src/physics/p2/p2.js\"></script>";
|
|
|
|
}
|
|
|
|
|
2014-09-29 11:26:01 +00:00
|
|
|
if ($box2d)
|
|
|
|
{
|
2014-09-29 20:19:18 +00:00
|
|
|
echo " <script src=\"$box2dpath/box2d-html5.js\"></script>";
|
2014-09-29 11:26:01 +00:00
|
|
|
}
|
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
echo <<<EOL
|
2014-02-06 12:29:07 +00:00
|
|
|
|
2014-11-12 22:38:51 +00:00
|
|
|
<script src="$path/src/polyfills.js"></script>
|
|
|
|
|
2014-02-28 09:30:53 +00:00
|
|
|
<script src="$path/src/pixi/Pixi.js"></script>
|
2014-10-22 20:20:38 +00:00
|
|
|
<script src="$path/src/pixi/geom/Matrix.js"></script>
|
2014-10-29 07:28:32 +00:00
|
|
|
<script src="$path/src/pixi/geom/Polygon.js"></script>
|
2014-11-11 23:24:38 +00:00
|
|
|
<script src="$path/src/pixi/geom/Rectangle.js"></script>
|
2014-11-11 23:02:57 +00:00
|
|
|
<script src="$path/src/pixi/geom/RoundedRectangle.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-02-06 02:31:36 +00:00
|
|
|
<script src="$path/src/pixi/display/SpriteBatch.js"></script>
|
|
|
|
<script src="$path/src/pixi/filters/FilterBlock.js"></script>
|
|
|
|
<script src="$path/src/pixi/text/Text.js"></script>
|
|
|
|
<script src="$path/src/pixi/text/BitmapText.js"></script>
|
2013-11-24 11:04:58 +00:00
|
|
|
<script src="$path/src/pixi/display/Stage.js"></script>
|
2014-02-28 09:30:53 +00:00
|
|
|
<script src="$path/src/pixi/utils/Utils.js"></script>
|
2014-02-06 02:31:36 +00:00
|
|
|
<script src="$path/src/pixi/utils/EventTarget.js"></script>
|
|
|
|
<script src="$path/src/pixi/utils/Polyk.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/WebGLShaderUtils.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/shaders/PixiShader.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/shaders/PixiFastShader.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/shaders/StripShader.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/shaders/PrimitiveShader.js"></script>
|
2014-07-01 14:03:46 +00:00
|
|
|
<script src="$path/src/pixi/renderers/webgl/shaders/ComplexPrimitiveShader.js"></script>
|
2014-02-06 02:31:36 +00:00
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/WebGLGraphics.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/WebGLRenderer.js"></script>
|
2014-07-09 04:40:50 +00:00
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/WebGLBlendModeManager.js"></script>
|
2014-02-06 02:31:36 +00:00
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/WebGLMaskManager.js"></script>
|
2014-07-01 14:03:46 +00:00
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/WebGLStencilManager.js"></script>
|
2014-02-06 02:31:36 +00:00
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/WebGLShaderManager.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/WebGLFilterManager.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/webgl/utils/FilterTexture.js"></script>
|
2014-10-17 16:38:01 +00:00
|
|
|
<script src="$path/src/pixi/renderers/canvas/utils/CanvasBuffer.js"></script>
|
2014-02-06 02:31:36 +00:00
|
|
|
<script src="$path/src/pixi/renderers/canvas/utils/CanvasMaskManager.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/canvas/utils/CanvasTinter.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/canvas/CanvasRenderer.js"></script>
|
|
|
|
<script src="$path/src/pixi/renderers/canvas/CanvasGraphics.js"></script>
|
2014-10-11 03:18:42 +00:00
|
|
|
|
2014-07-01 14:03:46 +00:00
|
|
|
<script src="$path/src/pixi/extras/Strip.js"></script>
|
|
|
|
<script src="$path/src/pixi/extras/Rope.js"></script>
|
2013-11-24 11:04:58 +00:00
|
|
|
<script src="$path/src/pixi/extras/TilingSprite.js"></script>
|
|
|
|
<script src="$path/src/pixi/textures/BaseTexture.js"></script>
|
|
|
|
<script src="$path/src/pixi/textures/Texture.js"></script>
|
2014-02-06 02:31:36 +00:00
|
|
|
<script src="$path/src/pixi/textures/RenderTexture.js"></script>
|
2014-10-13 22:54:22 +00:00
|
|
|
<script src="$path/src/pixi/filters/AbstractFilter.js"></script>
|
2013-11-24 11:04:58 +00:00
|
|
|
|
2014-02-28 09:30:53 +00:00
|
|
|
<script src="$path/src/Phaser.js"></script>
|
2014-11-18 09:45:52 +00:00
|
|
|
<script src="$path/src/polyfills.js"></script>
|
2014-02-28 09:30:53 +00:00
|
|
|
<script src="$path/src/utils/Utils.js"></script>
|
|
|
|
|
|
|
|
<script src="$path/src/geom/Circle.js"></script>
|
|
|
|
<script src="$path/src/geom/Point.js"></script>
|
|
|
|
<script src="$path/src/geom/Rectangle.js"></script>
|
|
|
|
<script src="$path/src/geom/Line.js"></script>
|
|
|
|
<script src="$path/src/geom/Ellipse.js"></script>
|
|
|
|
<script src="$path/src/geom/Polygon.js"></script>
|
|
|
|
|
2014-10-11 03:18:42 +00:00
|
|
|
<script src="$path/src/pixi/primitives/Graphics.js"></script>
|
|
|
|
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/core/Camera.js"></script>
|
|
|
|
<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/Stage.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/Key.js"></script>
|
|
|
|
<script src="$path/src/input/Keyboard.js"></script>
|
|
|
|
<script src="$path/src/input/Mouse.js"></script>
|
|
|
|
<script src="$path/src/input/MSPointer.js"></script>
|
|
|
|
<script src="$path/src/input/Pointer.js"></script>
|
|
|
|
<script src="$path/src/input/Touch.js"></script>
|
|
|
|
<script src="$path/src/input/Gamepad.js"></script>
|
2013-12-31 00:43:54 +00:00
|
|
|
<script src="$path/src/input/SinglePad.js"></script>
|
|
|
|
<script src="$path/src/input/GamepadButton.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/input/InputHandler.js"></script>
|
|
|
|
|
|
|
|
<script src="$path/src/gameobjects/Events.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/GameObjectFactory.js"></script>
|
2014-11-18 09:45:52 +00:00
|
|
|
<script src="$path/src/gameobjects/GameObjectCreator.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/gameobjects/BitmapData.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/Sprite.js"></script>
|
2014-02-06 19:34:05 +00:00
|
|
|
<script src="$path/src/gameobjects/Image.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/gameobjects/TileSprite.js"></script>
|
2014-11-18 09:45:52 +00:00
|
|
|
<script src="$path/src/gameobjects/Rope.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/gameobjects/Text.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/BitmapText.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/Button.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/Graphics.js"></script>
|
|
|
|
<script src="$path/src/gameobjects/RenderTexture.js"></script>
|
2014-02-14 01:39:01 +00:00
|
|
|
<script src="$path/src/gameobjects/SpriteBatch.js"></script>
|
2014-03-03 17:03:15 +00:00
|
|
|
<script src="$path/src/gameobjects/RetroFont.js"></script>
|
2014-04-09 13:29:23 +00:00
|
|
|
<script src="$path/src/gameobjects/Particle.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
|
2014-11-18 09:45:52 +00:00
|
|
|
<script src="$path/src/system/Device.js"></script>
|
2014-11-11 05:56:32 +00:00
|
|
|
<script src="$path/src/system/DOM.js"></script>
|
2014-02-05 16:54:35 +00:00
|
|
|
<script src="$path/src/system/Canvas.js"></script>
|
|
|
|
<script src="$path/src/system/RequestAnimationFrame.js"></script>
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
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>
|
|
|
|
|
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/Debug.js"></script>
|
|
|
|
<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>
|
|
|
|
<script src="$path/src/particles/arcade/ArcadeParticles.js"></script>
|
|
|
|
<script src="$path/src/particles/arcade/Emitter.js"></script>
|
|
|
|
|
2014-11-29 19:40:17 +00:00
|
|
|
EOL;
|
|
|
|
|
|
|
|
if ($tilemap)
|
|
|
|
{
|
|
|
|
echo <<<EOL
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
if ($arcade)
|
|
|
|
{
|
|
|
|
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>
|
2014-03-18 15:11:48 +00:00
|
|
|
EOL;
|
|
|
|
}
|
2014-03-06 06:27:16 +00:00
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
if ($p2)
|
|
|
|
{
|
|
|
|
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>
|
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
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
if ($ninja)
|
|
|
|
{
|
|
|
|
echo <<<EOL
|
|
|
|
|
|
|
|
<script src="$path/src/physics/arcade/World.js"></script>
|
|
|
|
<script src="$path/src/physics/arcade/Body.js"></script>
|
2014-03-05 02:36:08 +00:00
|
|
|
|
2014-03-18 15:11:48 +00:00
|
|
|
<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>
|
|
|
|
EOL;
|
|
|
|
}
|
2014-03-05 02:36:08 +00:00
|
|
|
|
2014-09-29 11:26:01 +00:00
|
|
|
if ($box2d)
|
|
|
|
{
|
|
|
|
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>
|
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
|
|
|
?>
|