Setting up 3.0 folder.

This commit is contained in:
Richard Davey 2016-11-22 01:51:59 +00:00
parent 0d90f75b5f
commit 0dfcd217ee
7 changed files with 98 additions and 615 deletions

15
2.6.2/.gitignore vendored Normal file
View file

@ -0,0 +1,15 @@
# System and IDE files
Thumbs.db
.DS_Store
.idea
*.suo
*.sublime-project
*.sublime-workspace
# Vendors
node_modules/
# Build
dist/
/npm-debug.log
out/

15
2.7.0/.gitignore vendored Normal file
View file

@ -0,0 +1,15 @@
# System and IDE files
Thumbs.db
.DS_Store
.idea
*.suo
*.sublime-project
*.sublime-workspace
# Vendors
node_modules/
# Build
dist/
/npm-debug.log
out/

15
3.0.0/.gitignore vendored Normal file
View file

@ -0,0 +1,15 @@
# System and IDE files
Thumbs.db
.DS_Store
.idea
*.suo
*.sublime-project
*.sublime-workspace
# Vendors
node_modules/
# Build
dist/
/npm-debug.log
out/

View file

@ -1,50 +0,0 @@
{
"globals" : { "Phaser": false, "PIXI": false, "p2": false, "CocoonJS": false, "process": false, "JSON": false },
// Ignore Environment Globals
"browser" : true, // Standard browser globals e.g. `window`, `document`.
// Development
"devel" : true, // Allow developments statements e.g. `console.log();`.
// ECMAScript Support
"es3" : true, // Support legacy browser and javascript environments.
"esnext" : false, // This option tells JSHint that your code uses ECMAScript 6 specific syntax.
"strict" : false, // Require `use strict` pragma in every file.
"globalstrict": false, // Allow global "use strict" (also enables 'strict').
// Functionality
"bitwise" : false, // Prohibit bitwise operators (&, |, ^, etc.).
"boss" : true, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments.
"camelcase" : true, // Force all variable names to use either camelCase style or UPPER_CASE with underscores.
"curly" : true, // Require {} for every new block or scope.
"eqeqeq" : true, // Require triple equals i.e. `===`.
"eqnull" : true, // Tolerate use of `== null`.
"evil" : false, // Tolerate use of `eval`.
"expr" : false, // Tolerate `ExpressionStatement` as Programs.
"forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`.
"freeze" : true, // Prohibits overwriting prototypes of native objects such as Array and Date.
"funcscope" : true, // This option suppresses warnings about declaring variables inside of control structures while accessing them later from the outside.
"immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
"latedef" : true, // Prohibit variable use before definition.
"laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
"laxcomma" : false, // This option suppresses warnings about comma-first coding style.
"loopfunc" : true, // Allow functions to be defined within loops.
"noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"notypeof" : false, // This option suppresses warnings about invalid typeof operator values.
"shadow" : true, // Allows re-define variables later in code e.g. `var x=1; x=2;`.
"smarttabs" : false, // This option suppresses warnings about mixed tabs and spaces when the latter are used for alignmnent only.
"supernew" : false, // Tolerate `new function () { ... };` and `new Object;`.
"undef" : true, // Require all non-global variables be declared before they are used.
"unused" : true, // This option warns when you define and never use your variables.
// Styling
"indent" : 4, // Specify indentation spacing
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`.
"noempty" : true, // Prohibit use of empty blocks.
"nonew" : true, // Prohibit use of constructors for side-effects.
"plusplus" : false, // Prohibit use of `++` & `--`.
"quotmark" : false, // This option enforces the consistency of quotation marks used throughout your code.
"sub" : true, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
"trailing" : true // Prohibit trailing whitespaces.
}

View file

@ -6,12 +6,12 @@
$modules = array(
'keyboard' => true,
'gamepad' => true,
'bitmapdata' => true,
'graphics' => true,
'rendertexture' => true,
'text' => true,
'bitmaptext' => true,
'retrofont' => true,
'bitmapdata' => false,
'graphics' => false,
'rendertexture' => false,
'text' => false,
'bitmaptext' => false,
'retrofont' => false,
'tweens' => true,
'sound' => true,
'particles' => true,
@ -22,18 +22,12 @@
'ninja' => false,
'box2d' => false,
'creature' => false,
'video' => true,
'rope' => true,
'tilesprite' => true
'video' => false,
'rope' => false,
'tilesprite' => false
);
}
if ($modules['creature'])
{
echo " <script src=\"$path/src/animation/creature/gl-matrix.js\"></script>";
echo " <script src=\"$path/src/animation/creature/CreatureMeshBone.js\"></script>";
}
if ($modules['p2'])
{
echo " <script src=\"$path/src/physics/p2/p2.js\"></script>";
@ -54,13 +48,6 @@ EOL;
<script src="$path/src/Phaser.js"></script>
<script src="$path/src/polyfills.js"></script>
<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>
<script src="$path/src/pixi/renderers/canvas/utils/CanvasBuffer.js"></script>
<script src="$path/src/pixi/textures/BaseTexture.js"></script>
<script src="$path/src/pixi/textures/Texture.js"></script>
<script src="$path/src/utils/Utils.js"></script>
<script src="$path/src/utils/CanvasPool.js"></script>
@ -74,22 +61,20 @@ EOL;
<script src="$path/src/geom/Rectangle.js"></script>
<script src="$path/src/geom/RoundedRectangle.js"></script>
<script src="$path/src/camera/Camera.js"></script>
<script src="$path/src/states/State.js"></script>
<script src="$path/src/states/StateManager.js"></script>
<script src="$path/src/states/StateSettings.js"></script>
<script src="$path/src/states/StateSystems.js"></script>
<script src="$path/src/states/StateInput.js"></script>
<script src="$path/src/states/MainLoop.js"></script>
<script src="$path/src/core/Camera.js"></script>
<script src="$path/src/core/Create.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>
<script src="$path/src/core/FlexGrid.js"></script>
<script src="$path/src/core/FlexLayer.js"></script>
<script src="$path/src/core/ScaleManager.js"></script>
<script src="$path/src/core/Game.js"></script>
@ -105,6 +90,7 @@ EOL;
<script src="$path/src/textures/Texture.js"></script>
<script src="$path/src/textures/TextureSource.js"></script>
<script src="$path/src/textures/Frame.js"></script>
<script src="$path/src/textures/Crop.js"></script>
<script src="$path/src/textures/parsers/Canvas.js"></script>
<script src="$path/src/textures/parsers/Image.js"></script>
<script src="$path/src/textures/parsers/JSONArray.js"></script>
@ -156,30 +142,6 @@ EOL;
<script src="$path/src/renderer/webgl/shaders/SpriteBatch.js"></script>
<script src="$path/src/renderer/webgl/shaders/Strip.js"></script>
<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>
<script src="$path/src/gameobjects/components/Events.js"></script>
<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>
<script src="$path/src/components/BaseTransform.js"></script>
<script src="$path/src/components/Children.js"></script>
<script src="$path/src/components/Color.js"></script>
@ -206,6 +168,11 @@ EOL;
<script src="$path/src/gameobjects/image/ImageCanvasRenderer.js"></script>
<script src="$path/src/gameobjects/image/ImageWebGLRenderer.js"></script>
<script src="$path/src/gameobjects/blitter/Blitter.js"></script>
<script src="$path/src/gameobjects/blitter/BlitterFactory.js"></script>
<script src="$path/src/gameobjects/blitter/BlitterWebGLRenderer.js"></script>
<script src="$path/src/gameobjects/blitter/Bob.js"></script>
<script src="$path/src/gameobjects/button/Button.js"></script>
<script src="$path/src/gameobjects/button/ButtonFactory.js"></script>
@ -224,9 +191,6 @@ EOL;
<script src="$path/src/gameobjects/stage/StageCanvasRenderer.js"></script>
<script src="$path/src/gameobjects/stage/StageWebGLRenderer.js"></script>
<script src="$path/src/plugins/weapon/WeaponPlugin.js"></script>
<script src="$path/src/plugins/weapon/Bullet.js"></script>
@ -236,8 +200,6 @@ EOL;
<script src="$path/src/plugins/path/PathPoint.js"></script>
<script src="$path/src/plugins/path/EventTarget.js"></script>
EOL;
if ($modules['rope'])
@ -452,11 +414,12 @@ EOL;
if ($modules['tilemap'])
{
// <script src="$path/src/tilemap/TilemapLayer.js"></script>
echo <<<EOL
<script src="$path/src/tilemap/ImageCollection.js"></script>
<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>

View file

@ -1,507 +0,0 @@
<?php
if (!isset($path)) { $path = '..'; }
if (!isset($modules))
{
$modules = array(
'keyboard' => true,
'gamepad' => true,
'bitmapdata' => false,
'graphics' => false,
'rendertexture' => false,
'text' => false,
'bitmaptext' => false,
'retrofont' => false,
'tweens' => true,
'sound' => true,
'particles' => true,
'debug' => true,
'tilemap' => true,
'arcade' => true,
'p2' => true,
'ninja' => false,
'box2d' => false,
'creature' => false,
'video' => false,
'rope' => false,
'tilesprite' => false
);
}
if ($modules['p2'])
{
echo " <script src=\"$path/src/physics/p2/p2.js\"></script>";
}
if ($modules['box2d'] && isset($box2dpath))
{
echo " <script src=\"$box2dpath/box2d-html5.js\"></script>";
}
echo <<<EOL
EOL;
// Phaser Global
echo <<<EOL
<script src="$path/src/Phaser.js"></script>
<script src="$path/src/polyfills.js"></script>
<script src="$path/src/utils/Utils.js"></script>
<script src="$path/src/utils/CanvasPool.js"></script>
<script src="$path/src/geom/Circle.js"></script>
<script src="$path/src/geom/Ellipse.js"></script>
<script src="$path/src/geom/Hermite.js"></script>
<script src="$path/src/geom/Line.js"></script>
<script src="$path/src/geom/Matrix.js"></script>
<script src="$path/src/geom/Point.js"></script>
<script src="$path/src/geom/Polygon.js"></script>
<script src="$path/src/geom/Rectangle.js"></script>
<script src="$path/src/geom/RoundedRectangle.js"></script>
<script src="$path/src/camera/Camera.js"></script>
<script src="$path/src/states/State.js"></script>
<script src="$path/src/states/StateManager.js"></script>
<script src="$path/src/states/StateSettings.js"></script>
<script src="$path/src/states/StateSystems.js"></script>
<script src="$path/src/states/StateInput.js"></script>
<script src="$path/src/states/MainLoop.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/ScaleManager.js"></script>
<script src="$path/src/core/Game.js"></script>
<script src="$path/src/input/Input.js"></script>
<script src="$path/src/input/Mouse.js"></script>
<script src="$path/src/input/MSPointer.js"></script>
<script src="$path/src/input/DeviceButton.js"></script>
<script src="$path/src/input/Pointer.js"></script>
<script src="$path/src/input/Touch.js"></script>
<script src="$path/src/input/InputHandler.js"></script>
<script src="$path/src/textures/TextureManager.js"></script>
<script src="$path/src/textures/Texture.js"></script>
<script src="$path/src/textures/TextureSource.js"></script>
<script src="$path/src/textures/Frame.js"></script>
<script src="$path/src/textures/Crop.js"></script>
<script src="$path/src/textures/parsers/Canvas.js"></script>
<script src="$path/src/textures/parsers/Image.js"></script>
<script src="$path/src/textures/parsers/JSONArray.js"></script>
<script src="$path/src/textures/parsers/JSONHash.js"></script>
<script src="$path/src/textures/parsers/SpriteSheet.js"></script>
EOL;
if ($modules['keyboard'])
{
echo <<<EOL
<script src="$path/src/input/Key.js"></script>
<script src="$path/src/input/Keyboard.js"></script>
EOL;
}
if ($modules['gamepad'])
{
echo <<<EOL
<script src="$path/src/input/Gamepad.js"></script>
<script src="$path/src/input/SinglePad.js"></script>
EOL;
}
echo <<<EOL
<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>
<script src="$path/src/renderer/webgl/QuadFBO.js"></script>
<script src="$path/src/renderer/webgl/batches/BaseBatch.js"></script>
<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>
<script src="$path/src/renderer/webgl/batches/SingleTextureBatch.js"></script>
<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>
<script src="$path/src/components/BaseTransform.js"></script>
<script src="$path/src/components/Children.js"></script>
<script src="$path/src/components/Color.js"></script>
<script src="$path/src/components/Data.js"></script>
<script src="$path/src/components/Transform.js"></script>
<script src="$path/src/components/UpdateManager.js"></script>
<script src="$path/src/gameobjects/GameObject.js"></script>
<script src="$path/src/gameobjects/Factory.js"></script>
<script src="$path/src/gameobjects/GameObjectCreator.js"></script>
<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>
<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/blitter/Blitter.js"></script>
<script src="$path/src/gameobjects/blitter/BlitterFactory.js"></script>
<script src="$path/src/gameobjects/blitter/BlitterWebGLRenderer.js"></script>
<script src="$path/src/gameobjects/blitter/Bob.js"></script>
<script src="$path/src/gameobjects/button/Button.js"></script>
<script src="$path/src/gameobjects/button/ButtonFactory.js"></script>
<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>
<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>
<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>
<script src="$path/src/plugins/weapon/WeaponPlugin.js"></script>
<script src="$path/src/plugins/weapon/Bullet.js"></script>
<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>
EOL;
if ($modules['rope'])
{
echo <<<EOL
<script src="$path/src/gameobjects/rope/Rope.js"></script>
<script src="$path/src/gameobjects/rope/RopeFactory.js"></script>
EOL;
}
if ($modules['tilesprite'])
{
echo <<<EOL
<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>
EOL;
}
if ($modules['creature'])
{
echo <<<EOL
<script src="$path/src/gameobjects/creature/Creature.js"></script>
<script src="$path/src/gameobjects/creature/CreatureFactory.js"></script>
EOL;
}
if ($modules['bitmapdata'])
{
echo <<<EOL
<script src="$path/src/textures/BitmapData.js"></script>
EOL;
}
if ($modules['graphics'])
{
echo <<<EOL
<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>
EOL;
}
if ($modules['rendertexture'])
{
echo <<<EOL
<script src="$path/src/textures/RenderTexture.js"></script>
EOL;
}
if ($modules['text'])
{
echo <<<EOL
<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>
EOL;
}
if ($modules['bitmaptext'])
{
echo <<<EOL
<script src="$path/src/gameobjects/bitmaptext/BitmapText.js"></script>
<script src="$path/src/gameobjects/bitmaptext/BitmapTextFactory.js"></script>
EOL;
}
if ($modules['retrofont'] && $modules['rendertexture'])
{
echo <<<EOL
<script src="$path/src/gameobjects/retrofont/RetroFont.js"></script>
<script src="$path/src/gameobjects/retrofont/RetroFontFactory.js"></script>
EOL;
}
if ($modules['video'])
{
echo <<<EOL
<script src="$path/src/gameobjects/video/Video.js"></script>
<script src="$path/src/gameobjects/video/VideoFactory.js"></script>
EOL;
}
echo <<<EOL
<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>
<script src="$path/src/math/Math.js"></script>
<script src="$path/src/math/RandomDataGenerator.js"></script>
<script src="$path/src/math/QuadTree.js"></script>
<script src="$path/src/net/Net.js"></script>
EOL;
if ($modules['tweens'])
{
echo <<<EOL
<script src="$path/src/tween/TweenManager.js"></script>
<script src="$path/src/tween/Tween.js"></script>
<script src="$path/src/tween/TweenData.js"></script>
<script src="$path/src/tween/Easing.js"></script>
EOL;
}
else
{
echo <<<EOL
<script src="$path/src/stubs/TweenManager.js"></script>
EOL;
}
echo <<<EOL
<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>
EOL;
if ($modules['sound'])
{
echo <<<EOL
<script src="$path/src/sound/AudioSprite.js"></script>
<script src="$path/src/sound/Sound.js"></script>
<script src="$path/src/sound/SoundManager.js"></script>
EOL;
}
else
{
echo <<<EOL
<script src="$path/src/stubs/SoundManager.js"></script>
EOL;
}
if ($modules['debug'])
{
echo <<<EOL
<script src="$path/src/utils/Debug.js"></script>
EOL;
}
echo <<<EOL
<script src="$path/src/utils/ArraySet.js"></script>
<script src="$path/src/utils/LinkedList.js"></script>
<script src="$path/src/utils/ArrayUtils.js"></script>
<script src="$path/src/utils/Color.js"></script>
<script src="$path/src/physics/Physics.js"></script>
<script src="$path/src/particles/Particles.js"></script>
EOL;
if ($modules['particles'] && $modules['arcade'])
{
echo <<<EOL
<script src="$path/src/particles/arcade/ArcadeParticles.js"></script>
<script src="$path/src/particles/arcade/Emitter.js"></script>
EOL;
}
if ($modules['tilemap'])
{
// <script src="$path/src/tilemap/TilemapLayer.js"></script>
echo <<<EOL
<script src="$path/src/tilemap/ImageCollection.js"></script>
<script src="$path/src/tilemap/Tile.js"></script>
<script src="$path/src/tilemap/Tilemap.js"></script>
<script src="$path/src/tilemap/TilemapParser.js"></script>
<script src="$path/src/tilemap/Tileset.js"></script>
EOL;
}
if ($modules['arcade'])
{
echo <<<EOL
<script src="$path/src/physics/arcade/World.js"></script>
<script src="$path/src/physics/arcade/Body.js"></script>
EOL;
}
if ($modules['tilemap'] && $modules['arcade'])
{
echo <<<EOL
<script src="$path/src/physics/arcade/TilemapCollision.js"></script>
EOL;
}
if ($modules['p2'])
{
echo <<<EOL
<script src="$path/src/physics/p2/World.js"></script>
<script src="$path/src/physics/p2/FixtureList.js"></script>
<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>
<script src="$path/src/physics/p2/BodyDebug.js"></script>
<script src="$path/src/physics/p2/Spring.js"></script>
<script src="$path/src/physics/p2/RotationalSpring.js"></script>
<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>
<script src="$path/src/physics/p2/DistanceConstraint.js"></script>
<script src="$path/src/physics/p2/GearConstraint.js"></script>
<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>
EOL;
}
if ($modules['ninja'])
{
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>
EOL;
}
if ($modules['box2d'] && isset($box2dpath))
{
echo <<<EOL
<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>
EOL;
}
if (isset($custom))
{
for ($i = 0; $i < count($custom); $i++)
{
echo ' <script src="' . $custom[$i] . '"></script>' . "\n";
}
}
?>

32
3.0.0/package.json Normal file
View file

@ -0,0 +1,32 @@
{
"name": "phaser",
"version": "3.0.0",
"release": "Shadow Coast",
"description": "A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.",
"author": "Richard Davey <rdavey@gmail.com> (http://www.photonstorm.com)",
"logo": "https://raw.github.com/photonstorm/phaser/master/phaser-logo-small.png",
"homepage": "http://phaser.io",
"bugs": "https://github.com/photonstorm/phaser/issues",
"license": "MIT",
"licenseUrl": "http://www.opensource.org/licenses/mit-license.php",
"main": "./build/phaser.js",
"repository": {
"type": "git",
"url": "https://photonstorm@github.com/photonstorm/phaser.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"2d",
"HTML5",
"WebGL",
"canvas",
"game",
"javascript",
"physics",
"tweens",
"typescript",
"web audio"
]
}