├── js └── plugins │ ├── audio │ └── midiplayer │ │ └── Track.js │ ├── fsm.js │ ├── bank.js │ ├── drag.js │ ├── clock.js │ ├── fade.js │ ├── flip.js │ ├── pool.js │ ├── ship.js │ ├── boids.js │ ├── button.js │ ├── flash.js │ ├── scale.js │ ├── slider.js │ ├── anchor.js │ ├── bullet.js │ ├── hexagon.js │ ├── moveto.js │ ├── perlin.js │ ├── pinch.js │ ├── rhombus.js │ ├── awaytime.js │ ├── canvasdata.js │ ├── gashapon.js │ ├── lifetime.js │ ├── scroller.js │ ├── buffdata.js │ ├── dragspeed.js │ ├── lzstring.js │ ├── objectpool.js │ ├── randomplace.js │ ├── rotateto.js │ ├── shakeposition.js │ ├── textedit.js │ ├── textpage.js │ ├── csvtoarray.js │ ├── dragrotate.js │ ├── touchstate.js │ ├── utils │ ├── object │ │ ├── NOOP.js │ │ ├── DeepClone.js │ │ ├── IsArray.js │ │ ├── IsFunction.js │ │ ├── IsEmpty.js │ │ └── Clear.js │ ├── grid │ │ ├── hexagon │ │ │ ├── const.js │ │ │ ├── GetTileX.js │ │ │ ├── GetTileY.js │ │ │ ├── GetWorldX.js │ │ │ ├── GetWorldY.js │ │ │ ├── GetOppositeDirection.js │ │ │ ├── GetNeighborTileX.js │ │ │ └── GetNeighborTileY.js │ │ └── quad │ │ │ ├── GetTileX.js │ │ │ ├── GetTileY.js │ │ │ ├── GetWorldX.js │ │ │ ├── GetWorldY.js │ │ │ ├── Mirror.js │ │ │ ├── GetDistance.js │ │ │ ├── GetOppositeDirection.js │ │ │ └── Offset.js │ ├── math │ │ └── angle │ │ │ └── angletodirections │ │ │ └── Const.js │ ├── system │ │ ├── IsSceneObject.js │ │ ├── IsGameObject.js │ │ ├── GetGLTexture.js │ │ ├── GetEventEmitter.js │ │ └── LogMaxDelta.js │ ├── mask │ │ └── MaskToGameObject.js │ ├── text │ │ └── IsTextGameObject.js │ ├── eventemitter │ │ └── EventEmitter.js │ ├── actions │ │ ├── SortByDisplayOrder.js │ │ ├── RotateObjectAround.js │ │ └── GlobZone.js │ ├── texture │ │ ├── LocalXYToColor.js │ │ ├── CreateCircleTexture.js │ │ └── CreateRectangleTexture.js │ ├── array │ │ └── Copy.js │ └── defaultbounds │ │ └── GetDefaultBounds.js │ ├── waitevents.js │ ├── loopinticks.js │ ├── runcommands.js │ ├── sequence.js │ ├── texttyping.js │ ├── touchcursor.js │ ├── achievements.js │ ├── restorabledata.js │ ├── swirlpipeline.js │ ├── board │ ├── monopoly │ │ ├── const.js │ │ ├── Methods.js │ │ ├── TileData.js │ │ ├── Factory.js │ │ └── GetCost.js │ ├── fieldofview │ │ ├── const.js │ │ ├── Factory.js │ │ └── GetCost.js │ ├── moveto │ │ ├── MoveCloser.js │ │ ├── MoveToward.js │ │ └── GetSneakTileZ.js │ ├── chess │ │ ├── IsUID.js │ │ ├── ChessBank.js │ │ ├── IsChess.js │ │ ├── GetTileDirection.js │ │ └── GetChessUID.js │ ├── miniboard │ │ ├── IsMiniBoardObject.js │ │ ├── moveto │ │ │ └── MoveToward.js │ │ ├── chess │ │ │ ├── RemoveAllChess.js │ │ │ └── RemoveChess.js │ │ ├── transform │ │ │ ├── CanRotateTo.js │ │ │ ├── RotateTo.js │ │ │ ├── CanMirror.js │ │ │ ├── CanRotate.js │ │ │ └── ResetChessTileXYZ.js │ │ ├── mainboard │ │ │ ├── SetMainboard.js │ │ │ ├── PutBack.js │ │ │ ├── AlignToMainBoard.js │ │ │ ├── PullOutFromMainBoard.js │ │ │ ├── IsOverlapping.js │ │ │ └── MainBoardReference.js │ │ ├── input │ │ │ └── SetDraggable.js │ │ └── Factory.js │ ├── grid │ │ ├── utils │ │ │ ├── SaveOrigin.js │ │ │ ├── RestoreOrigin.js │ │ │ └── DirectionNormalize.js │ │ ├── index.js │ │ ├── quad │ │ │ └── Factory.js │ │ └── hexagon │ │ │ └── Factory.js │ ├── board │ │ ├── gridpoints │ │ │ └── GetGridPoints.js │ │ ├── neighbors │ │ │ ├── AreNeighbors.js │ │ │ └── GetNeighborChessDirection.js │ │ ├── tileposition │ │ │ ├── GetDistance.js │ │ │ ├── GetOppositeDirection.js │ │ │ ├── TileXYZToChess.js │ │ │ ├── DirectionBetween.js │ │ │ ├── GetWrapTileX.js │ │ │ ├── GetWrapTileY.js │ │ │ ├── Contains.js │ │ │ ├── TileXYToChessArray.js │ │ │ └── TileZToChessArray.js │ │ ├── worldposition │ │ │ ├── TileXYToWorldXY.js │ │ │ ├── WorldXYToTileXY.js │ │ │ ├── TileXYToWorldX.js │ │ │ ├── TileXYToWorldY.js │ │ │ ├── WorldXYToTileX.js │ │ │ ├── WorldXYToTileY.js │ │ │ ├── IsOverlappingPoint.js │ │ │ ├── WorldXYSnapToGrid.js │ │ │ └── AngleBetween.js │ │ ├── shape │ │ │ ├── CircleToTileXYArray.js │ │ │ ├── EllipseToTileXYArray.js │ │ │ ├── TriangleToTileXYArray.js │ │ │ ├── RectangleToTileXYArray.js │ │ │ └── PolygonToTileXYArray.js │ │ ├── Board.js │ │ ├── chess │ │ │ ├── GetAllChess.js │ │ │ ├── RemoveAllChess.js │ │ │ └── UidToChess.js │ │ ├── Factory.js │ │ └── input │ │ │ └── SetInteractive.js │ ├── match │ │ ├── Methods.js │ │ └── Factory.js │ ├── utils │ │ ├── AreTileXYEqual.js │ │ ├── tilexyzkey │ │ │ ├── TileXYToKey.js │ │ │ ├── TileXYZKey.js │ │ │ └── KeyToTileXYZ.js │ │ ├── IsTileXY.js │ │ └── IsTileXYZ.js │ ├── ObjectFactory.js │ ├── hexagonmap │ │ └── index.js │ └── pathfinder │ │ ├── Factory.js │ │ ├── const.js │ │ ├── TileXYToCost.js │ │ └── Methods.js │ ├── cursoratbound.js │ ├── interception.js │ ├── pathfollower.js │ ├── quest.js │ ├── csvscenario.js │ ├── csvtohashtable.js │ ├── inversepipeline.js │ ├── toonifypipeline.js │ ├── buildarcadeobject.js │ ├── conditionstable.js │ ├── eightdirection.js │ ├── virtualjoystick.js │ ├── grayscalepipeline.js │ ├── hsladjustpipeline.js │ ├── pixelationpipeline.js │ ├── mousewheeltoupdown.js │ ├── gameobjects │ ├── ninepatch │ │ ├── utils │ │ │ ├── DefaultGetFrameNameCallback.js │ │ │ └── IsEdge.js │ │ ├── texture │ │ │ ├── GetStretchMode.js │ │ │ └── TextureMethods.js │ │ ├── Factory.js │ │ └── Creator.js │ ├── containerlite │ │ ├── Scale.js │ │ ├── Factory.js │ │ ├── RemoveChild.js │ │ └── ScrollFactor.js │ ├── line │ │ ├── Factory.js │ │ └── Creator.js │ ├── text │ │ ├── textbase │ │ │ ├── IsCanvasTextGameObject.js │ │ │ ├── imagemanager │ │ │ │ └── GetGlobImageManager.js │ │ │ └── const.js │ │ ├── tagtext │ │ │ └── Factory.js │ │ └── bbocdetext │ │ │ ├── Factory.js │ │ │ └── BBCodeText.js │ ├── canvas │ │ ├── Factory.js │ │ └── render │ │ │ ├── CanvasRenderer.js │ │ │ └── Render.js │ ├── blitter │ │ └── blitterbase │ │ │ └── Factory.js │ ├── gridtable │ │ └── Factory.js │ ├── inputtext │ │ └── Factory.js │ ├── video │ │ ├── videodom │ │ │ └── Factory.js │ │ └── videocanvas │ │ │ └── Factory.js │ ├── youtubeplayer │ │ └── Factory.js │ ├── circlemaskimage │ │ └── Factory.js │ ├── persistenceeffect │ │ ├── Factory.js │ │ └── Creator.js │ └── shape │ │ ├── roundrectangle │ │ └── Factory.js │ │ └── utils │ │ └── LineTo.js │ ├── shaders │ └── utils │ │ └── AvgRGB.js │ ├── graph │ ├── graphitem │ │ ├── IsUID.js │ │ ├── ObjBank.js │ │ ├── UidToObj.js │ │ └── GetObjUID.js │ ├── graph │ │ ├── edge │ │ │ ├── IsEdge.js │ │ │ ├── GetAllEdges.js │ │ │ └── GetEdgeData.js │ │ ├── vertex │ │ │ ├── IsVertex.js │ │ │ ├── AddVertices.js │ │ │ ├── RemoveAllVertices.js │ │ │ ├── AddVertex.js │ │ │ ├── GetAllVertices.js │ │ │ └── GetVertexData.js │ │ └── Factory.js │ └── ObjectFactory.js │ ├── data │ ├── canvasdata │ │ ├── fillcallbacks │ │ │ ├── alpha.js │ │ │ └── color32.js │ │ └── Methods.js │ ├── buff │ │ └── Extend.js │ └── csvtoarray │ │ └── CSVToArray.js │ ├── xor.js │ ├── soundfade.js │ ├── gridalign.js │ ├── awaitloader.js │ ├── geom │ ├── hexagon │ │ ├── Width.js │ │ └── Height.js │ └── utils │ │ ├── InitPoints.js │ │ └── Offset.js │ ├── tcrp.js │ ├── webfontloader.js │ ├── parse │ ├── itemtable │ │ └── GetItemCount.js │ └── utils │ │ ├── DataToItem.js │ │ └── InitialTable.js │ ├── input │ └── gestures │ │ ├── ObjectFactory.js │ │ ├── pinch │ │ └── PinchFactory.js │ │ └── rotate │ │ └── RotateFactory.js │ ├── boids-plugin.js │ ├── line.js │ ├── canvas.js │ ├── behaviors │ └── textedit │ │ └── Edit.js │ ├── interception-plugin.js │ ├── tagtext.js │ ├── gridtable.js │ ├── inputtext.js │ ├── ninepatch.js │ ├── parse.js │ ├── bbcodetext.js │ ├── graph-plugin.js │ ├── containerlite.js │ ├── logic │ └── runcommands │ │ └── csvscenario │ │ └── commands │ │ ├── BaseCmd.js │ │ └── ExitCmd.js │ ├── youtubeplayer.js │ ├── circlemaskimage.js │ ├── roundrectangle.js │ ├── persistenceeffect.js │ ├── fsm-plugin.js │ ├── xor-plugin.js │ ├── bank-plugin.js │ ├── perlin-plugin.js │ ├── awaitloader-plugin.js │ ├── objectpool-plugin.js │ ├── quest-plugin.js │ ├── sequence-plugin.js │ ├── clock-plugin.js │ ├── flip-plugin.js │ ├── gashapon-plugin.js │ ├── pinch-plugin.js │ ├── anchor-plugin.js │ ├── drag-plugin.js │ ├── flash-plugin.js │ ├── ship-plugin.js │ ├── webfontloader-plugin.js │ ├── moveto-plugin.js │ ├── achievements-plugin.js │ ├── bullet-plugin.js │ ├── button-plugin.js │ ├── hexagon-plugin.js │ ├── slider-plugin.js │ ├── csvtoarray-plugin.js │ ├── rhombus-plugin.js │ ├── shakeposition-plugin.js │ ├── csvscenario-plugin.js │ ├── loopinticks-plugin.js │ ├── rotateto-plugin.js │ ├── csvtohashtable-plugin.js │ ├── dragrotate-plugin.js │ ├── lifetime-plugin.js │ ├── scroller-plugin.js │ ├── textpage-plugin.js │ ├── conditionstable-plugin.js │ ├── dragspeed-plugin.js │ └── randomplace-plugin.js └── assets ├── 21230.png ├── hp_bar.png ├── party.png ├── player.png ├── buttons ├── a.png ├── b.png ├── up.png ├── down.png ├── left.png ├── right.png ├── select.png └── start.png ├── party-0.png ├── raw ├── 18502.png ├── 26964.png ├── 8303.png └── 8365.png ├── FRLG_Grass.png ├── battle-bar.png ├── characters.png ├── party-blank.png ├── Pokemon Hollow.ttf ├── Pokemon Solid.ttf ├── bag-background.png ├── party-0-blank.png ├── pokemons ├── back │ ├── 1.png │ ├── 10.png │ ├── 11.png │ ├── 12.png │ ├── 13.png │ ├── 14.png │ ├── 15.png │ ├── 16.png │ ├── 17.png │ ├── 18.png │ ├── 19.png │ ├── 2.png │ ├── 20.png │ ├── 21.png │ ├── 22.png │ ├── 23.png │ ├── 24.png │ ├── 25.png │ ├── 26.png │ ├── 27.png │ ├── 28.png │ ├── 29.png │ ├── 3.png │ ├── 30.png │ ├── 31.png │ ├── 32.png │ ├── 33.png │ ├── 34.png │ ├── 35.png │ ├── 36.png │ ├── 37.png │ ├── 38.png │ ├── 39.png │ ├── 4.png │ ├── 40.png │ ├── 41.png │ ├── 42.png │ ├── 43.png │ ├── 44.png │ ├── 45.png │ ├── 46.png │ ├── 47.png │ ├── 48.png │ ├── 49.png │ ├── 5.png │ ├── 50.png │ ├── 51.png │ ├── 52.png │ ├── 53.png │ ├── 54.png │ ├── 55.png │ ├── 56.png │ ├── 57.png │ ├── 58.png │ ├── 59.png │ ├── 6.png │ ├── 60.png │ ├── 61.png │ ├── 62.png │ ├── 63.png │ ├── 64.png │ ├── 65.png │ ├── 66.png │ ├── 67.png │ ├── 68.png │ ├── 69.png │ ├── 7.png │ ├── 70.png │ ├── 71.png │ ├── 72.png │ ├── 73.png │ ├── 74.png │ ├── 75.png │ ├── 76.png │ ├── 77.png │ ├── 78.png │ ├── 79.png │ ├── 8.png │ ├── 80.png │ ├── 81.png │ ├── 82.png │ ├── 83.png │ ├── 84.png │ ├── 85.png │ ├── 86.png │ ├── 87.png │ ├── 88.png │ ├── 89.png │ ├── 9.png │ ├── 90.png │ ├── 91.png │ ├── 92.png │ ├── 93.png │ ├── 94.png │ ├── 95.png │ ├── 96.png │ ├── 97.png │ ├── 98.png │ ├── 99.png │ ├── 100.png │ ├── 101.png │ ├── 102.png │ ├── 103.png │ ├── 104.png │ ├── 105.png │ ├── 106.png │ ├── 107.png │ ├── 108.png │ ├── 109.png │ ├── 110.png │ ├── 111.png │ ├── 112.png │ ├── 113.png │ ├── 114.png │ ├── 115.png │ ├── 116.png │ ├── 117.png │ ├── 118.png │ ├── 119.png │ ├── 120.png │ ├── 121.png │ ├── 122.png │ ├── 123.png │ ├── 124.png │ ├── 125.png │ ├── 126.png │ ├── 127.png │ ├── 128.png │ ├── 129.png │ ├── 130.png │ ├── 131.png │ ├── 132.png │ ├── 133.png │ ├── 134.png │ ├── 135.png │ ├── 136.png │ ├── 137.png │ ├── 138.png │ ├── 139.png │ ├── 140.png │ ├── 141.png │ ├── 142.png │ ├── 143.png │ ├── 144.png │ ├── 145.png │ ├── 146.png │ ├── 147.png │ ├── 148.png │ ├── 149.png │ ├── 150.png │ └── 151.png └── front │ ├── 1.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── 5.png │ ├── 6.png │ ├── 7.png │ ├── 8.png │ ├── 9.png │ ├── 10.png │ ├── 100.png │ ├── 101.png │ ├── 102.png │ ├── 103.png │ ├── 104.png │ ├── 105.png │ ├── 106.png │ ├── 107.png │ ├── 108.png │ ├── 109.png │ ├── 11.png │ ├── 110.png │ ├── 111.png │ ├── 112.png │ ├── 113.png │ ├── 114.png │ ├── 115.png │ ├── 116.png │ ├── 117.png │ ├── 118.png │ ├── 119.png │ ├── 12.png │ ├── 120.png │ ├── 121.png │ ├── 122.png │ ├── 123.png │ ├── 124.png │ ├── 125.png │ ├── 126.png │ ├── 127.png │ ├── 128.png │ ├── 129.png │ ├── 13.png │ ├── 130.png │ ├── 131.png │ ├── 132.png │ ├── 133.png │ ├── 134.png │ ├── 135.png │ ├── 136.png │ ├── 137.png │ ├── 138.png │ ├── 139.png │ ├── 14.png │ ├── 140.png │ ├── 141.png │ ├── 142.png │ ├── 143.png │ ├── 144.png │ ├── 145.png │ ├── 146.png │ ├── 147.png │ ├── 148.png │ ├── 149.png │ ├── 15.png │ ├── 150.png │ ├── 151.png │ ├── 16.png │ ├── 17.png │ ├── 18.png │ ├── 19.png │ ├── 20.png │ ├── 21.png │ ├── 22.png │ ├── 23.png │ ├── 24.png │ ├── 25.png │ ├── 26.png │ ├── 27.png │ ├── 28.png │ ├── 29.png │ ├── 30.png │ ├── 31.png │ ├── 32.png │ ├── 33.png │ ├── 34.png │ ├── 35.png │ ├── 36.png │ ├── 37.png │ ├── 38.png │ ├── 39.png │ ├── 40.png │ ├── 41.png │ ├── 42.png │ ├── 43.png │ ├── 44.png │ ├── 45.png │ ├── 46.png │ ├── 47.png │ ├── 48.png │ ├── 49.png │ ├── 50.png │ ├── 51.png │ ├── 52.png │ ├── 53.png │ ├── 54.png │ ├── 55.png │ ├── 56.png │ ├── 57.png │ ├── 58.png │ ├── 59.png │ ├── 60.png │ ├── 61.png │ ├── 62.png │ ├── 63.png │ ├── 64.png │ ├── 65.png │ ├── 66.png │ ├── 67.png │ ├── 68.png │ ├── 69.png │ ├── 70.png │ ├── 71.png │ ├── 72.png │ ├── 73.png │ ├── 74.png │ ├── 75.png │ ├── 76.png │ ├── 77.png │ ├── 78.png │ ├── 79.png │ ├── 80.png │ ├── 81.png │ ├── 82.png │ ├── 83.png │ ├── 84.png │ ├── 85.png │ ├── 86.png │ ├── 87.png │ ├── 88.png │ ├── 89.png │ ├── 90.png │ ├── 91.png │ ├── 92.png │ ├── 93.png │ ├── 94.png │ ├── 95.png │ ├── 96.png │ ├── 97.png │ ├── 98.png │ └── 99.png ├── selected-cancel.png ├── battle-background3.png ├── opponent-battle-bar.png ├── party-0-highlighted.png ├── party-highlighted.png ├── pokeball_animation.png ├── pokemon_pixel_font.ttf ├── pokemon-menu-background.png └── pokemon-menu-pokeball2.png /js/plugins/audio/midiplayer/Track.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /js/plugins/fsm.js: -------------------------------------------------------------------------------- 1 | import FSM from './logic/fsm/FSM.js'; 2 | export default FSM; -------------------------------------------------------------------------------- /js/plugins/bank.js: -------------------------------------------------------------------------------- 1 | import Bank from './data/bank/Bank.js'; 2 | export default Bank; -------------------------------------------------------------------------------- /js/plugins/drag.js: -------------------------------------------------------------------------------- 1 | import Drag from './input/drag/Drag.js'; 2 | export default Drag; -------------------------------------------------------------------------------- /js/plugins/clock.js: -------------------------------------------------------------------------------- 1 | import Clock from './time/clock/Clock.js'; 2 | export default Clock; -------------------------------------------------------------------------------- /js/plugins/fade.js: -------------------------------------------------------------------------------- 1 | import Fade from './behaviors/fade/Fade.js'; 2 | export default Fade; -------------------------------------------------------------------------------- /js/plugins/flip.js: -------------------------------------------------------------------------------- 1 | import Flip from './behaviors/flip/Flip.js'; 2 | export default Flip; -------------------------------------------------------------------------------- /js/plugins/pool.js: -------------------------------------------------------------------------------- 1 | import Pool from './utils/object/Stack.js'; 2 | export default Pool; -------------------------------------------------------------------------------- /js/plugins/ship.js: -------------------------------------------------------------------------------- 1 | import Ship from './behaviors/ship/Ship.js'; 2 | export default Ship; -------------------------------------------------------------------------------- /js/plugins/boids.js: -------------------------------------------------------------------------------- 1 | import Boids from './behaviors/boids/Boids.js'; 2 | export default Boids; -------------------------------------------------------------------------------- /js/plugins/button.js: -------------------------------------------------------------------------------- 1 | import Button from './input/button/Button.js'; 2 | export default Button; -------------------------------------------------------------------------------- /js/plugins/flash.js: -------------------------------------------------------------------------------- 1 | import Flash from './behaviors/flash/Flash.js'; 2 | export default Flash; -------------------------------------------------------------------------------- /js/plugins/scale.js: -------------------------------------------------------------------------------- 1 | import Scale from './behaviors/scale/Scale.js'; 2 | export default Scale; -------------------------------------------------------------------------------- /js/plugins/slider.js: -------------------------------------------------------------------------------- 1 | import Slider from './input/slider/Slider.js'; 2 | export default Slider; -------------------------------------------------------------------------------- /assets/21230.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/21230.png -------------------------------------------------------------------------------- /assets/hp_bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/hp_bar.png -------------------------------------------------------------------------------- /assets/party.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/party.png -------------------------------------------------------------------------------- /assets/player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/player.png -------------------------------------------------------------------------------- /js/plugins/anchor.js: -------------------------------------------------------------------------------- 1 | import Anchor from './behaviors/anchor/Anchor.js'; 2 | export default Anchor; -------------------------------------------------------------------------------- /js/plugins/bullet.js: -------------------------------------------------------------------------------- 1 | import Bullet from './behaviors/bullet/Bullet.js'; 2 | export default Bullet; -------------------------------------------------------------------------------- /js/plugins/hexagon.js: -------------------------------------------------------------------------------- 1 | import Hexagon from './geom/hexagon/Hexagon.js'; 2 | export default Hexagon; -------------------------------------------------------------------------------- /js/plugins/moveto.js: -------------------------------------------------------------------------------- 1 | import MoveTo from './behaviors/moveto/MoveTo.js'; 2 | export default MoveTo; -------------------------------------------------------------------------------- /js/plugins/perlin.js: -------------------------------------------------------------------------------- 1 | import Perlin from './utils/math/noise/Perlin.js'; 2 | export default Perlin; -------------------------------------------------------------------------------- /js/plugins/pinch.js: -------------------------------------------------------------------------------- 1 | import Pinch from './input/gestures/pinch/Pinch.js'; 2 | export default Pinch; -------------------------------------------------------------------------------- /js/plugins/rhombus.js: -------------------------------------------------------------------------------- 1 | import Rhombus from './geom/rhombus/Rhombus.js'; 2 | export default Rhombus; -------------------------------------------------------------------------------- /assets/buttons/a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/buttons/a.png -------------------------------------------------------------------------------- /assets/buttons/b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/buttons/b.png -------------------------------------------------------------------------------- /assets/party-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/party-0.png -------------------------------------------------------------------------------- /assets/raw/18502.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/raw/18502.png -------------------------------------------------------------------------------- /assets/raw/26964.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/raw/26964.png -------------------------------------------------------------------------------- /assets/raw/8303.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/raw/8303.png -------------------------------------------------------------------------------- /assets/raw/8365.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/raw/8365.png -------------------------------------------------------------------------------- /js/plugins/awaytime.js: -------------------------------------------------------------------------------- 1 | import AwayTime from './time/awaytime/AwayTime.js'; 2 | export default AwayTime; -------------------------------------------------------------------------------- /js/plugins/canvasdata.js: -------------------------------------------------------------------------------- 1 | import Methods from './data/canvasdata/Methods.js'; 2 | export default Methods; -------------------------------------------------------------------------------- /js/plugins/gashapon.js: -------------------------------------------------------------------------------- 1 | import Gashapon from './math/gashapon/Gashapon.js'; 2 | export default Gashapon; -------------------------------------------------------------------------------- /js/plugins/lifetime.js: -------------------------------------------------------------------------------- 1 | import LifeTime from './time/lifetime/LifeTime.js'; 2 | export default LifeTime; -------------------------------------------------------------------------------- /js/plugins/scroller.js: -------------------------------------------------------------------------------- 1 | import Scroller from './input/scroller/Scroller.js'; 2 | export default Scroller; -------------------------------------------------------------------------------- /assets/FRLG_Grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/FRLG_Grass.png -------------------------------------------------------------------------------- /assets/battle-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/battle-bar.png -------------------------------------------------------------------------------- /assets/buttons/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/buttons/up.png -------------------------------------------------------------------------------- /assets/characters.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/characters.png -------------------------------------------------------------------------------- /assets/party-blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/party-blank.png -------------------------------------------------------------------------------- /js/plugins/buffdata.js: -------------------------------------------------------------------------------- 1 | import DataManager from './data/buff/DataManager.js'; 2 | export default DataManager; -------------------------------------------------------------------------------- /js/plugins/dragspeed.js: -------------------------------------------------------------------------------- 1 | import DragSpeed from './input/dragspeed/DragSpeed.js'; 2 | export default DragSpeed; -------------------------------------------------------------------------------- /js/plugins/lzstring.js: -------------------------------------------------------------------------------- 1 | import LZString from './string/lzstring/LZString.js'; 2 | export default LZString; -------------------------------------------------------------------------------- /js/plugins/objectpool.js: -------------------------------------------------------------------------------- 1 | import ObjectPool from './data/pool/ObjectPool.js'; 2 | export default ObjectPool; -------------------------------------------------------------------------------- /js/plugins/randomplace.js: -------------------------------------------------------------------------------- 1 | import RandomPlace from './actions/RandomPlace.js'; 2 | export default RandomPlace; -------------------------------------------------------------------------------- /js/plugins/rotateto.js: -------------------------------------------------------------------------------- 1 | import RotateTo from './behaviors/rotateto/RotateTo.js'; 2 | export default RotateTo; -------------------------------------------------------------------------------- /js/plugins/shakeposition.js: -------------------------------------------------------------------------------- 1 | import Shake from './behaviors/shake/ShakePosition.js'; 2 | export default Shake; -------------------------------------------------------------------------------- /js/plugins/textedit.js: -------------------------------------------------------------------------------- 1 | import TextEdit from './behaviors/textedit/TextEdit.js'; 2 | export default TextEdit; -------------------------------------------------------------------------------- /js/plugins/textpage.js: -------------------------------------------------------------------------------- 1 | import TextPage from './behaviors/textpage/TextPage.js'; 2 | export default TextPage; -------------------------------------------------------------------------------- /assets/Pokemon Hollow.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/Pokemon Hollow.ttf -------------------------------------------------------------------------------- /assets/Pokemon Solid.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/Pokemon Solid.ttf -------------------------------------------------------------------------------- /assets/bag-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/bag-background.png -------------------------------------------------------------------------------- /assets/buttons/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/buttons/down.png -------------------------------------------------------------------------------- /assets/buttons/left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/buttons/left.png -------------------------------------------------------------------------------- /assets/buttons/right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/buttons/right.png -------------------------------------------------------------------------------- /assets/buttons/select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/buttons/select.png -------------------------------------------------------------------------------- /assets/buttons/start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/buttons/start.png -------------------------------------------------------------------------------- /assets/party-0-blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/party-0-blank.png -------------------------------------------------------------------------------- /js/plugins/csvtoarray.js: -------------------------------------------------------------------------------- 1 | import CSVToArray from './data/csvtoarray/CSVToArray.js'; 2 | export default CSVToArray; -------------------------------------------------------------------------------- /js/plugins/dragrotate.js: -------------------------------------------------------------------------------- 1 | import DragRotate from './input/dragrotate/DragRotate.js'; 2 | export default DragRotate; -------------------------------------------------------------------------------- /js/plugins/touchstate.js: -------------------------------------------------------------------------------- 1 | import TouchState from './input/touchstate/TouchState.js'; 2 | export default TouchState; -------------------------------------------------------------------------------- /js/plugins/utils/object/NOOP.js: -------------------------------------------------------------------------------- 1 | var NOOP = function () { 2 | // NOOP 3 | }; 4 | 5 | export default NOOP; -------------------------------------------------------------------------------- /js/plugins/waitevents.js: -------------------------------------------------------------------------------- 1 | import WaitEvents from './logic/waitevents/WaitEvents.js'; 2 | export default WaitEvents; -------------------------------------------------------------------------------- /assets/pokemons/back/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/1.png -------------------------------------------------------------------------------- /assets/pokemons/back/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/10.png -------------------------------------------------------------------------------- /assets/pokemons/back/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/11.png -------------------------------------------------------------------------------- /assets/pokemons/back/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/12.png -------------------------------------------------------------------------------- /assets/pokemons/back/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/13.png -------------------------------------------------------------------------------- /assets/pokemons/back/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/14.png -------------------------------------------------------------------------------- /assets/pokemons/back/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/15.png -------------------------------------------------------------------------------- /assets/pokemons/back/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/16.png -------------------------------------------------------------------------------- /assets/pokemons/back/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/17.png -------------------------------------------------------------------------------- /assets/pokemons/back/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/18.png -------------------------------------------------------------------------------- /assets/pokemons/back/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/19.png -------------------------------------------------------------------------------- /assets/pokemons/back/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/2.png -------------------------------------------------------------------------------- /assets/pokemons/back/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/20.png -------------------------------------------------------------------------------- /assets/pokemons/back/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/21.png -------------------------------------------------------------------------------- /assets/pokemons/back/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/22.png -------------------------------------------------------------------------------- /assets/pokemons/back/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/23.png -------------------------------------------------------------------------------- /assets/pokemons/back/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/24.png -------------------------------------------------------------------------------- /assets/pokemons/back/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/25.png -------------------------------------------------------------------------------- /assets/pokemons/back/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/26.png -------------------------------------------------------------------------------- /assets/pokemons/back/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/27.png -------------------------------------------------------------------------------- /assets/pokemons/back/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/28.png -------------------------------------------------------------------------------- /assets/pokemons/back/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/29.png -------------------------------------------------------------------------------- /assets/pokemons/back/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/3.png -------------------------------------------------------------------------------- /assets/pokemons/back/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/30.png -------------------------------------------------------------------------------- /assets/pokemons/back/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/31.png -------------------------------------------------------------------------------- /assets/pokemons/back/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/32.png -------------------------------------------------------------------------------- /assets/pokemons/back/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/33.png -------------------------------------------------------------------------------- /assets/pokemons/back/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/34.png -------------------------------------------------------------------------------- /assets/pokemons/back/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/35.png -------------------------------------------------------------------------------- /assets/pokemons/back/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/36.png -------------------------------------------------------------------------------- /assets/pokemons/back/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/37.png -------------------------------------------------------------------------------- /assets/pokemons/back/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/38.png -------------------------------------------------------------------------------- /assets/pokemons/back/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/39.png -------------------------------------------------------------------------------- /assets/pokemons/back/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/4.png -------------------------------------------------------------------------------- /assets/pokemons/back/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/40.png -------------------------------------------------------------------------------- /assets/pokemons/back/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/41.png -------------------------------------------------------------------------------- /assets/pokemons/back/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/42.png -------------------------------------------------------------------------------- /assets/pokemons/back/43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/43.png -------------------------------------------------------------------------------- /assets/pokemons/back/44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/44.png -------------------------------------------------------------------------------- /assets/pokemons/back/45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/45.png -------------------------------------------------------------------------------- /assets/pokemons/back/46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/46.png -------------------------------------------------------------------------------- /assets/pokemons/back/47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/47.png -------------------------------------------------------------------------------- /assets/pokemons/back/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/48.png -------------------------------------------------------------------------------- /assets/pokemons/back/49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/49.png -------------------------------------------------------------------------------- /assets/pokemons/back/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/5.png -------------------------------------------------------------------------------- /assets/pokemons/back/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/50.png -------------------------------------------------------------------------------- /assets/pokemons/back/51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/51.png -------------------------------------------------------------------------------- /assets/pokemons/back/52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/52.png -------------------------------------------------------------------------------- /assets/pokemons/back/53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/53.png -------------------------------------------------------------------------------- /assets/pokemons/back/54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/54.png -------------------------------------------------------------------------------- /assets/pokemons/back/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/55.png -------------------------------------------------------------------------------- /assets/pokemons/back/56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/56.png -------------------------------------------------------------------------------- /assets/pokemons/back/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/57.png -------------------------------------------------------------------------------- /assets/pokemons/back/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/58.png -------------------------------------------------------------------------------- /assets/pokemons/back/59.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/59.png -------------------------------------------------------------------------------- /assets/pokemons/back/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/6.png -------------------------------------------------------------------------------- /assets/pokemons/back/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/60.png -------------------------------------------------------------------------------- /assets/pokemons/back/61.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/61.png -------------------------------------------------------------------------------- /assets/pokemons/back/62.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/62.png -------------------------------------------------------------------------------- /assets/pokemons/back/63.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/63.png -------------------------------------------------------------------------------- /assets/pokemons/back/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/64.png -------------------------------------------------------------------------------- /assets/pokemons/back/65.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/65.png -------------------------------------------------------------------------------- /assets/pokemons/back/66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/66.png -------------------------------------------------------------------------------- /assets/pokemons/back/67.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/67.png -------------------------------------------------------------------------------- /assets/pokemons/back/68.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/68.png -------------------------------------------------------------------------------- /assets/pokemons/back/69.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/69.png -------------------------------------------------------------------------------- /assets/pokemons/back/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/7.png -------------------------------------------------------------------------------- /assets/pokemons/back/70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/70.png -------------------------------------------------------------------------------- /assets/pokemons/back/71.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/71.png -------------------------------------------------------------------------------- /assets/pokemons/back/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/72.png -------------------------------------------------------------------------------- /assets/pokemons/back/73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/73.png -------------------------------------------------------------------------------- /assets/pokemons/back/74.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/74.png -------------------------------------------------------------------------------- /assets/pokemons/back/75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/75.png -------------------------------------------------------------------------------- /assets/pokemons/back/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/76.png -------------------------------------------------------------------------------- /assets/pokemons/back/77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/77.png -------------------------------------------------------------------------------- /assets/pokemons/back/78.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/78.png -------------------------------------------------------------------------------- /assets/pokemons/back/79.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/79.png -------------------------------------------------------------------------------- /assets/pokemons/back/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/8.png -------------------------------------------------------------------------------- /assets/pokemons/back/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/80.png -------------------------------------------------------------------------------- /assets/pokemons/back/81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/81.png -------------------------------------------------------------------------------- /assets/pokemons/back/82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/82.png -------------------------------------------------------------------------------- /assets/pokemons/back/83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/83.png -------------------------------------------------------------------------------- /assets/pokemons/back/84.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/84.png -------------------------------------------------------------------------------- /assets/pokemons/back/85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/85.png -------------------------------------------------------------------------------- /assets/pokemons/back/86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/86.png -------------------------------------------------------------------------------- /assets/pokemons/back/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/87.png -------------------------------------------------------------------------------- /assets/pokemons/back/88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/88.png -------------------------------------------------------------------------------- /assets/pokemons/back/89.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/89.png -------------------------------------------------------------------------------- /assets/pokemons/back/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/9.png -------------------------------------------------------------------------------- /assets/pokemons/back/90.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/90.png -------------------------------------------------------------------------------- /assets/pokemons/back/91.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/91.png -------------------------------------------------------------------------------- /assets/pokemons/back/92.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/92.png -------------------------------------------------------------------------------- /assets/pokemons/back/93.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/93.png -------------------------------------------------------------------------------- /assets/pokemons/back/94.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/94.png -------------------------------------------------------------------------------- /assets/pokemons/back/95.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/95.png -------------------------------------------------------------------------------- /assets/pokemons/back/96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/96.png -------------------------------------------------------------------------------- /assets/pokemons/back/97.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/97.png -------------------------------------------------------------------------------- /assets/pokemons/back/98.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/98.png -------------------------------------------------------------------------------- /assets/pokemons/back/99.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/99.png -------------------------------------------------------------------------------- /assets/pokemons/front/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/1.png -------------------------------------------------------------------------------- /assets/pokemons/front/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/2.png -------------------------------------------------------------------------------- /assets/pokemons/front/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/3.png -------------------------------------------------------------------------------- /assets/pokemons/front/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/4.png -------------------------------------------------------------------------------- /assets/pokemons/front/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/5.png -------------------------------------------------------------------------------- /assets/pokemons/front/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/6.png -------------------------------------------------------------------------------- /assets/pokemons/front/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/7.png -------------------------------------------------------------------------------- /assets/pokemons/front/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/8.png -------------------------------------------------------------------------------- /assets/pokemons/front/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/9.png -------------------------------------------------------------------------------- /assets/selected-cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/selected-cancel.png -------------------------------------------------------------------------------- /js/plugins/loopinticks.js: -------------------------------------------------------------------------------- 1 | import LoopInTicks from './logic/loopinticks/LoopInTicks.js'; 2 | export default LoopInTicks; -------------------------------------------------------------------------------- /js/plugins/runcommands.js: -------------------------------------------------------------------------------- 1 | import RunCommands from './logic/runcommands/RunCommands.js'; 2 | export default RunCommands; -------------------------------------------------------------------------------- /js/plugins/sequence.js: -------------------------------------------------------------------------------- 1 | import Sequence from './logic/runcommands/sequence/Sequence.js'; 2 | export default Sequence; -------------------------------------------------------------------------------- /js/plugins/texttyping.js: -------------------------------------------------------------------------------- 1 | import TextTyping from './behaviors/texttyping/TextTyping.js'; 2 | export default TextTyping; -------------------------------------------------------------------------------- /js/plugins/touchcursor.js: -------------------------------------------------------------------------------- 1 | import TouchCursor from './input/touchcursor/TouchCursor.js'; 2 | export default TouchCursor; -------------------------------------------------------------------------------- /assets/battle-background3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/battle-background3.png -------------------------------------------------------------------------------- /assets/opponent-battle-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/opponent-battle-bar.png -------------------------------------------------------------------------------- /assets/party-0-highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/party-0-highlighted.png -------------------------------------------------------------------------------- /assets/party-highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/party-highlighted.png -------------------------------------------------------------------------------- /assets/pokeball_animation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokeball_animation.png -------------------------------------------------------------------------------- /assets/pokemon_pixel_font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemon_pixel_font.ttf -------------------------------------------------------------------------------- /assets/pokemons/back/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/100.png -------------------------------------------------------------------------------- /assets/pokemons/back/101.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/101.png -------------------------------------------------------------------------------- /assets/pokemons/back/102.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/102.png -------------------------------------------------------------------------------- /assets/pokemons/back/103.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/103.png -------------------------------------------------------------------------------- /assets/pokemons/back/104.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/104.png -------------------------------------------------------------------------------- /assets/pokemons/back/105.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/105.png -------------------------------------------------------------------------------- /assets/pokemons/back/106.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/106.png -------------------------------------------------------------------------------- /assets/pokemons/back/107.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/107.png -------------------------------------------------------------------------------- /assets/pokemons/back/108.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/108.png -------------------------------------------------------------------------------- /assets/pokemons/back/109.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/109.png -------------------------------------------------------------------------------- /assets/pokemons/back/110.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/110.png -------------------------------------------------------------------------------- /assets/pokemons/back/111.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/111.png -------------------------------------------------------------------------------- /assets/pokemons/back/112.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/112.png -------------------------------------------------------------------------------- /assets/pokemons/back/113.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/113.png -------------------------------------------------------------------------------- /assets/pokemons/back/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/114.png -------------------------------------------------------------------------------- /assets/pokemons/back/115.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/115.png -------------------------------------------------------------------------------- /assets/pokemons/back/116.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/116.png -------------------------------------------------------------------------------- /assets/pokemons/back/117.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/117.png -------------------------------------------------------------------------------- /assets/pokemons/back/118.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/118.png -------------------------------------------------------------------------------- /assets/pokemons/back/119.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/119.png -------------------------------------------------------------------------------- /assets/pokemons/back/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/120.png -------------------------------------------------------------------------------- /assets/pokemons/back/121.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/121.png -------------------------------------------------------------------------------- /assets/pokemons/back/122.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/122.png -------------------------------------------------------------------------------- /assets/pokemons/back/123.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/123.png -------------------------------------------------------------------------------- /assets/pokemons/back/124.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/124.png -------------------------------------------------------------------------------- /assets/pokemons/back/125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/125.png -------------------------------------------------------------------------------- /assets/pokemons/back/126.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/126.png -------------------------------------------------------------------------------- /assets/pokemons/back/127.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/127.png -------------------------------------------------------------------------------- /assets/pokemons/back/128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/128.png -------------------------------------------------------------------------------- /assets/pokemons/back/129.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/129.png -------------------------------------------------------------------------------- /assets/pokemons/back/130.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/130.png -------------------------------------------------------------------------------- /assets/pokemons/back/131.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/131.png -------------------------------------------------------------------------------- /assets/pokemons/back/132.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/132.png -------------------------------------------------------------------------------- /assets/pokemons/back/133.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/133.png -------------------------------------------------------------------------------- /assets/pokemons/back/134.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/134.png -------------------------------------------------------------------------------- /assets/pokemons/back/135.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/135.png -------------------------------------------------------------------------------- /assets/pokemons/back/136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/136.png -------------------------------------------------------------------------------- /assets/pokemons/back/137.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/137.png -------------------------------------------------------------------------------- /assets/pokemons/back/138.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/138.png -------------------------------------------------------------------------------- /assets/pokemons/back/139.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/139.png -------------------------------------------------------------------------------- /assets/pokemons/back/140.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/140.png -------------------------------------------------------------------------------- /assets/pokemons/back/141.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/141.png -------------------------------------------------------------------------------- /assets/pokemons/back/142.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/142.png -------------------------------------------------------------------------------- /assets/pokemons/back/143.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/143.png -------------------------------------------------------------------------------- /assets/pokemons/back/144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/144.png -------------------------------------------------------------------------------- /assets/pokemons/back/145.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/145.png -------------------------------------------------------------------------------- /assets/pokemons/back/146.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/146.png -------------------------------------------------------------------------------- /assets/pokemons/back/147.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/147.png -------------------------------------------------------------------------------- /assets/pokemons/back/148.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/148.png -------------------------------------------------------------------------------- /assets/pokemons/back/149.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/149.png -------------------------------------------------------------------------------- /assets/pokemons/back/150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/150.png -------------------------------------------------------------------------------- /assets/pokemons/back/151.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/back/151.png -------------------------------------------------------------------------------- /assets/pokemons/front/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/10.png -------------------------------------------------------------------------------- /assets/pokemons/front/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/100.png -------------------------------------------------------------------------------- /assets/pokemons/front/101.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/101.png -------------------------------------------------------------------------------- /assets/pokemons/front/102.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/102.png -------------------------------------------------------------------------------- /assets/pokemons/front/103.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/103.png -------------------------------------------------------------------------------- /assets/pokemons/front/104.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/104.png -------------------------------------------------------------------------------- /assets/pokemons/front/105.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/105.png -------------------------------------------------------------------------------- /assets/pokemons/front/106.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/106.png -------------------------------------------------------------------------------- /assets/pokemons/front/107.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/107.png -------------------------------------------------------------------------------- /assets/pokemons/front/108.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/108.png -------------------------------------------------------------------------------- /assets/pokemons/front/109.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/109.png -------------------------------------------------------------------------------- /assets/pokemons/front/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/11.png -------------------------------------------------------------------------------- /assets/pokemons/front/110.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/110.png -------------------------------------------------------------------------------- /assets/pokemons/front/111.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/111.png -------------------------------------------------------------------------------- /assets/pokemons/front/112.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/112.png -------------------------------------------------------------------------------- /assets/pokemons/front/113.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/113.png -------------------------------------------------------------------------------- /assets/pokemons/front/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/114.png -------------------------------------------------------------------------------- /assets/pokemons/front/115.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/115.png -------------------------------------------------------------------------------- /assets/pokemons/front/116.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/116.png -------------------------------------------------------------------------------- /assets/pokemons/front/117.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/117.png -------------------------------------------------------------------------------- /assets/pokemons/front/118.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/118.png -------------------------------------------------------------------------------- /assets/pokemons/front/119.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/119.png -------------------------------------------------------------------------------- /assets/pokemons/front/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/12.png -------------------------------------------------------------------------------- /assets/pokemons/front/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/120.png -------------------------------------------------------------------------------- /assets/pokemons/front/121.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/121.png -------------------------------------------------------------------------------- /assets/pokemons/front/122.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/122.png -------------------------------------------------------------------------------- /assets/pokemons/front/123.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/123.png -------------------------------------------------------------------------------- /assets/pokemons/front/124.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/124.png -------------------------------------------------------------------------------- /assets/pokemons/front/125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/125.png -------------------------------------------------------------------------------- /assets/pokemons/front/126.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/126.png -------------------------------------------------------------------------------- /assets/pokemons/front/127.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/127.png -------------------------------------------------------------------------------- /assets/pokemons/front/128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/128.png -------------------------------------------------------------------------------- /assets/pokemons/front/129.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/129.png -------------------------------------------------------------------------------- /assets/pokemons/front/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/13.png -------------------------------------------------------------------------------- /assets/pokemons/front/130.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/130.png -------------------------------------------------------------------------------- /assets/pokemons/front/131.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/131.png -------------------------------------------------------------------------------- /assets/pokemons/front/132.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/132.png -------------------------------------------------------------------------------- /assets/pokemons/front/133.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/133.png -------------------------------------------------------------------------------- /assets/pokemons/front/134.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/134.png -------------------------------------------------------------------------------- /assets/pokemons/front/135.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/135.png -------------------------------------------------------------------------------- /assets/pokemons/front/136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/136.png -------------------------------------------------------------------------------- /assets/pokemons/front/137.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/137.png -------------------------------------------------------------------------------- /assets/pokemons/front/138.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/138.png -------------------------------------------------------------------------------- /assets/pokemons/front/139.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/139.png -------------------------------------------------------------------------------- /assets/pokemons/front/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/14.png -------------------------------------------------------------------------------- /assets/pokemons/front/140.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/140.png -------------------------------------------------------------------------------- /assets/pokemons/front/141.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/141.png -------------------------------------------------------------------------------- /assets/pokemons/front/142.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/142.png -------------------------------------------------------------------------------- /assets/pokemons/front/143.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/143.png -------------------------------------------------------------------------------- /assets/pokemons/front/144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/144.png -------------------------------------------------------------------------------- /assets/pokemons/front/145.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/145.png -------------------------------------------------------------------------------- /assets/pokemons/front/146.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/146.png -------------------------------------------------------------------------------- /assets/pokemons/front/147.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/147.png -------------------------------------------------------------------------------- /assets/pokemons/front/148.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/148.png -------------------------------------------------------------------------------- /assets/pokemons/front/149.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/149.png -------------------------------------------------------------------------------- /assets/pokemons/front/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/15.png -------------------------------------------------------------------------------- /assets/pokemons/front/150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/150.png -------------------------------------------------------------------------------- /assets/pokemons/front/151.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/151.png -------------------------------------------------------------------------------- /assets/pokemons/front/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/16.png -------------------------------------------------------------------------------- /assets/pokemons/front/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/17.png -------------------------------------------------------------------------------- /assets/pokemons/front/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/18.png -------------------------------------------------------------------------------- /assets/pokemons/front/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/19.png -------------------------------------------------------------------------------- /assets/pokemons/front/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/20.png -------------------------------------------------------------------------------- /assets/pokemons/front/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/21.png -------------------------------------------------------------------------------- /assets/pokemons/front/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/22.png -------------------------------------------------------------------------------- /assets/pokemons/front/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/23.png -------------------------------------------------------------------------------- /assets/pokemons/front/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/24.png -------------------------------------------------------------------------------- /assets/pokemons/front/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/25.png -------------------------------------------------------------------------------- /assets/pokemons/front/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/26.png -------------------------------------------------------------------------------- /assets/pokemons/front/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/27.png -------------------------------------------------------------------------------- /assets/pokemons/front/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/28.png -------------------------------------------------------------------------------- /assets/pokemons/front/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/29.png -------------------------------------------------------------------------------- /assets/pokemons/front/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/30.png -------------------------------------------------------------------------------- /assets/pokemons/front/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/31.png -------------------------------------------------------------------------------- /assets/pokemons/front/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/32.png -------------------------------------------------------------------------------- /assets/pokemons/front/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/33.png -------------------------------------------------------------------------------- /assets/pokemons/front/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/34.png -------------------------------------------------------------------------------- /assets/pokemons/front/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/35.png -------------------------------------------------------------------------------- /assets/pokemons/front/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/36.png -------------------------------------------------------------------------------- /assets/pokemons/front/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/37.png -------------------------------------------------------------------------------- /assets/pokemons/front/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/38.png -------------------------------------------------------------------------------- /assets/pokemons/front/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/39.png -------------------------------------------------------------------------------- /assets/pokemons/front/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/40.png -------------------------------------------------------------------------------- /assets/pokemons/front/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/41.png -------------------------------------------------------------------------------- /assets/pokemons/front/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/42.png -------------------------------------------------------------------------------- /assets/pokemons/front/43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/43.png -------------------------------------------------------------------------------- /assets/pokemons/front/44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/44.png -------------------------------------------------------------------------------- /assets/pokemons/front/45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/45.png -------------------------------------------------------------------------------- /assets/pokemons/front/46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/46.png -------------------------------------------------------------------------------- /assets/pokemons/front/47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/47.png -------------------------------------------------------------------------------- /assets/pokemons/front/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/48.png -------------------------------------------------------------------------------- /assets/pokemons/front/49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/49.png -------------------------------------------------------------------------------- /assets/pokemons/front/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/50.png -------------------------------------------------------------------------------- /assets/pokemons/front/51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/51.png -------------------------------------------------------------------------------- /assets/pokemons/front/52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/52.png -------------------------------------------------------------------------------- /assets/pokemons/front/53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/53.png -------------------------------------------------------------------------------- /assets/pokemons/front/54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/54.png -------------------------------------------------------------------------------- /assets/pokemons/front/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/55.png -------------------------------------------------------------------------------- /assets/pokemons/front/56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/56.png -------------------------------------------------------------------------------- /assets/pokemons/front/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/57.png -------------------------------------------------------------------------------- /assets/pokemons/front/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/58.png -------------------------------------------------------------------------------- /assets/pokemons/front/59.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/59.png -------------------------------------------------------------------------------- /assets/pokemons/front/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/60.png -------------------------------------------------------------------------------- /assets/pokemons/front/61.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/61.png -------------------------------------------------------------------------------- /assets/pokemons/front/62.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/62.png -------------------------------------------------------------------------------- /assets/pokemons/front/63.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/63.png -------------------------------------------------------------------------------- /assets/pokemons/front/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/64.png -------------------------------------------------------------------------------- /assets/pokemons/front/65.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/65.png -------------------------------------------------------------------------------- /assets/pokemons/front/66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/66.png -------------------------------------------------------------------------------- /assets/pokemons/front/67.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/67.png -------------------------------------------------------------------------------- /assets/pokemons/front/68.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/68.png -------------------------------------------------------------------------------- /assets/pokemons/front/69.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/69.png -------------------------------------------------------------------------------- /assets/pokemons/front/70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/70.png -------------------------------------------------------------------------------- /assets/pokemons/front/71.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/71.png -------------------------------------------------------------------------------- /assets/pokemons/front/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/72.png -------------------------------------------------------------------------------- /assets/pokemons/front/73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/73.png -------------------------------------------------------------------------------- /assets/pokemons/front/74.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/74.png -------------------------------------------------------------------------------- /assets/pokemons/front/75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/75.png -------------------------------------------------------------------------------- /assets/pokemons/front/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/76.png -------------------------------------------------------------------------------- /assets/pokemons/front/77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/77.png -------------------------------------------------------------------------------- /assets/pokemons/front/78.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/78.png -------------------------------------------------------------------------------- /assets/pokemons/front/79.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/79.png -------------------------------------------------------------------------------- /assets/pokemons/front/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/80.png -------------------------------------------------------------------------------- /assets/pokemons/front/81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/81.png -------------------------------------------------------------------------------- /assets/pokemons/front/82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/82.png -------------------------------------------------------------------------------- /assets/pokemons/front/83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/83.png -------------------------------------------------------------------------------- /assets/pokemons/front/84.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/84.png -------------------------------------------------------------------------------- /assets/pokemons/front/85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/85.png -------------------------------------------------------------------------------- /assets/pokemons/front/86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/86.png -------------------------------------------------------------------------------- /assets/pokemons/front/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/87.png -------------------------------------------------------------------------------- /assets/pokemons/front/88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/88.png -------------------------------------------------------------------------------- /assets/pokemons/front/89.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/89.png -------------------------------------------------------------------------------- /assets/pokemons/front/90.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/90.png -------------------------------------------------------------------------------- /assets/pokemons/front/91.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/91.png -------------------------------------------------------------------------------- /assets/pokemons/front/92.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/92.png -------------------------------------------------------------------------------- /assets/pokemons/front/93.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/93.png -------------------------------------------------------------------------------- /assets/pokemons/front/94.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/94.png -------------------------------------------------------------------------------- /assets/pokemons/front/95.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/95.png -------------------------------------------------------------------------------- /assets/pokemons/front/96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/96.png -------------------------------------------------------------------------------- /assets/pokemons/front/97.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/97.png -------------------------------------------------------------------------------- /assets/pokemons/front/98.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/98.png -------------------------------------------------------------------------------- /assets/pokemons/front/99.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemons/front/99.png -------------------------------------------------------------------------------- /js/plugins/achievements.js: -------------------------------------------------------------------------------- 1 | import Achievements from './logic/achievements/Achievements.js'; 2 | export default Achievements; -------------------------------------------------------------------------------- /js/plugins/restorabledata.js: -------------------------------------------------------------------------------- 1 | import DataManager from './data/restorabledata/DataManager.js'; 2 | export default DataManager; -------------------------------------------------------------------------------- /js/plugins/swirlpipeline.js: -------------------------------------------------------------------------------- 1 | import SwirlPipeline from './shaders/swirl/SwirlPipeline.js'; 2 | export default SwirlPipeline; -------------------------------------------------------------------------------- /js/plugins/board/monopoly/const.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // special cost 3 | 'BLOCKER': null, 4 | 'STOP': -1, 5 | }; -------------------------------------------------------------------------------- /js/plugins/cursoratbound.js: -------------------------------------------------------------------------------- 1 | import CursorAtBound from './input/cursoratbound/CursorAtBound.js'; 2 | export default CursorAtBound; -------------------------------------------------------------------------------- /js/plugins/interception.js: -------------------------------------------------------------------------------- 1 | import Interception from './behaviors/interception/Interception.js'; 2 | export default Interception; -------------------------------------------------------------------------------- /js/plugins/pathfollower.js: -------------------------------------------------------------------------------- 1 | import PathFollower from './behaviors/pathfollower/PathFollower.js'; 2 | export default PathFollower; -------------------------------------------------------------------------------- /js/plugins/quest.js: -------------------------------------------------------------------------------- 1 | import QuestionManager from './logic/quest/questions/QuestionManager.js'; 2 | export default QuestionManager; -------------------------------------------------------------------------------- /assets/pokemon-menu-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemon-menu-background.png -------------------------------------------------------------------------------- /assets/pokemon-menu-pokeball2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konato-debug/pokemon-phaser/HEAD/assets/pokemon-menu-pokeball2.png -------------------------------------------------------------------------------- /js/plugins/csvscenario.js: -------------------------------------------------------------------------------- 1 | import CSVScenario from './logic/runcommands/csvscenario/CSVScenario.js'; 2 | export default CSVScenario; -------------------------------------------------------------------------------- /js/plugins/csvtohashtable.js: -------------------------------------------------------------------------------- 1 | import CSVToHashTable from './data/csvtohashtable/CsvToHashTable.js'; 2 | export default CSVToHashTable; -------------------------------------------------------------------------------- /js/plugins/inversepipeline.js: -------------------------------------------------------------------------------- 1 | import InversePipeline from './shaders/inverse/InversePipeline.js'; 2 | export default InversePipeline; -------------------------------------------------------------------------------- /js/plugins/toonifypipeline.js: -------------------------------------------------------------------------------- 1 | import ToonifyPipeline from './shaders/toonify/ToonifyPipeline.js'; 2 | export default ToonifyPipeline; -------------------------------------------------------------------------------- /js/plugins/buildarcadeobject.js: -------------------------------------------------------------------------------- 1 | import BuildArcadeObject from './utils/arcade/BuildArcadeObject.js'; 2 | export default BuildArcadeObject; -------------------------------------------------------------------------------- /js/plugins/conditionstable.js: -------------------------------------------------------------------------------- 1 | import ConditionsTable from './logic/conditionstable/ConditionsTable.js'; 2 | export default ConditionsTable; -------------------------------------------------------------------------------- /js/plugins/eightdirection.js: -------------------------------------------------------------------------------- 1 | import EightDirection from './behaviors/eightdirection/EightDirection.js'; 2 | export default EightDirection; -------------------------------------------------------------------------------- /js/plugins/utils/grid/hexagon/const.js: -------------------------------------------------------------------------------- 1 | export default { 2 | ODD_R: 0, 3 | EVEN_R: 1, 4 | ODD_Q: 2, 5 | EVEN_Q: 3 6 | }; -------------------------------------------------------------------------------- /js/plugins/virtualjoystick.js: -------------------------------------------------------------------------------- 1 | import VirtualJoyStick from './input/virtualjoystick/VirtualJoyStick.js'; 2 | export default VirtualJoyStick; -------------------------------------------------------------------------------- /js/plugins/grayscalepipeline.js: -------------------------------------------------------------------------------- 1 | import GrayScalePipeline from './shaders/grayscale/GrayScalePipeline.js'; 2 | export default GrayScalePipeline; -------------------------------------------------------------------------------- /js/plugins/hsladjustpipeline.js: -------------------------------------------------------------------------------- 1 | import HslAdjustPipeline from './shaders/hsladjust/HslAdjustPipeline.js'; 2 | export default HslAdjustPipeline; -------------------------------------------------------------------------------- /js/plugins/pixelationpipeline.js: -------------------------------------------------------------------------------- 1 | import PixelationPipeline from './shaders/pixelation/PixelationPipeline.js'; 2 | export default PixelationPipeline; -------------------------------------------------------------------------------- /js/plugins/mousewheeltoupdown.js: -------------------------------------------------------------------------------- 1 | import MouseWheelToUpDown from './input/mousewheeltoupdown/MouseWheelToUpDown.js'; 2 | export default MouseWheelToUpDown; -------------------------------------------------------------------------------- /js/plugins/utils/object/DeepClone.js: -------------------------------------------------------------------------------- 1 | var DeepClone = function (obj) { 2 | return JSON.parse(JSON.stringify(obj)); 3 | } 4 | export default DeepClone; -------------------------------------------------------------------------------- /js/plugins/utils/math/angle/angletodirections/Const.js: -------------------------------------------------------------------------------- 1 | export default { 2 | 'up&down': 0, 3 | 'left&right': 1, 4 | '4dir': 2, 5 | '8dir': 3 6 | }; -------------------------------------------------------------------------------- /js/plugins/gameobjects/ninepatch/utils/DefaultGetFrameNameCallback.js: -------------------------------------------------------------------------------- 1 | export default function (colIndex, rowIndex) { 2 | return `${colIndex},${rowIndex}`; 3 | }; -------------------------------------------------------------------------------- /js/plugins/shaders/utils/AvgRGB.js: -------------------------------------------------------------------------------- 1 | const frag = ` 2 | float AvgRGB(vec4 color) { 3 | return (color.r + color.g + color.b)/3.0; 4 | } 5 | `; 6 | export default frag; -------------------------------------------------------------------------------- /js/plugins/utils/object/IsArray.js: -------------------------------------------------------------------------------- 1 | var IsArray = function(obj) { 2 | return Object.prototype.toString.call(obj) === '[object Array]'; 3 | } 4 | export default IsArray; -------------------------------------------------------------------------------- /js/plugins/utils/object/IsFunction.js: -------------------------------------------------------------------------------- 1 | var IsFunction = function (obj) { 2 | return obj && (typeof(obj) === 'function'); 3 | }; 4 | 5 | export default IsFunction; -------------------------------------------------------------------------------- /js/plugins/board/fieldofview/const.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // special cost 3 | 'BLOCKER': null, 4 | 5 | // special moving point 6 | 'INFINITY': undefined, 7 | }; -------------------------------------------------------------------------------- /js/plugins/utils/grid/hexagon/GetTileX.js: -------------------------------------------------------------------------------- 1 | var GetTileX = function (worldX, worldY) { 2 | return this.getTileXY(worldX, worldY, true).x; 3 | } 4 | 5 | export default GetTileX; -------------------------------------------------------------------------------- /js/plugins/utils/grid/hexagon/GetTileY.js: -------------------------------------------------------------------------------- 1 | var GetTileY = function (worldX, worldY) { 2 | return this.getTileXY(worldX, worldY, true).y; 3 | } 4 | 5 | export default GetTileY; -------------------------------------------------------------------------------- /js/plugins/utils/grid/hexagon/GetWorldX.js: -------------------------------------------------------------------------------- 1 | var GetWorldX = function (tileX, tileY) { 2 | return this.getWorldXY(tileX, tileY, true).x; 3 | } 4 | 5 | export default GetWorldX; -------------------------------------------------------------------------------- /js/plugins/utils/grid/hexagon/GetWorldY.js: -------------------------------------------------------------------------------- 1 | var GetWorldY = function (tileX, tileY) { 2 | return this.getWorldXY(tileX, tileY, true).y; 3 | } 4 | 5 | export default GetWorldY; -------------------------------------------------------------------------------- /js/plugins/utils/grid/quad/GetTileX.js: -------------------------------------------------------------------------------- 1 | var GetTileX = function (worldX, worldY) { 2 | return this.getTileXY(worldX, worldY, true).x; 3 | } 4 | 5 | export default GetTileX; -------------------------------------------------------------------------------- /js/plugins/utils/grid/quad/GetTileY.js: -------------------------------------------------------------------------------- 1 | var GetTileY = function (worldX, worldY) { 2 | return this.getTileXY(worldX, worldY, true).y; 3 | } 4 | 5 | export default GetTileY; -------------------------------------------------------------------------------- /js/plugins/utils/grid/quad/GetWorldX.js: -------------------------------------------------------------------------------- 1 | var GetWorldX = function (tileX, tileY) { 2 | return this.getWorldXY(tileX, tileY, true).x; 3 | } 4 | 5 | export default GetWorldX; -------------------------------------------------------------------------------- /js/plugins/utils/grid/quad/GetWorldY.js: -------------------------------------------------------------------------------- 1 | var GetWorldY = function (tileX, tileY) { 2 | return this.getWorldXY(tileX, tileY, true).y; 3 | } 4 | 5 | export default GetWorldY; -------------------------------------------------------------------------------- /js/plugins/board/moveto/MoveCloser.js: -------------------------------------------------------------------------------- 1 | var MoveCloser = function(tileX, tileY) { 2 | this.moveAway(tileX, tileY, false); 3 | return this; 4 | } 5 | export default MoveCloser; -------------------------------------------------------------------------------- /js/plugins/board/moveto/MoveToward.js: -------------------------------------------------------------------------------- 1 | var MoveToward = function (direction) { 2 | this.moveTo(undefined, undefined, direction); 3 | return this; 4 | } 5 | export default MoveToward; -------------------------------------------------------------------------------- /js/plugins/board/chess/IsUID.js: -------------------------------------------------------------------------------- 1 | var IsUID = function (object) { 2 | var type = typeof (object); 3 | return (type === 'number') || (type === 'string'); 4 | } 5 | export default IsUID; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/IsMiniBoardObject.js: -------------------------------------------------------------------------------- 1 | var IsMiniBoardObject = function (object) { 2 | return (object.type === 'rexMiniBoard'); 3 | }; 4 | 5 | export default IsMiniBoardObject; -------------------------------------------------------------------------------- /js/plugins/graph/graphitem/IsUID.js: -------------------------------------------------------------------------------- 1 | var IsUID = function (object) { 2 | var type = typeof (object); 3 | return (type === 'number') || (type === 'string'); 4 | } 5 | export default IsUID; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/moveto/MoveToward.js: -------------------------------------------------------------------------------- 1 | var MoveToward = function (direction) { 2 | this.moveTo(undefined, undefined, direction); 3 | return this; 4 | } 5 | export default MoveToward; -------------------------------------------------------------------------------- /js/plugins/data/canvasdata/fillcallbacks/alpha.js: -------------------------------------------------------------------------------- 1 | var FillCallback = function (imgData, imgDataIndex) { 2 | return (imgData[imgDataIndex + 3] > 0); 3 | } 4 | 5 | export default FillCallback; -------------------------------------------------------------------------------- /js/plugins/utils/object/IsEmpty.js: -------------------------------------------------------------------------------- 1 | var IsEmpty = function (source) { 2 | for (var k in source) { 3 | return false; 4 | } 5 | return true; 6 | }; 7 | 8 | export default IsEmpty; -------------------------------------------------------------------------------- /js/plugins/xor.js: -------------------------------------------------------------------------------- 1 | import Encrypt from './string/xor/Encrypt.js'; 2 | import Decrypt from './string/xor/Decrypt.js'; 3 | 4 | export default { 5 | Encrypt: Encrypt, 6 | Decrypt: Decrypt 7 | }; -------------------------------------------------------------------------------- /js/plugins/board/grid/utils/SaveOrigin.js: -------------------------------------------------------------------------------- 1 | var SaveOrigin = function () { 2 | this._savedOriginX = this.x; 3 | this._savedOriginY = this.y; 4 | return this; 5 | } 6 | export default SaveOrigin; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/chess/RemoveAllChess.js: -------------------------------------------------------------------------------- 1 | var RemoveAllChess = function (destroy) { 2 | this.board.removeAllChess(destroy); 3 | return this; 4 | } 5 | 6 | export default RemoveAllChess; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/transform/CanRotateTo.js: -------------------------------------------------------------------------------- 1 | var CanRotateTo = function(direction) { 2 | direction -= this.face; 3 | return this.canRotate(direction); 4 | } 5 | export default CanRotateTo; -------------------------------------------------------------------------------- /js/plugins/soundfade.js: -------------------------------------------------------------------------------- 1 | import fadeIn from './audio/fade/fadeIn.js'; 2 | import fadeOut from './audio/fade/fadeOut.js'; 3 | 4 | export default { 5 | fadeIn: fadeIn, 6 | fadeOut: fadeOut 7 | }; -------------------------------------------------------------------------------- /js/plugins/utils/grid/hexagon/GetOppositeDirection.js: -------------------------------------------------------------------------------- 1 | var GetOppositeDirection = function (tileX, tileY, direction) { 2 | return (direction + 3) % 6; 3 | } 4 | export default GetOppositeDirection; -------------------------------------------------------------------------------- /js/plugins/utils/system/IsSceneObject.js: -------------------------------------------------------------------------------- 1 | const SceneClass = Phaser.Scene; 2 | var IsSceneObject = function (object) { 3 | return (object instanceof SceneClass); 4 | } 5 | export default IsSceneObject; -------------------------------------------------------------------------------- /js/plugins/board/board/gridpoints/GetGridPoints.js: -------------------------------------------------------------------------------- 1 | var GetGridPoints = function (tileX, tileY, points) { 2 | return this.grid.getGridPoints(tileX, tileY, points); 3 | } 4 | export default GetGridPoints; -------------------------------------------------------------------------------- /js/plugins/board/board/neighbors/AreNeighbors.js: -------------------------------------------------------------------------------- 1 | var AreNeighbors = function(chessA, chessB) { 2 | return (this.getNeighborChessDirection(chessA, chessB) !== null); 3 | } 4 | export default AreNeighbors; -------------------------------------------------------------------------------- /js/plugins/board/board/tileposition/GetDistance.js: -------------------------------------------------------------------------------- 1 | var GetDistance = function(tileA, tileB, roughMode) { 2 | return this.grid.getDistance(tileA, tileB, roughMode); 3 | } 4 | export default GetDistance; -------------------------------------------------------------------------------- /js/plugins/board/board/worldposition/TileXYToWorldXY.js: -------------------------------------------------------------------------------- 1 | var TileXYToWorldXY = function (tileX, tileY, out) { 2 | return this.grid.getWorldXY(tileX, tileY, out); 3 | } 4 | export default TileXYToWorldXY; -------------------------------------------------------------------------------- /js/plugins/board/board/worldposition/WorldXYToTileXY.js: -------------------------------------------------------------------------------- 1 | var WorldXYToTileXY = function (worldX, worldY, out) { 2 | return this.grid.getTileXY(worldX, worldY, out); 3 | } 4 | export default WorldXYToTileXY; -------------------------------------------------------------------------------- /js/plugins/board/match/Methods.js: -------------------------------------------------------------------------------- 1 | import MatchAll from './MatchAll.js'; 2 | import MatchAtDir from './MatchAtDir.js'; 3 | 4 | export default { 5 | match: MatchAll, 6 | matchAtDir: MatchAtDir, 7 | }; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/transform/RotateTo.js: -------------------------------------------------------------------------------- 1 | var RotateTo = function (direction) { 2 | direction -= this.face; 3 | this.rotate(direction); 4 | return this; 5 | } 6 | export default RotateTo; -------------------------------------------------------------------------------- /js/plugins/board/utils/AreTileXYEqual.js: -------------------------------------------------------------------------------- 1 | var AreTileXYEqual = function (tileA, tileB) { 2 | return tileA && tileB && (tileA.x === tileB.x) && (tileA.y === tileB.y); 3 | } 4 | export default AreTileXYEqual; -------------------------------------------------------------------------------- /js/plugins/board/chess/ChessBank.js: -------------------------------------------------------------------------------- 1 | import Bank from '../../bank.js'; 2 | 3 | var ChessBank = new Bank({ 4 | uidKey: '$uid', 5 | remove: false, // remove uid manually 6 | }); 7 | export default ChessBank; -------------------------------------------------------------------------------- /js/plugins/board/grid/utils/RestoreOrigin.js: -------------------------------------------------------------------------------- 1 | var RestoreOrigin = function () { 2 | this.x = this._savedOriginX; 3 | this.y = this._savedOriginY; 4 | return this; 5 | } 6 | export default RestoreOrigin; -------------------------------------------------------------------------------- /js/plugins/gameobjects/containerlite/Scale.js: -------------------------------------------------------------------------------- 1 | var Scale = function (a, b) { 2 | if (a === b) { 3 | return 1; 4 | } else { 5 | return a / b; 6 | } 7 | } 8 | 9 | export default Scale; -------------------------------------------------------------------------------- /js/plugins/graph/graphitem/ObjBank.js: -------------------------------------------------------------------------------- 1 | import Bank from '../../bank.js'; 2 | 3 | var ObjBank = new Bank({ 4 | uidKey: '$uid', 5 | remove: false, // remove uid manually 6 | }); 7 | export default ObjBank; -------------------------------------------------------------------------------- /js/plugins/board/grid/index.js: -------------------------------------------------------------------------------- 1 | import QuadGrid from './quad/Quad.js'; 2 | import HexagonGrid from './hexagon/Hexagon.js'; 3 | 4 | export default { 5 | quadGrid: QuadGrid, 6 | hexagonGrid: HexagonGrid 7 | }; -------------------------------------------------------------------------------- /js/plugins/gridalign.js: -------------------------------------------------------------------------------- 1 | import HexagonGridAlign from './actions/HexagonGridAlign.js'; 2 | import QuadGridAlign from './actions/QuadGridAlign.js'; 3 | 4 | export { 5 | HexagonGridAlign, 6 | QuadGridAlign 7 | }; -------------------------------------------------------------------------------- /js/plugins/utils/mask/MaskToGameObject.js: -------------------------------------------------------------------------------- 1 | var MaskToGameObject = function (mask) { 2 | return (mask.hasOwnProperty('geometryMask')) ? mask.geometryMask : mask.bitmapMask; 3 | } 4 | export default MaskToGameObject; -------------------------------------------------------------------------------- /js/plugins/awaitloader.js: -------------------------------------------------------------------------------- 1 | 2 | import loaderCallback from './loader/awaitloader/awaitLoaderCallback.js'; 3 | 4 | Phaser.Loader.FileTypesManager.register('rexAwait', loaderCallback); 5 | 6 | export default loaderCallback; -------------------------------------------------------------------------------- /js/plugins/geom/hexagon/Width.js: -------------------------------------------------------------------------------- 1 | const SQRT3 = Math.sqrt(3); 2 | 3 | var Width = function (hexagon) { 4 | return (hexagon.type === 0) ? (2 * hexagon.size) : (SQRT3 * hexagon.size); 5 | }; 6 | 7 | export default Width; -------------------------------------------------------------------------------- /js/plugins/tcrp.js: -------------------------------------------------------------------------------- 1 | import Recorder from './logic/runcommands/tcrp/Recorder.js'; 2 | import Player from './logic/runcommands/tcrp/Player.js'; 3 | 4 | export default { 5 | Recorder: Recorder, 6 | Player: Player 7 | }; -------------------------------------------------------------------------------- /js/plugins/geom/hexagon/Height.js: -------------------------------------------------------------------------------- 1 | const SQRT3 = Math.sqrt(3); 2 | 3 | var Height = function (hexagon) { 4 | return (hexagon.type === 0) ? (SQRT3 * hexagon.size) : (2 * hexagon.size); 5 | }; 6 | 7 | export default Height; -------------------------------------------------------------------------------- /js/plugins/utils/system/IsGameObject.js: -------------------------------------------------------------------------------- 1 | const GameObjectClass = Phaser.GameObjects.GameObject; 2 | var IsGameObject = function (object) { 3 | return (object instanceof GameObjectClass); 4 | } 5 | export default IsGameObject; -------------------------------------------------------------------------------- /js/plugins/webfontloader.js: -------------------------------------------------------------------------------- 1 | import loaderCallback from './loader/webfontloader/webFontLoaderCallback.js'; 2 | 3 | Phaser.Loader.FileTypesManager.register('rexWebFont', loaderCallback); 4 | 5 | export default loaderCallback; -------------------------------------------------------------------------------- /js/plugins/parse/itemtable/GetItemCount.js: -------------------------------------------------------------------------------- 1 | var GetItemCount = function (query) { 2 | if (query === undefined) { 3 | query = this.createQuery(); 4 | } 5 | return query.count(); 6 | } 7 | export default GetItemCount; -------------------------------------------------------------------------------- /js/plugins/graph/graph/edge/IsEdge.js: -------------------------------------------------------------------------------- 1 | var IsEdge = function (gameObejct) { 2 | // uid or game object 3 | var uid = this.getObjUID(gameObejct); 4 | return this.edges.hasOwnProperty(uid); 5 | } 6 | 7 | export default IsEdge; -------------------------------------------------------------------------------- /js/plugins/utils/text/IsTextGameObject.js: -------------------------------------------------------------------------------- 1 | const TextKlass = Phaser.GameObjects.Text; 2 | 3 | var IsTextGameObject = function (gameObject) { 4 | return (gameObject instanceof TextKlass); 5 | } 6 | 7 | export default IsTextGameObject; -------------------------------------------------------------------------------- /js/plugins/board/board/tileposition/GetOppositeDirection.js: -------------------------------------------------------------------------------- 1 | var GetOppositeDirection = function (tileX, tileY, direction) { 2 | return this.grid.getOppositeDirection(tileX, tileY, direction); 3 | } 4 | export default GetOppositeDirection; -------------------------------------------------------------------------------- /js/plugins/board/board/tileposition/TileXYZToChess.js: -------------------------------------------------------------------------------- 1 | var TileXYZToChess = function (tileX, tileY, tileZ) { 2 | var uid = this.boardData.getUID(tileX, tileY, tileZ); 3 | return this.uidToChess(uid); 4 | } 5 | export default TileXYZToChess; -------------------------------------------------------------------------------- /js/plugins/gameobjects/line/Factory.js: -------------------------------------------------------------------------------- 1 | import Line from './Line.js'; 2 | 3 | export default function (config) { 4 | var gameObject = new Line(this.scene, config); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | } -------------------------------------------------------------------------------- /js/plugins/graph/graph/vertex/IsVertex.js: -------------------------------------------------------------------------------- 1 | var IsVertex = function (gameObejct) { 2 | // uid or game object 3 | var uid = this.getObjUID(gameObejct); 4 | return this.vertices.hasOwnProperty(uid); 5 | } 6 | 7 | export default IsVertex; -------------------------------------------------------------------------------- /js/plugins/board/grid/quad/Factory.js: -------------------------------------------------------------------------------- 1 | import Quad from './Quad.js'; 2 | import ObjectFactory from '../../ObjectFactory.js'; 3 | 4 | ObjectFactory.register('quadGrid', function (config) { 5 | return new Quad(config); 6 | }); 7 | 8 | export default Quad; -------------------------------------------------------------------------------- /js/plugins/board/grid/utils/DirectionNormalize.js: -------------------------------------------------------------------------------- 1 | import Wrap from '../../../utils/math/Wrap.js'; 2 | 3 | var DirectionNormalize = function (direction) { 4 | return Wrap(direction, 0, this.directions); 5 | } 6 | 7 | export default DirectionNormalize; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/chess/RemoveChess.js: -------------------------------------------------------------------------------- 1 | var RemoveChess = function (gameObject, tileX, tileY, tileZ, destroy) { 2 | this.board.removeChess(gameObject, tileX, tileY, tileZ, destroy); 3 | return this; 4 | } 5 | 6 | export default RemoveChess; -------------------------------------------------------------------------------- /js/plugins/gameobjects/text/textbase/IsCanvasTextGameObject.js: -------------------------------------------------------------------------------- 1 | import TextKlass from './Text.js'; 2 | 3 | var IsCanvasTextGameObject = function (gameObject) { 4 | return (gameObject instanceof TextKlass); 5 | } 6 | 7 | export default IsCanvasTextGameObject; -------------------------------------------------------------------------------- /js/plugins/board/utils/tilexyzkey/TileXYToKey.js: -------------------------------------------------------------------------------- 1 | var TileXYToKey = function (tileX, tileY, separator) { 2 | if (separator === undefined) { 3 | separator = ','; 4 | } 5 | return `${tileX}${separator}${tileY}`; 6 | } 7 | export default TileXYToKey; -------------------------------------------------------------------------------- /js/plugins/graph/graph/vertex/AddVertices.js: -------------------------------------------------------------------------------- 1 | var AddVertices = function (gameObjects) { 2 | for (var i = 0, cnt = gameObjects.length; i < cnt; i++) { 3 | this.addVertex(gameObjects[i]); 4 | } 5 | return this; 6 | } 7 | 8 | export default AddVertices; -------------------------------------------------------------------------------- /js/plugins/graph/graph/vertex/RemoveAllVertices.js: -------------------------------------------------------------------------------- 1 | var RemoveAllVertices = function (destroy) { 2 | for (var vertexUid in this.vertices) { 3 | this.removeVertex(vertexUid, destroy) 4 | } 5 | return this; 6 | }; 7 | 8 | export default RemoveAllVertices; -------------------------------------------------------------------------------- /js/plugins/utils/object/Clear.js: -------------------------------------------------------------------------------- 1 | var Clear = function (obj) { 2 | if (Array.isArray(obj)) { 3 | obj.length = 0; 4 | } else { 5 | for (var key in obj) { 6 | delete obj[key]; 7 | } 8 | } 9 | } 10 | export default Clear; -------------------------------------------------------------------------------- /js/plugins/board/grid/hexagon/Factory.js: -------------------------------------------------------------------------------- 1 | import Hexagon from './Hexagon.js'; 2 | import ObjectFactory from '../../ObjectFactory.js'; 3 | 4 | ObjectFactory.register('hexagonGrid', function (config) { 5 | return new Hexagon(config); 6 | }); 7 | 8 | export default Hexagon; -------------------------------------------------------------------------------- /js/plugins/board/monopoly/Methods.js: -------------------------------------------------------------------------------- 1 | import GetPath from './GetPath.js'; 2 | import GetNextTile from './GetNextTile.js'; 3 | import GetCost from './GetCost.js'; 4 | 5 | export default { 6 | getPath: GetPath, 7 | getNextTile: GetNextTile, 8 | getCost: GetCost, 9 | }; -------------------------------------------------------------------------------- /js/plugins/data/canvasdata/Methods.js: -------------------------------------------------------------------------------- 1 | import TextObjectToBitMap from './TextObjectToBitMap.js'; 2 | import TextureTColorMap from './TextureToColorMap.js'; 3 | 4 | export default { 5 | textObjectToBitMap: TextObjectToBitMap, 6 | textureTColorMap: TextureTColorMap, 7 | } -------------------------------------------------------------------------------- /js/plugins/gameobjects/ninepatch/utils/IsEdge.js: -------------------------------------------------------------------------------- 1 | var IsEdge = function (colIndex, rowIndex) { 2 | return (colIndex === 0) || (colIndex === (this.columns.count - 1)) || 3 | (rowIndex === 0) || (rowIndex === (this.rows.count - 1)); 4 | } 5 | 6 | export default IsEdge; -------------------------------------------------------------------------------- /js/plugins/gameobjects/canvas/Factory.js: -------------------------------------------------------------------------------- 1 | import Canvas from './Canvas.js'; 2 | 3 | export default function (x, y, width, height) { 4 | var gameObject = new Canvas(this.scene, x, y, width, height); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/gameobjects/text/tagtext/Factory.js: -------------------------------------------------------------------------------- 1 | import TagText from './TagText.js'; 2 | 3 | export default function (x, y, text, style) { 4 | var gameObject = new TagText(this.scene, x, y, text, style); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | } -------------------------------------------------------------------------------- /js/plugins/graph/graphitem/UidToObj.js: -------------------------------------------------------------------------------- 1 | import ObjBank from './ObjBank.js'; 2 | 3 | var UidToObj = function (uid) { 4 | if (uid == null) { 5 | return null; 6 | } else { 7 | return ObjBank.get(uid).parent; 8 | } 9 | } 10 | export default UidToObj; -------------------------------------------------------------------------------- /js/plugins/board/ObjectFactory.js: -------------------------------------------------------------------------------- 1 | class ObjectFactory { 2 | constructor(scene) { 3 | this.scene = scene; 4 | } 5 | 6 | static register(type, callback) { 7 | ObjectFactory.prototype[type] = callback; 8 | } 9 | }; 10 | export default ObjectFactory; -------------------------------------------------------------------------------- /js/plugins/board/board/shape/CircleToTileXYArray.js: -------------------------------------------------------------------------------- 1 | import Contains from '../../../utils/geom/circle/Contains.js'; 2 | 3 | var CircleToTileXYArray = function (circle, out) { 4 | return this.shapeToTileXYArray(circle, Contains, out); 5 | } 6 | 7 | export default CircleToTileXYArray; -------------------------------------------------------------------------------- /js/plugins/graph/ObjectFactory.js: -------------------------------------------------------------------------------- 1 | class ObjectFactory { 2 | constructor(scene) { 3 | this.scene = scene; 4 | } 5 | 6 | static register(type, callback) { 7 | ObjectFactory.prototype[type] = callback; 8 | } 9 | }; 10 | export default ObjectFactory; -------------------------------------------------------------------------------- /js/plugins/board/board/shape/EllipseToTileXYArray.js: -------------------------------------------------------------------------------- 1 | import Contains from '../../../utils/geom/ellipse/Contains.js'; 2 | 3 | var EllipseToTileXYArray = function (ellipse, out) { 4 | return this.shapeToTileXYArray(ellipse, Contains, out); 5 | } 6 | 7 | export default EllipseToTileXYArray; -------------------------------------------------------------------------------- /js/plugins/board/utils/tilexyzkey/TileXYZKey.js: -------------------------------------------------------------------------------- 1 | var TileXYZToKey = function (tileX, tileY, tileZ, separator) { 2 | if (separator === undefined) { 3 | separator = ','; 4 | } 5 | return `${tileX}${separator}${tileY}${separator}${tileZ}`; 6 | } 7 | export default TileXYZToKey; -------------------------------------------------------------------------------- /js/plugins/gameobjects/blitter/blitterbase/Factory.js: -------------------------------------------------------------------------------- 1 | import Blitter from './Blitter.js'; 2 | 3 | export default function (x, y, key, frame) { 4 | var gameObject = new Blitter(this.scene, x, y, key, frame); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/gameobjects/text/bbocdetext/Factory.js: -------------------------------------------------------------------------------- 1 | import BBCodeText from './BBCodeText.js'; 2 | 3 | export default function (x, y, text, style) { 4 | var gameObject = new BBCodeText(this.scene, x, y, text, style); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/input/gestures/ObjectFactory.js: -------------------------------------------------------------------------------- 1 | class ObjectFactory { 2 | constructor(scene) { 3 | this.scene = scene; 4 | } 5 | 6 | static register(type, callback) { 7 | ObjectFactory.prototype[type] = callback; 8 | } 9 | }; 10 | export default ObjectFactory; -------------------------------------------------------------------------------- /js/plugins/utils/system/GetGLTexture.js: -------------------------------------------------------------------------------- 1 | var GetGLtexture = function (gameObject) { 2 | if (gameObject.glTexture) { 3 | return gameObject.glTexture; 4 | } else if (gameObject.frame) { 5 | return gameObject.frame.glTexture; 6 | } 7 | } 8 | 9 | export default GetGLtexture; -------------------------------------------------------------------------------- /js/plugins/board/board/shape/TriangleToTileXYArray.js: -------------------------------------------------------------------------------- 1 | import Contains from '../../../utils/geom/triangle/Contains.js'; 2 | 3 | var TriangleToTileXYArray = function (triangle, out) { 4 | return Sthis.shapeToTileXYArray(triangle, Contains, out); 5 | } 6 | 7 | export default TriangleToTileXYArray; -------------------------------------------------------------------------------- /js/plugins/board/board/shape/RectangleToTileXYArray.js: -------------------------------------------------------------------------------- 1 | import Contains from '../../../utils/geom/rectangle/Contains.js'; 2 | 3 | var RectangleToTileXYArray = function (rectangle, out) { 4 | return this.shapeToTileXYArray(rectangle, Contains, out); 5 | } 6 | 7 | export default RectangleToTileXYArray; -------------------------------------------------------------------------------- /js/plugins/board/chess/IsChess.js: -------------------------------------------------------------------------------- 1 | import IsUID from './IsUID.js' 2 | 3 | var IsChess = function (chess) { 4 | if (IsUID(chess)) { // Number or string 5 | return false; 6 | } else { 7 | return chess && (!!chess.rexChess); 8 | } 9 | } 10 | 11 | export default IsChess; -------------------------------------------------------------------------------- /js/plugins/board/utils/IsTileXY.js: -------------------------------------------------------------------------------- 1 | import IsPlainObject from '../../utils/object/IsPlainObject.js'; 2 | 3 | var IsTileXYZ = function (tileXY) { 4 | return IsPlainObject(tileXY) && 5 | tileXY.hasOwnProperty('x') && 6 | tileXY.hasOwnProperty('y'); 7 | } 8 | 9 | export default IsTileXYZ; -------------------------------------------------------------------------------- /js/plugins/gameobjects/gridtable/Factory.js: -------------------------------------------------------------------------------- 1 | import GridTable from './GridTable.js'; 2 | 3 | export default function (x, y, width, height, config) { 4 | var gameObject = new GridTable(this.scene, x, y, width, height, config); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/gameobjects/inputtext/Factory.js: -------------------------------------------------------------------------------- 1 | import InputText from './InputText.js'; 2 | 3 | export default function (x, y, width, height, config) { 4 | var gameObject = new InputText(this.scene, x, y, width, height, config); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/utils/eventemitter/EventEmitter.js: -------------------------------------------------------------------------------- 1 | import EE from 'eventemitter3'; 2 | 3 | class EventEmitter extends EE { 4 | shutdown() { 5 | this.removeAllListeners(); 6 | } 7 | destroy() { 8 | this.removeAllListeners(); 9 | } 10 | } 11 | export default EventEmitter; -------------------------------------------------------------------------------- /js/plugins/board/board/worldposition/TileXYToWorldX.js: -------------------------------------------------------------------------------- 1 | var TileXYToWorldX = function (tileX, tileY) { 2 | // console.warn('Use board.tileXYToWorldXY instead of (board.tileXYToWorldX, board.tileXYToWorldY)'); 3 | return this.tileXYToWorldXY(tileX, tileY, true).x; 4 | } 5 | export default TileXYToWorldX; -------------------------------------------------------------------------------- /js/plugins/board/board/worldposition/TileXYToWorldY.js: -------------------------------------------------------------------------------- 1 | var TileXYToWorldY = function (tileX, tileY) { 2 | // console.warn('Use board.tileXYToWorldXY instead of (board.tileXYToWorldX, board.tileXYToWorldY)'); 3 | return this.tileXYToWorldXY(tileX, tileY, true).y; 4 | } 5 | export default TileXYToWorldY; -------------------------------------------------------------------------------- /js/plugins/gameobjects/video/videodom/Factory.js: -------------------------------------------------------------------------------- 1 | import VideoDOM from './VideoDOM.js'; 2 | 3 | export default function (x, y, width, height, config) { 4 | var gameObject = new VideoDOM(this.scene, x, y, width, height, config); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/geom/utils/InitPoints.js: -------------------------------------------------------------------------------- 1 | var InitPoints = function (count) { 2 | var points = []; 3 | for (var i = 0; i < count; i++) { 4 | points.push({ 5 | x: 0, 6 | y: 0 7 | }); 8 | } 9 | return points; 10 | } 11 | 12 | export default InitPoints; -------------------------------------------------------------------------------- /js/plugins/board/board/worldposition/WorldXYToTileX.js: -------------------------------------------------------------------------------- 1 | var WorldXYToTileX = function (worldX, worldY) { 2 | // console.warn('Use board.worldXYToTileXY instead of (board.worldXYToTileX, board.worldXYToTileY)'); 3 | return this.worldXYToTileXY(worldX, worldY, true).x; 4 | } 5 | export default WorldXYToTileX; -------------------------------------------------------------------------------- /js/plugins/board/board/worldposition/WorldXYToTileY.js: -------------------------------------------------------------------------------- 1 | var WorldXYToTileY = function (worldX, worldY) { 2 | // console.warn('Use board.worldXYToTileXY instead of (board.worldXYToTileX, board.worldXYToTileY)'); 3 | return this.worldXYToTileXY(worldX, worldY, true).y; 4 | } 5 | export default WorldXYToTileY; -------------------------------------------------------------------------------- /js/plugins/gameobjects/ninepatch/texture/GetStretchMode.js: -------------------------------------------------------------------------------- 1 | import IsEdge from '../utils/IsEdge.js'; 2 | 3 | var GetStretchMode = function(colIndex, rowIndex) { 4 | return (IsEdge.call(this, colIndex, rowIndex)) ? this.stretchMode.edge : this.stretchMode.internal; 5 | }; 6 | 7 | export default GetStretchMode; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/mainboard/SetMainboard.js: -------------------------------------------------------------------------------- 1 | var SetMainBoard = function (mainBoard, tileX, tileY) { 2 | this.mainBoardRef.set(mainBoard, tileX, tileY); 3 | if (mainBoard) { 4 | this.lastMainBoardRef.set(mainBoard, tileX, tileY); 5 | } 6 | return this; 7 | } 8 | export default SetMainBoard; -------------------------------------------------------------------------------- /js/plugins/gameobjects/video/videocanvas/Factory.js: -------------------------------------------------------------------------------- 1 | import VideoCanvas from './VideoCanvas.js'; 2 | 3 | export default function (x, y, width, height, config) { 4 | var gameObject = new VideoCanvas(this.scene, x, y, width, height, config); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | } -------------------------------------------------------------------------------- /js/plugins/gameobjects/youtubeplayer/Factory.js: -------------------------------------------------------------------------------- 1 | import YoutubePlayer from './YoutubePlayer.js'; 2 | 3 | export default function (x, y, width, height, config) { 4 | var gameObject = new YoutubePlayer(this.scene, x, y, width, height, config); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | } -------------------------------------------------------------------------------- /js/plugins/utils/actions/SortByDisplayOrder.js: -------------------------------------------------------------------------------- 1 | var SortByDisplayOrder = function (gameObjects) { 2 | if (gameObjects.length < 2) { 3 | return gameObjects; 4 | } 5 | var input = gameObjects[0].scene.input; 6 | return input.sortGameObjects(gameObjects); 7 | } 8 | export default SortByDisplayOrder; -------------------------------------------------------------------------------- /js/plugins/gameobjects/circlemaskimage/Factory.js: -------------------------------------------------------------------------------- 1 | import CircleMaskImage from './CircleMaskImage.js'; 2 | 3 | export default function (x, y, key, frame, config) { 4 | var gameObject = new CircleMaskImage(this.scene, x, y, key, frame, config); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/gameobjects/containerlite/Factory.js: -------------------------------------------------------------------------------- 1 | import ContainerLite from './ContainerLite.js'; 2 | 3 | export default function (x, y, width, height, children) { 4 | var gameObject = new ContainerLite(this.scene, x, y, width, height, children); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/utils/actions/RotateObjectAround.js: -------------------------------------------------------------------------------- 1 | const RotateAround = Phaser.Math.RotateAround; 2 | 3 | var RotateObjectAround = function (gameObject, x, y, angle) { 4 | RotateAround(gameObject, x, y, angle); 5 | gameObject.rotation += angle; 6 | return gameObject; 7 | } 8 | 9 | export default RotateObjectAround; -------------------------------------------------------------------------------- /js/plugins/board/board/Board.js: -------------------------------------------------------------------------------- 1 | import LogicBoard from './LogicBoard.js'; 2 | import SetInteractive from './input/SetInteractive.js'; 3 | 4 | var methods = { 5 | setInteractive: SetInteractive, 6 | 7 | } 8 | Object.assign( 9 | LogicBoard.prototype, 10 | methods 11 | ); 12 | 13 | export default LogicBoard; -------------------------------------------------------------------------------- /js/plugins/gameobjects/persistenceeffect/Factory.js: -------------------------------------------------------------------------------- 1 | import PersistenceEffect from './PersistenceEffect.js'; 2 | 3 | export default function (texture, frame, config) { 4 | var gameObject = new PersistenceEffect(this.scene, texture, frame, config); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/data/canvasdata/fillcallbacks/color32.js: -------------------------------------------------------------------------------- 1 | var FillCallback = function (imgData, imgDataIndex) { 2 | return (imgData[imgDataIndex + 3] << 24) | 3 | (imgData[imgDataIndex + 0] << 16) | 4 | (imgData[imgDataIndex + 1] << 8) | 5 | imgData[imgDataIndex + 2]; 6 | }; 7 | 8 | export default FillCallback; -------------------------------------------------------------------------------- /js/plugins/utils/actions/GlobZone.js: -------------------------------------------------------------------------------- 1 | import NOOP from '../object/NOOP.js'; 2 | var globZone = new Phaser.GameObjects.Zone({ 3 | sys: { 4 | queueDepthSort: NOOP, 5 | events: { 6 | once: NOOP 7 | } 8 | } 9 | }, 0, 0, 1, 1); 10 | globZone.setOrigin(0); 11 | 12 | export default globZone; -------------------------------------------------------------------------------- /js/plugins/utils/system/GetEventEmitter.js: -------------------------------------------------------------------------------- 1 | import IsSceneObject from './IsSceneObject.js'; 2 | 3 | var GetEventEmitter = function (object) { 4 | if (IsSceneObject(object)) { 5 | return object.events; 6 | } else if (object.on) { 7 | return object; 8 | } 9 | } 10 | 11 | export default GetEventEmitter; -------------------------------------------------------------------------------- /js/plugins/board/board/chess/GetAllChess.js: -------------------------------------------------------------------------------- 1 | var GetAllChess = function (out) { 2 | if (out === undefined) { 3 | out = []; 4 | } 5 | var uids = this.boardData.UIDToXYZ; 6 | for (var uid in uids) { 7 | out.push(this.uidToChess(uid)); 8 | } 9 | return out; 10 | }; 11 | export default GetAllChess; -------------------------------------------------------------------------------- /js/plugins/board/hexagonmap/index.js: -------------------------------------------------------------------------------- 1 | import GetHexagonMap from './GetHexagonMap.js'; 2 | import GetTriangleMap from './GetTriangleMap.js'; 3 | import GetParallelogramMap from './GetParallelogramMap.js'; 4 | 5 | export default { 6 | hexagon: GetHexagonMap, 7 | triangle: GetTriangleMap, 8 | parallelogram: GetParallelogramMap, 9 | }; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/mainboard/PutBack.js: -------------------------------------------------------------------------------- 1 | var PutBack = function () { 2 | var mainBoard = this.lastMainBoardRef.mainBoard; 3 | var tileX = this.lastMainBoardRef.tileX; 4 | var tileY = this.lastMainBoardRef.tileY; 5 | this.putOnMainBoard(mainBoard, tileX, tileY, false); 6 | return this; 7 | } 8 | export default PutBack; -------------------------------------------------------------------------------- /js/plugins/gameobjects/ninepatch/Factory.js: -------------------------------------------------------------------------------- 1 | import NinePatch from './NinePatch.js'; 2 | 3 | export default function (x, y, width, height, key, columns, rows, config) { 4 | var gameObject = new NinePatch(this.scene, x, y, width, height, key, columns, rows, config); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | } -------------------------------------------------------------------------------- /js/plugins/gameobjects/text/bbocdetext/BBCodeText.js: -------------------------------------------------------------------------------- 1 | import Text from '../textbase/Text.js' 2 | import parser from './Parser.js'; 3 | 4 | class BBCodeText extends Text { 5 | constructor(scene, x, y, text, style) { 6 | super(scene, x, y, text, style, 'rexBBCodeText', parser); 7 | } 8 | } 9 | 10 | export default BBCodeText; -------------------------------------------------------------------------------- /js/plugins/board/monopoly/TileData.js: -------------------------------------------------------------------------------- 1 | class TileData { 2 | constructor(x, y, direction) { 3 | this.setTo(x, y, direction); 4 | } 5 | 6 | setTo(x, y, direction) { 7 | this.x = x; 8 | this.y = y; 9 | this.direction = direction; 10 | return this; 11 | } 12 | } 13 | 14 | export default TileData; -------------------------------------------------------------------------------- /js/plugins/boids-plugin.js: -------------------------------------------------------------------------------- 1 | import Boids from './boids.js'; 2 | 3 | class BoidsPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | add(gameObject, config) { 10 | return new Boids(gameObject, config); 11 | } 12 | } 13 | export default BoidsPlugin; -------------------------------------------------------------------------------- /js/plugins/gameobjects/containerlite/RemoveChild.js: -------------------------------------------------------------------------------- 1 | export default { 2 | remove(gameObject, destroyChild) { 3 | this.children.remove(gameObject, false, destroyChild); 4 | return this; 5 | }, 6 | 7 | clear(destroyChild) { 8 | this.children.clear(false, destroyChild); 9 | return this; 10 | }, 11 | }; -------------------------------------------------------------------------------- /js/plugins/geom/utils/Offset.js: -------------------------------------------------------------------------------- 1 | var Offset = function (polygon, x, y) { 2 | var points = polygon.points, 3 | point; 4 | for (var i = 0, cnt = points.length; i < cnt; i++) { 5 | point = points[i]; 6 | point.x += x; 7 | point.y += y; 8 | } 9 | return polygon; 10 | }; 11 | 12 | export default Offset; -------------------------------------------------------------------------------- /js/plugins/line.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/line/Factory.js'; 2 | import Creator from './gameobjects/line/Creator.js'; 3 | import Line from './gameobjects/line/Line.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexLine', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexLine', Creator); 7 | 8 | export default Line; -------------------------------------------------------------------------------- /js/plugins/board/utils/IsTileXYZ.js: -------------------------------------------------------------------------------- 1 | import IsPlainObject from '../../utils/object/IsPlainObject.js'; 2 | 3 | var IsTileXYZ = function (tileXYZ) { 4 | return IsPlainObject(tileXYZ) && 5 | tileXYZ.hasOwnProperty('x') && 6 | tileXYZ.hasOwnProperty('y') && 7 | tileXYZ.hasOwnProperty('z'); 8 | } 9 | 10 | export default IsTileXYZ; -------------------------------------------------------------------------------- /js/plugins/board/board/neighbors/GetNeighborChessDirection.js: -------------------------------------------------------------------------------- 1 | var GetNeighborChessDirection = function (chess, neighborChess) { 2 | var srcTileXYZ = this.chessToTileXYZ(chess); 3 | var neighborTileXYZ = this.chessToTileXYZ(neighborChess); 4 | return this.getNeighborTileDirection(srcTileXYZ, neighborTileXYZ); 5 | } 6 | export default GetNeighborChessDirection; -------------------------------------------------------------------------------- /js/plugins/board/board/worldposition/IsOverlappingPoint.js: -------------------------------------------------------------------------------- 1 | var IsOverlappingPoint = function (worldX, worldY, tileZ) { 2 | if (this.infinityMode && (tileZ === undefined)) { 3 | return true; 4 | } 5 | 6 | var out = this.wroldXYToTileXY(worldX, worldY, true); 7 | return this.contains(out.x, out.y, tileZ); 8 | } 9 | export default IsOverlappingPoint; -------------------------------------------------------------------------------- /js/plugins/canvas.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/canvas/Factory.js'; 2 | import Creator from './gameobjects/canvas/Creator.js'; 3 | import Canvas from './gameobjects/canvas/Canvas.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexCanvas', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexCanvas', Creator); 7 | 8 | export default Canvas; -------------------------------------------------------------------------------- /js/plugins/gameobjects/text/textbase/imagemanager/GetGlobImageManager.js: -------------------------------------------------------------------------------- 1 | import ImageManager from './ImageManager.js'; 2 | 3 | var globImageManager; 4 | 5 | export default function(textureManager) { 6 | if (globImageManager === undefined) { 7 | globImageManager = new ImageManager(textureManager); 8 | } 9 | return globImageManager; 10 | } -------------------------------------------------------------------------------- /js/plugins/board/board/chess/RemoveAllChess.js: -------------------------------------------------------------------------------- 1 | var RemoveAllChess = function (destroy, fromBoardRemove) { 2 | var chess = this.getAllChess(); 3 | for (var i = 0, cnt = chess.length; i < cnt; i++) { 4 | this.removeChess(chess[i], undefined, undefined, undefined, destroy, fromBoardRemove); 5 | } 6 | return this; 7 | } 8 | export default RemoveAllChess; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/input/SetDraggable.js: -------------------------------------------------------------------------------- 1 | var SetDraggable = function (enable) { 2 | if (enable === undefined) { 3 | enable = true; 4 | } 5 | this.setInteractive(); 6 | this.input.drag.enable = enable; 7 | if (!enable) { 8 | this.input.drag.state = 0; 9 | } 10 | return this; 11 | } 12 | export default SetDraggable; -------------------------------------------------------------------------------- /js/plugins/behaviors/textedit/Edit.js: -------------------------------------------------------------------------------- 1 | import TextEdit from './TextEdit.js'; 2 | 3 | var Edit = function (gameObject, config, onCloseCallback) { 4 | if (!gameObject._edit) { 5 | gameObject._edit = new TextEdit(gameObject); 6 | } 7 | gameObject._edit.open(config, onCloseCallback); 8 | return gameObject._edit; 9 | } 10 | 11 | export default Edit; -------------------------------------------------------------------------------- /js/plugins/board/match/Factory.js: -------------------------------------------------------------------------------- 1 | import Match from './Match.js'; 2 | import ObjectFactory from '../ObjectFactory.js'; 3 | import SetValue from '../../utils/object/SetValue.js'; 4 | 5 | ObjectFactory.register('match', function (config) { 6 | return new Match(config); 7 | }); 8 | 9 | SetValue(window, 'RexPlugins.Board.Match', Match); 10 | 11 | export default Match; -------------------------------------------------------------------------------- /js/plugins/board/board/tileposition/DirectionBetween.js: -------------------------------------------------------------------------------- 1 | var DirectionBetween = function (chessA, chessB, round) { 2 | if (round === undefined) { 3 | round = true; 4 | } 5 | var tileA = this.chessToTileXYZ(chessA); 6 | var tileB = this.chessToTileXYZ(chessB); 7 | return this.grid.directionBetween(tileA, tileB, round); 8 | } 9 | export default DirectionBetween; -------------------------------------------------------------------------------- /js/plugins/board/board/Factory.js: -------------------------------------------------------------------------------- 1 | import Board from './Board.js'; 2 | import ObjectFactory from '../ObjectFactory.js'; 3 | import SetValue from '../../utils/object/SetValue.js'; 4 | 5 | ObjectFactory.register('board', function (config) { 6 | return new Board(this.scene, config); 7 | }); 8 | 9 | SetValue(window, 'RexPlugins.Board.Board', Board); 10 | 11 | export default Board; -------------------------------------------------------------------------------- /js/plugins/gameobjects/shape/roundrectangle/Factory.js: -------------------------------------------------------------------------------- 1 | import RoundRectangle from './RoundRectangle.js'; 2 | 3 | export default function (x, y, width, height, radiusConfig, fillColor, fillAlpha) { 4 | var gameObject = new RoundRectangle(this.scene, x, y, width, height, radiusConfig, fillColor, fillAlpha); 5 | this.scene.add.existing(gameObject); 6 | return gameObject; 7 | }; -------------------------------------------------------------------------------- /js/plugins/graph/graph/Factory.js: -------------------------------------------------------------------------------- 1 | import Graph from './Graph.js'; 2 | import ObjectFactory from '../ObjectFactory.js'; 3 | import SetValue from '../../utils/object/SetValue.js'; 4 | 5 | ObjectFactory.register('graph', function (config) { 6 | return new Graph(this.scene, config); 7 | }); 8 | 9 | SetValue(window, 'RexPlugins.Graph.Graph', Graph); 10 | 11 | export default Graph; -------------------------------------------------------------------------------- /js/plugins/utils/grid/hexagon/GetNeighborTileX.js: -------------------------------------------------------------------------------- 1 | import NeighborToDeltaTileXY from './NeighborToDeltaTileXY.js'; 2 | import GetParity from './GetParity.js'; 3 | 4 | var GetNeighborTileX = function (tileX, tileY, dir) { 5 | var parity = GetParity(this.mode, tileX, tileY); 6 | return tileX + NeighborToDeltaTileXY[this.mode][parity][dir][0]; 7 | }; 8 | export default GetNeighborTileX; -------------------------------------------------------------------------------- /js/plugins/interception-plugin.js: -------------------------------------------------------------------------------- 1 | import Interception from './interception.js'; 2 | 3 | class InterceptionPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | add(gameObject, config) { 10 | return new Interception(gameObject, config); 11 | } 12 | } 13 | export default InterceptionPlugin; -------------------------------------------------------------------------------- /js/plugins/tagtext.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/text/tagtext/Factory.js'; 2 | import Creator from './gameobjects/text/tagtext/Creator.js'; 3 | import TagText from './gameobjects/text/tagtext/TagText.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexTagText', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexTagText', Creator); 7 | 8 | export default TagText; -------------------------------------------------------------------------------- /js/plugins/utils/grid/hexagon/GetNeighborTileY.js: -------------------------------------------------------------------------------- 1 | import NeighborToDeltaTileXY from './NeighborToDeltaTileXY.js'; 2 | import GetParity from './GetParity.js'; 3 | 4 | var GetNeighborTileY = function (tileX, tileY, dir) { 5 | var parity = GetParity(this.mode, tileX, tileY); 6 | return tileY + NeighborToDeltaTileXY[this.mode][parity][dir][1]; 7 | }; 8 | 9 | export default GetNeighborTileY; -------------------------------------------------------------------------------- /js/plugins/utils/grid/quad/Mirror.js: -------------------------------------------------------------------------------- 1 | var Mirror = function (src, mode, out) { 2 | if (out === undefined) { 3 | out = {}; 4 | } else if (out === true) { 5 | out = globTileXY; 6 | } 7 | 8 | out.x = (mode & 1) ? -src.x : src.x; 9 | out.y = (mode & 2) ? -src.y : src.y; 10 | return out; 11 | } 12 | 13 | var globTileXY = {}; 14 | export default Mirror; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/transform/CanMirror.js: -------------------------------------------------------------------------------- 1 | import MirrorTransfer from './transferfunctions/Mirror.js'; 2 | var CanMirror = function(mode) { 3 | if (this.mainBoard === null) { 4 | return true; 5 | } 6 | var newTileXYZMap = MirrorTransfer.call(this, mode); 7 | return this.canPutOnMainBoard(this.mainBoard, tileX, tileY, newTileXYZMap); 8 | } 9 | export default CanMirror; -------------------------------------------------------------------------------- /js/plugins/gridtable.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/gridtable/Factory.js'; 2 | import Creator from './gameobjects/gridtable/Creator.js'; 3 | import GridTable from './gameobjects/gridtable/GridTable.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexGridTable', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexGridTable', Creator); 7 | 8 | export default GridTable; -------------------------------------------------------------------------------- /js/plugins/inputtext.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/inputtext/Factory.js'; 2 | import Creator from './gameobjects/inputtext/Creator.js'; 3 | import InputText from './gameobjects/inputtext/InputText.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexInputText', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexInputText', Creator); 7 | 8 | export default InputText; -------------------------------------------------------------------------------- /js/plugins/ninepatch.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/ninepatch/Factory.js'; 2 | import Creator from './gameobjects/ninepatch/Creator.js'; 3 | import NinePatch from './gameobjects/ninepatch/NinePatch.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexNinePatch', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexNinePatch', Creator); 7 | 8 | export default NinePatch; -------------------------------------------------------------------------------- /js/plugins/parse/utils/DataToItem.js: -------------------------------------------------------------------------------- 1 | var DataToItem = function (data, itemClass) { 2 | var item; 3 | if (data instanceof itemClass) { 4 | item = data; 5 | } else { 6 | item = new itemClass(); 7 | for (var key in data) { 8 | item.set(key, data[key]); 9 | } 10 | } 11 | return item; 12 | } 13 | 14 | export default DataToItem; -------------------------------------------------------------------------------- /js/plugins/gameobjects/canvas/render/CanvasRenderer.js: -------------------------------------------------------------------------------- 1 | // copy from Phaser.GameObjects.Text 2 | 3 | var CanvasRenderer = function (renderer, src, interpolationPercentage, camera, parentMatrix) { 4 | if ((src.width === 0) || (src.height === 0)) { 5 | return; 6 | } 7 | renderer.batchSprite(src, src.frame, camera, parentMatrix); 8 | }; 9 | 10 | export default CanvasRenderer; -------------------------------------------------------------------------------- /js/plugins/utils/grid/quad/GetDistance.js: -------------------------------------------------------------------------------- 1 | var GetDistance = function (tileA, tileB, roughMode) { 2 | var dx = tileB.x - tileA.x; 3 | var dy = tileB.y - tileA.y; 4 | var dist; 5 | if (roughMode) { 6 | dist = Math.abs(dx) + Math.abs(dy); 7 | } else { 8 | dist = Math.sqrt(dx * dx + dy * dy); 9 | } 10 | return dist; 11 | } 12 | export default GetDistance; -------------------------------------------------------------------------------- /js/plugins/utils/texture/LocalXYToColor.js: -------------------------------------------------------------------------------- 1 | var LocalXYToColor = function (gameObject, localX, localY) { 2 | var textureKey = gameObject.texture.key; 3 | var frameName = gameObject.frame.name; 4 | var textureManager = gameObject.scene.textures; 5 | var color = textureManager.getPixel(localX, localY, textureKey, frameName); 6 | return color; 7 | } 8 | 9 | export default LocalXYToColor; -------------------------------------------------------------------------------- /js/plugins/gameobjects/shape/utils/LineTo.js: -------------------------------------------------------------------------------- 1 | var LineTo = function (x, y, out) { 2 | var cnt = out.length; 3 | if (cnt >= 2) { 4 | var lastX = out[cnt - 2]; 5 | var lastY = out[cnt - 1]; 6 | if ((x === lastX) && (y === lastY)) { 7 | return out; 8 | } 9 | } 10 | 11 | out.push(x, y); 12 | return out; 13 | } 14 | 15 | export default LineTo; -------------------------------------------------------------------------------- /js/plugins/input/gestures/pinch/PinchFactory.js: -------------------------------------------------------------------------------- 1 | import Pinch from './Pinch.js'; 2 | import ObjectFactory from '../ObjectFactory.js'; 3 | import SetValue from '../../../utils/object/SetValue.js'; 4 | 5 | ObjectFactory.register('pinch', function (config) { 6 | return new Pinch(this.scene, config); 7 | }); 8 | 9 | SetValue(window, 'RexPlugins.Gestures.Pinch', Pinch); 10 | 11 | export default Pinch; -------------------------------------------------------------------------------- /js/plugins/parse.js: -------------------------------------------------------------------------------- 1 | import Parse from 'parse/dist/parse.min.js'; 2 | import ItemTable from './parse/itemtable/ItemTable.js'; 3 | import QuickLogin from './parse/quicklogin/QuickLogin.js'; 4 | 5 | import SetValue from './utils/object/SetValue.js'; 6 | SetValue(window, 'Parse', Parse); 7 | SetValue(window, 'RexPlugins.Parse.ItemTable', ItemTable); 8 | SetValue(window, 'RexPlugins.Parse.QuickLogin', QuickLogin); -------------------------------------------------------------------------------- /js/plugins/parse/utils/InitialTable.js: -------------------------------------------------------------------------------- 1 | var InitialTable = function (item) { 2 | return new Promise(function (resolve, reject) { 3 | item 4 | .save() 5 | .then(function (result) { 6 | return result.destroy(); 7 | }) 8 | .then(resolve) 9 | .catch(reject); 10 | }); 11 | } 12 | 13 | export default InitialTable; -------------------------------------------------------------------------------- /js/plugins/bbcodetext.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/text/bbocdetext/Factory.js'; 2 | import Creator from './gameobjects/text/bbocdetext/Creator.js'; 3 | import BBCodeText from './gameobjects/text/bbocdetext/BBCodeText.js' 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexBBCodeText', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexBBCodeText', Creator); 7 | 8 | export default BBCodeText; -------------------------------------------------------------------------------- /js/plugins/input/gestures/rotate/RotateFactory.js: -------------------------------------------------------------------------------- 1 | import Rotate from './Rotate.js'; 2 | import ObjectFactory from '../ObjectFactory.js'; 3 | import SetValue from '../../../utils/object/SetValue.js'; 4 | 5 | ObjectFactory.register('rotate', function (config) { 6 | return new Rotate(this.scene, config); 7 | }); 8 | 9 | SetValue(window, 'RexPlugins.Gestures.Rotate', Rotate); 10 | 11 | export default Rotate; -------------------------------------------------------------------------------- /js/plugins/board/board/chess/UidToChess.js: -------------------------------------------------------------------------------- 1 | import ChessBank from '../../chess/ChessBank.js'; 2 | 3 | var UidToChess = function (uid) { 4 | if (uid == null) { 5 | return null; 6 | } else { 7 | // single uid 8 | if (!this.boardData.exists(uid)) { 9 | return null; 10 | } 11 | return ChessBank.get(uid).parent; 12 | } 13 | } 14 | export default UidToChess; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/transform/CanRotate.js: -------------------------------------------------------------------------------- 1 | import RotateTransfer from './transferfunctions/Rotate.js'; 2 | 3 | var CanRotate = function (direction) { 4 | if (this.mainBoard === null) { 5 | return true; 6 | } 7 | var newTileXYZMap = RotateTransfer.call(this, direction); 8 | return this.canPutOnMainBoard(this.mainBoard, tileX, tileY, newTileXYZMap); 9 | } 10 | export default CanRotate; -------------------------------------------------------------------------------- /js/plugins/graph-plugin.js: -------------------------------------------------------------------------------- 1 | import ObjectFactory from './graph/ObjectFactory.js'; 2 | 3 | import GraphFactory from './graph/graph/Factory.js'; 4 | 5 | class GraphPlugin extends Phaser.Plugins.ScenePlugin { 6 | constructor(scene, pluginManager) { 7 | super(scene, pluginManager); 8 | 9 | this.add = new ObjectFactory(scene); 10 | } 11 | } 12 | 13 | export default GraphPlugin; 14 | -------------------------------------------------------------------------------- /js/plugins/board/board/input/SetInteractive.js: -------------------------------------------------------------------------------- 1 | import Input from './Input.js'; 2 | 3 | var SetInteractive = function (enable) { 4 | if (enable === undefined) { 5 | enable = true; 6 | } 7 | 8 | // Input 9 | if (!this.input) { 10 | this.input = new Input(this); 11 | } 12 | this.input.setEnable(enable); 13 | 14 | return this; 15 | }; 16 | 17 | export default SetInteractive; -------------------------------------------------------------------------------- /js/plugins/board/monopoly/Factory.js: -------------------------------------------------------------------------------- 1 | import Monopoly from './Monopoly.js'; 2 | import ObjectFactory from '../ObjectFactory.js'; 3 | import SetValue from '../../utils/object/SetValue.js'; 4 | 5 | ObjectFactory.register('monopoly', function (gameObject, config) { 6 | return new Monopoly(gameObject, config); 7 | }); 8 | 9 | SetValue(window, 'RexPlugins.Board.Monopoly', Monopoly); 10 | 11 | export default Monopoly; -------------------------------------------------------------------------------- /js/plugins/graph/graph/vertex/AddVertex.js: -------------------------------------------------------------------------------- 1 | import GetGraphItem from '../../graphitem/GetGraphItem.js'; 2 | 3 | var AddVertex = function (gameObejct) { 4 | if (this.isVertex(gameObejct)) { 5 | return this; 6 | } 7 | 8 | this.getVertexData(gameObejct, true); 9 | GetGraphItem(gameObejct).setGraph(this); 10 | this.vertexCount++; 11 | return this; 12 | }; 13 | 14 | export default AddVertex; -------------------------------------------------------------------------------- /js/plugins/board/board/tileposition/GetWrapTileX.js: -------------------------------------------------------------------------------- 1 | import Wrap from '../../../utils/math/Wrap.js'; 2 | 3 | var GetWrapTileX = function (tileX, tileY) { 4 | if (this.wrapMode) { 5 | tileX = Wrap(tileX, 0, this.width); 6 | } else if ((!this.infinityMode) && 7 | ((tileX < 0) || (tileX >= this.width))) { 8 | tileX = null; 9 | } 10 | return tileX; 11 | } 12 | export default GetWrapTileX; -------------------------------------------------------------------------------- /js/plugins/board/board/tileposition/GetWrapTileY.js: -------------------------------------------------------------------------------- 1 | import Wrap from '../../../utils/math/Wrap.js'; 2 | 3 | var GetWrapTileY = function (tileX, tileY) { 4 | if (this.wrapMode) { 5 | tileY = Wrap(tileY, 0, this.height); 6 | } else if ((!this.infinityMode) && 7 | ((tileY < 0) || (tileY >= this.height))) { 8 | tileY = null; 9 | } 10 | return tileY; 11 | } 12 | export default GetWrapTileY; -------------------------------------------------------------------------------- /js/plugins/containerlite.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/containerlite/Factory.js'; 2 | import Creator from './gameobjects/containerlite/Creator.js'; 3 | import ContainerLite from './gameobjects/containerlite/ContainerLite.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexContainerLite', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexContainerLite', Creator); 7 | 8 | export default ContainerLite; -------------------------------------------------------------------------------- /js/plugins/gameobjects/line/Creator.js: -------------------------------------------------------------------------------- 1 | import Line from './Line.js'; 2 | 3 | const BuildGameObject = Phaser.GameObjects.BuildGameObject; 4 | 5 | export default function (config, addToScene) { 6 | if (addToScene !== undefined) { 7 | config.add = addToScene; 8 | } 9 | var gameObject = new Line(this.scene, config); 10 | BuildGameObject(this.scene, gameObject, config); 11 | return gameObject; 12 | }; -------------------------------------------------------------------------------- /js/plugins/logic/runcommands/csvscenario/commands/BaseCmd.js: -------------------------------------------------------------------------------- 1 | class BaseCmd { 2 | constructor(scenario, type) { 3 | this.scenario = scenario; 4 | this.type = type; 5 | } 6 | 7 | resetFromJSON(o) {} 8 | 9 | toJSON() { 10 | return {}; 11 | } 12 | 13 | parse(inst, index) { 14 | return inst; 15 | } 16 | 17 | run(inst) {} 18 | } 19 | 20 | export default BaseCmd; -------------------------------------------------------------------------------- /js/plugins/utils/texture/CreateCircleTexture.js: -------------------------------------------------------------------------------- 1 | var CreateCircleTexture = function (scene, key, width, color) { 2 | if (color === undefined) { 3 | color = 0xffffff; 4 | } 5 | var r = width / 2; 6 | scene.add.graphics() 7 | .fillStyle(color) 8 | .fillCircle(r, r, r) 9 | .generateTexture(key, width, width) 10 | .destroy(); 11 | } 12 | export default CreateCircleTexture; -------------------------------------------------------------------------------- /js/plugins/youtubeplayer.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/youtubeplayer/Factory.js'; 2 | import Creator from './gameobjects/youtubeplayer/Creator.js'; 3 | import YoutubePlayer from './gameobjects/youtubeplayer/YoutubePlayer.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexYoutubePlayer',Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexYoutubePlayer', Creator); 7 | 8 | export default YoutubePlayer; -------------------------------------------------------------------------------- /js/plugins/board/chess/GetTileDirection.js: -------------------------------------------------------------------------------- 1 | var GetTileDirection = function(tileX, tileY) { 2 | var board = this.board; 3 | if (board === null) { 4 | return null; 5 | } 6 | globTileXY.x = tileX; 7 | globTileXY.y = tileY; 8 | return board.getNeighborTileDirection(this.tileXYZ, globTileXY); 9 | } 10 | 11 | var globTileXY = { 12 | x: 0, 13 | y: 0 14 | }; 15 | export default GetTileDirection; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/transform/ResetChessTileXYZ.js: -------------------------------------------------------------------------------- 1 | var ResetChessTileXYZ = function(newTileXYZMap) { 2 | this.removeAllChess(); 3 | var newTileXYZ; 4 | for(var uid in newTileXYZMap) { 5 | newTileXYZ = newTileXYZMap[uid]; 6 | uid = parseInt(uid); 7 | this.addChess(uid, newTileXYZ.x, newTileXYZ.y, newTileXYZ.z, false); 8 | } 9 | return this; 10 | } 11 | export default ResetChessTileXYZ; -------------------------------------------------------------------------------- /js/plugins/board/pathfinder/Factory.js: -------------------------------------------------------------------------------- 1 | import PathFinder from './PathFinder.js'; 2 | import ObjectFactory from '../ObjectFactory.js'; 3 | import SetValue from '../../utils/object/SetValue.js'; 4 | 5 | ObjectFactory.register('pathFinder', function (gameObject, config) { 6 | return new PathFinder(gameObject, config); 7 | }); 8 | 9 | SetValue(window, 'RexPlugins.Board.PathFinder', PathFinder); 10 | 11 | export default PathFinder; -------------------------------------------------------------------------------- /js/plugins/board/fieldofview/Factory.js: -------------------------------------------------------------------------------- 1 | import FieldOfView from './FieldOfView.js'; 2 | import ObjectFactory from '../ObjectFactory.js'; 3 | import SetValue from '../../utils/object/SetValue.js'; 4 | 5 | ObjectFactory.register('fieldOfView', function (gameObject, config) { 6 | return new FieldOfView(gameObject, config); 7 | }); 8 | 9 | SetValue(window, 'RexPlugins.Board.FieldOfView', FieldOfView); 10 | 11 | export default FieldOfView; -------------------------------------------------------------------------------- /js/plugins/board/pathfinder/const.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // a* search mode 3 | AREA_MODE: 16, 4 | PATH_MODE: 0, 5 | 6 | // path mode 7 | 'random': 0, 8 | 'diagonal': 1, 9 | 'straight': 2, 10 | 'line': 3, 11 | 'A*': 10, 12 | 'A*-random': 11, 13 | 'A*-line': 12, 14 | 15 | // special cost 16 | 'BLOCKER': null, 17 | 18 | // special moving point 19 | 'INFINITY': undefined, 20 | }; -------------------------------------------------------------------------------- /js/plugins/gameobjects/ninepatch/texture/TextureMethods.js: -------------------------------------------------------------------------------- 1 | import SetTexture from './SetTexture.js'; 2 | import UpdateTexture from './UpdateTexture.js'; 3 | import SetStretchMode from './SetStretchMode.js'; 4 | import GetStretchMode from './GetStretchMode.js'; 5 | 6 | export default { 7 | setTexture: SetTexture, 8 | updateTexture: UpdateTexture, 9 | setStretchMode: SetStretchMode, 10 | getStretchMode: GetStretchMode, 11 | } -------------------------------------------------------------------------------- /js/plugins/utils/array/Copy.js: -------------------------------------------------------------------------------- 1 | var Copy = function (dest, src, startIdx, endIdx) { 2 | if (startIdx === undefined) { 3 | startIdx = 0 4 | }; 5 | if (endIdx === undefined) { 6 | endIdx = src.length; 7 | } 8 | dest.length = endIdx - startIdx; 9 | for (var i = 0, len = dest.length; i < len; i++) { 10 | dest[i] = src[i + startIdx]; 11 | } 12 | return dest; 13 | }; 14 | export default Copy; -------------------------------------------------------------------------------- /js/plugins/board/monopoly/GetCost.js: -------------------------------------------------------------------------------- 1 | var GetCost = function (curTileXY, preTileXY) { 2 | if (typeof (this.costCallback) === 'number') { 3 | return this.costCallback; 4 | } 5 | if (this.costCallbackScope) { 6 | return this.costCallback.call(this.costCallbackScope, curTileXY, preTileXY, this); 7 | } else { 8 | return this.costCallback(curTileXY, preTileXY, this); 9 | } 10 | } 11 | export default GetCost; -------------------------------------------------------------------------------- /js/plugins/circlemaskimage.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/circlemaskimage/Factory.js'; 2 | import Creator from './gameobjects/circlemaskimage/Creator.js'; 3 | import CircleMaskImage from './gameobjects/circlemaskimage/CircleMaskImage.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexCircleMaskImage', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexCircleMaskImage', Creator); 7 | 8 | export default CircleMaskImage; -------------------------------------------------------------------------------- /js/plugins/gameobjects/ninepatch/Creator.js: -------------------------------------------------------------------------------- 1 | import NinePatch from './NinePatch.js'; 2 | 3 | const BuildGameObject = Phaser.GameObjects.BuildGameObject; 4 | 5 | export default function (config, addToScene) { 6 | if (addToScene !== undefined) { 7 | config.add = addToScene; 8 | } 9 | var gameObject = new NinePatch(this.scene, config); 10 | BuildGameObject(this.scene, gameObject, config); 11 | return gameObject; 12 | }; -------------------------------------------------------------------------------- /js/plugins/utils/grid/quad/GetOppositeDirection.js: -------------------------------------------------------------------------------- 1 | var GetOppositeDirection = function (tileX, tileY, direction) { 2 | return oppositeDirectionMap[direction]; 3 | } 4 | const oppositeDirectionMap = { 5 | 0: 2, // Left 6 | 1: 3, // Down 7 | 2: 0, // Right 8 | 3: 1, // Up 9 | 4: 6, // Left-down 10 | 5: 7, // Down-right 11 | 6: 4, // Right-up 12 | 7: 5 // Up-left 13 | } 14 | export default GetOppositeDirection; -------------------------------------------------------------------------------- /js/plugins/utils/system/LogMaxDelta.js: -------------------------------------------------------------------------------- 1 | var prevTime, maxDelta; 2 | var LogMaxDelta = function (time) { 3 | if (prevTime === undefined) { 4 | prevTime = time; 5 | maxDelta = 0; 6 | } else { 7 | var dt = time - prevTime; 8 | prevTime = time; 9 | if (maxDelta < dt) { 10 | maxDelta = dt; 11 | console.log(dt); 12 | } 13 | } 14 | } 15 | 16 | export default LogMaxDelta; -------------------------------------------------------------------------------- /js/plugins/roundrectangle.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/shape/roundrectangle/Factory.js'; 2 | import Creator from './gameobjects/shape/roundrectangle/Creator.js'; 3 | import RoundRectangle from './gameobjects/shape/roundrectangle/RoundRectangle.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexRoundRectangle', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexRoundRectangle', Creator); 7 | 8 | export default RoundRectangle; -------------------------------------------------------------------------------- /js/plugins/board/board/worldposition/WorldXYSnapToGrid.js: -------------------------------------------------------------------------------- 1 | var WorldXYSnapToGrid = function (worldX, worldY, out) { 2 | if (out === undefined) { 3 | out = {}; 4 | } else if (out === true) { 5 | out = globWorldXY; 6 | } 7 | 8 | this.worldXYToTileXY(worldX, worldY, out); 9 | this.tileXYToWorldXY(out.x, out.y, out); 10 | return out; 11 | }; 12 | 13 | var globWorldXY = {}; 14 | 15 | export default WorldXYSnapToGrid; -------------------------------------------------------------------------------- /js/plugins/board/fieldofview/GetCost.js: -------------------------------------------------------------------------------- 1 | var GetCost = function (curTileXY, tileXYArray) { 2 | if (typeof (this.costCallback) === 'number') { 3 | return this.costCallback; 4 | } 5 | if (this.costCallbackScope) { 6 | return this.costCallback.call(this.costCallbackScope, curTileXY, this, tileXYArray); 7 | } else { 8 | return this.costCallback(curTileXY, this, tileXYArray); 9 | } 10 | } 11 | export default GetCost; -------------------------------------------------------------------------------- /js/plugins/data/buff/Extend.js: -------------------------------------------------------------------------------- 1 | import methods from './Methods.js'; 2 | 3 | var Extend = function (dataManager) { 4 | if (dataManager.buffs === undefined) { 5 | dataManager.baseValues = {}; 6 | dataManager.buffs = {}; 7 | dataManager.bounds = {}; 8 | } 9 | if (dataManager.addBuff === undefined) { 10 | Object.assign(dataManager, methods); 11 | } 12 | return dataManager; 13 | } 14 | 15 | export default Extend -------------------------------------------------------------------------------- /js/plugins/persistenceeffect.js: -------------------------------------------------------------------------------- 1 | import Factory from './gameobjects/persistenceeffect/Factory.js'; 2 | import Creator from './gameobjects/persistenceeffect/Creator.js'; 3 | import PersistenceEffect from './gameobjects/persistenceeffect/PersistenceEffect.js'; 4 | 5 | Phaser.GameObjects.GameObjectFactory.register('rexPersistenceEffect', Factory); 6 | Phaser.GameObjects.GameObjectCreator.register('rexPersistenceEffect', Creator); 7 | 8 | export default PersistenceEffect; -------------------------------------------------------------------------------- /js/plugins/board/pathfinder/TileXYToCost.js: -------------------------------------------------------------------------------- 1 | var TileXYToCost = function (tileX, tileY, pathCost) { 2 | if (this.nodeManager === undefined) { 3 | return null; 4 | } 5 | var node = this.nodeManager.getNode(tileX, tileY); 6 | if (node === null) { 7 | return null; 8 | } 9 | if (pathCost === undefined) { 10 | pathCost = true; 11 | } 12 | return (pathCost)? node.g:node.cost; 13 | } 14 | export default TileXYToCost; -------------------------------------------------------------------------------- /js/plugins/graph/graph/edge/GetAllEdges.js: -------------------------------------------------------------------------------- 1 | import UidToObj from '../../graphitem/UidToObj.js'; 2 | 3 | var GetAllEdges = function (out) { 4 | if (out === undefined) { 5 | out = []; 6 | } 7 | 8 | var edgeGO; 9 | for (var edgeUid in this.edges) { 10 | edgeGO = UidToObj(edgeUid); 11 | if (edgeGO) { 12 | out.push(edgeGO); 13 | } 14 | } 15 | return out; 16 | }; 17 | 18 | export default GetAllEdges; -------------------------------------------------------------------------------- /js/plugins/graph/graph/vertex/GetAllVertices.js: -------------------------------------------------------------------------------- 1 | import UidToObj from '../../graphitem/UidToObj.js'; 2 | 3 | var GetAllVertices = function (out) { 4 | if (out === undefined) { 5 | out = []; 6 | } 7 | 8 | var vGO; 9 | for (var vUid in this.vertices) { 10 | vGO = UidToObj(vUid); 11 | if (vGO) { 12 | out.push(vGO); 13 | } 14 | } 15 | return out; 16 | }; 17 | 18 | export default GetAllVertices; 19 | -------------------------------------------------------------------------------- /js/plugins/fsm-plugin.js: -------------------------------------------------------------------------------- 1 | import FSM from './fsm.js'; 2 | 3 | class FSMPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(config) { 15 | return new FSM(config); 16 | } 17 | 18 | } 19 | 20 | export default FSMPlugin; -------------------------------------------------------------------------------- /js/plugins/gameobjects/containerlite/ScrollFactor.js: -------------------------------------------------------------------------------- 1 | export default { 2 | updateChildScrollFactor(child) { 3 | child.setScrollFactor(this.scrollFactorX, this.scrollFactorY); 4 | return this; 5 | }, 6 | 7 | syncScrollFactor() { 8 | if (this.children && this.syncChildrenEnable) { 9 | this.children.getChildren().forEach(this.updateChildScrollFactor, this); 10 | } 11 | return this; 12 | }, 13 | 14 | }; -------------------------------------------------------------------------------- /js/plugins/xor-plugin.js: -------------------------------------------------------------------------------- 1 | import XOR from './xor.js'; 2 | 3 | class XORPlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | } 13 | 14 | // mixin 15 | Object.assign( 16 | XORPlugin.prototype, 17 | XOR 18 | ); 19 | 20 | export default XORPlugin; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/mainboard/AlignToMainBoard.js: -------------------------------------------------------------------------------- 1 | var AlignToMainBoard = function (mainBoard, tileX, tileY) { 2 | if (!mainBoard) { 3 | return this; 4 | } 5 | 6 | if (tileX === undefined) { 7 | var out = mainBoard.worldXYToTileXY(this.x, this.y, true); 8 | tileX = out.x; 9 | tileY = out.y; 10 | } 11 | mainBoard.gridAlign(this, tileX, tileY); 12 | return this; 13 | } 14 | 15 | export default AlignToMainBoard; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/mainboard/PullOutFromMainBoard.js: -------------------------------------------------------------------------------- 1 | var PullOutFromMainBoard = function () { 2 | var mainBoard = this.mainBoard; 3 | if (mainBoard === null) { 4 | return this; 5 | } 6 | 7 | var tileXYZMap = this.tileXYZMap; // {uid:{x,y,z}} 8 | for (var uid in tileXYZMap) { 9 | mainBoard.removeChess(parseInt(uid)); 10 | } 11 | this.setMainBoard(null); 12 | return this; 13 | } 14 | export default PullOutFromMainBoard; -------------------------------------------------------------------------------- /js/plugins/board/moveto/GetSneakTileZ.js: -------------------------------------------------------------------------------- 1 | var GetSneakTileZ = function (originTileZ) { 2 | var board = this.chessData.board; 3 | var myTileXYZ = this.chessData.tileXYZ; 4 | var myTileX = myTileXYZ.x, 5 | myTileY = myTileXYZ.y; 6 | var sneakTileZ = originTileZ.toString(); 7 | do { 8 | sneakTileZ += '.'; 9 | } while (board.contains(myTileX, myTileY, sneakTileZ)) 10 | return sneakTileZ; 11 | } 12 | 13 | export default GetSneakTileZ; -------------------------------------------------------------------------------- /js/plugins/graph/graph/edge/GetEdgeData.js: -------------------------------------------------------------------------------- 1 | var GetEdgeData = function (gameObejct, createIfNotExisted) { 2 | if (createIfNotExisted === undefined) { 3 | createIfNotExisted = false; 4 | } 5 | 6 | // uid or game object 7 | var uid = this.getObjUID(gameObejct); 8 | if (createIfNotExisted && !this.edges.hasOwnProperty(uid)) { 9 | this.edges[uid] = {}; 10 | } 11 | return this.edges[uid]; 12 | }; 13 | 14 | export default GetEdgeData; -------------------------------------------------------------------------------- /js/plugins/gameobjects/persistenceeffect/Creator.js: -------------------------------------------------------------------------------- 1 | import PersistenceEffect from './PersistenceEffect.js'; 2 | 3 | const BuildGameObject = Phaser.GameObjects.BuildGameObject; 4 | 5 | export default function (config, addToScene) { 6 | if (addToScene !== undefined) { 7 | config.add = addToScene; 8 | } 9 | var gameObject = new PersistenceEffect(this.scene, config); 10 | BuildGameObject(this.scene, gameObject, config); 11 | return gameObject; 12 | }; -------------------------------------------------------------------------------- /js/plugins/logic/runcommands/csvscenario/commands/ExitCmd.js: -------------------------------------------------------------------------------- 1 | import BaseCmd from './BaseCmd.js'; 2 | 3 | class ExitCmd extends BaseCmd { 4 | constructor(scenario) { 5 | super(scenario, 'exit'); 6 | } 7 | 8 | parse(inst, index) { 9 | inst.length = 1; 10 | return inst; 11 | } 12 | 13 | run(inst) { 14 | this.scenario.log('#EXIT'); 15 | this.scenario.complete(); 16 | } 17 | } 18 | 19 | export default ExitCmd; -------------------------------------------------------------------------------- /js/plugins/bank-plugin.js: -------------------------------------------------------------------------------- 1 | import Bank from './bank.js'; 2 | 3 | class BankPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(scene, config) { 15 | return new Bank(config); 16 | } 17 | 18 | } 19 | 20 | export default BankPlugin; -------------------------------------------------------------------------------- /js/plugins/board/board/shape/PolygonToTileXYArray.js: -------------------------------------------------------------------------------- 1 | import Contains from '../../../utils/geom/polygon/Contains.js'; 2 | import GetAABB from '../../../utils/geom/polygon/GetAABB.js'; 3 | 4 | var PolygonToTileXYArray = function (polygon, out) { 5 | globSearchRectangle = GetAABB(polygon, globSearchRectangle); 6 | return this.shapeToTileXYArray(polygon, Contains, globSearchRectangle, out); 7 | } 8 | 9 | var globSearchRectangle; 10 | 11 | export default PolygonToTileXYArray; -------------------------------------------------------------------------------- /js/plugins/board/board/worldposition/AngleBetween.js: -------------------------------------------------------------------------------- 1 | import GetAngle from '../../../utils/math/angle/Between.js'; 2 | 3 | var AngleBetween = function (tileA, tileB) { 4 | var out = this.tileXYToWorldXY(tileA.x, tileA.y, true); 5 | var x0 = out.x; 6 | var y0 = out.y; 7 | out = this.tileXYToWorldXY(tileB.x, tileB.y, true); 8 | var x1 = out.x; 9 | var y1 = out.y; 10 | return GetAngle(x0, y0, x1, y1); // -PI~PI 11 | } 12 | 13 | export default AngleBetween; -------------------------------------------------------------------------------- /js/plugins/perlin-plugin.js: -------------------------------------------------------------------------------- 1 | import Perlin from './perlin.js'; 2 | 3 | class PerlinPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(seed) { 15 | return new Perlin(seed); 16 | } 17 | 18 | } 19 | 20 | export default PerlinPlugin; -------------------------------------------------------------------------------- /js/plugins/awaitloader-plugin.js: -------------------------------------------------------------------------------- 1 | 2 | import loaderCallback from './loader/awaitloader/awaitLoaderCallback.js'; 3 | 4 | class AwaitLoaderPlugin extends Phaser.Plugins.BasePlugin { 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | 8 | pluginManager.registerFileType('rexAwait', loaderCallback); 9 | } 10 | 11 | addToScene(scene) { 12 | scene.sys.load['rexAwait'] = loaderCallback; 13 | } 14 | } 15 | 16 | export default AwaitLoaderPlugin; -------------------------------------------------------------------------------- /js/plugins/board/board/tileposition/Contains.js: -------------------------------------------------------------------------------- 1 | var Contains = function (tileX, tileY, tileZ) { 2 | var result; 3 | if (this.infinityMode) { 4 | result = true; 5 | } else { 6 | result = (tileX >= 0) && (tileX < this.width) && (tileY >= 0) && (tileY < this.height); 7 | } 8 | if (result && (tileZ !== undefined)) { 9 | result = this.boardData.contains(tileX, tileY, tileZ); 10 | } 11 | return result; 12 | }; 13 | 14 | export default Contains; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/mainboard/IsOverlapping.js: -------------------------------------------------------------------------------- 1 | var IsOverlapping = function (mainBoard, tileZ) { 2 | if (!mainBoard) { 3 | return false; 4 | } 5 | 6 | var gameObject; 7 | for (var uid in this.tileXYZMap) { 8 | gameObject = this.board.uidToChess(uid); 9 | if (mainBoard.isOverlappingPoint(gameObject.x, gameObject.y, tileZ)) { 10 | return true; 11 | } 12 | } 13 | return false; 14 | } 15 | export default IsOverlapping; -------------------------------------------------------------------------------- /js/plugins/graph/graph/vertex/GetVertexData.js: -------------------------------------------------------------------------------- 1 | var GetVertexData = function (gameObejct, createIfNotExisted) { 2 | if (createIfNotExisted === undefined) { 3 | createIfNotExisted = false; 4 | } 5 | 6 | // uid or game object 7 | var uid = this.getObjUID(gameObejct); 8 | if (createIfNotExisted && !this.vertices.hasOwnProperty(uid)) { 9 | this.vertices[uid] = {}; 10 | } 11 | return this.vertices[uid]; 12 | }; 13 | 14 | export default GetVertexData; -------------------------------------------------------------------------------- /js/plugins/objectpool-plugin.js: -------------------------------------------------------------------------------- 1 | import ObjectPool from './objectpool.js'; 2 | 3 | class ObjectPoolPlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | add() { 14 | return new ObjectPool(); 15 | } 16 | } 17 | 18 | export default ObjectPoolPlugin; -------------------------------------------------------------------------------- /js/plugins/quest-plugin.js: -------------------------------------------------------------------------------- 1 | import QuestionManager from './quest.js'; 2 | 3 | class QuestPlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | add(config) { 14 | return new QuestionManager(config); 15 | } 16 | } 17 | 18 | export default QuestPlugin; -------------------------------------------------------------------------------- /js/plugins/sequence-plugin.js: -------------------------------------------------------------------------------- 1 | import Sequence from './sequence.js'; 2 | 3 | class SequencePlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | add(config) { 14 | return new Sequence(config); 15 | } 16 | } 17 | 18 | export default SequencePlugin; -------------------------------------------------------------------------------- /js/plugins/board/board/tileposition/TileXYToChessArray.js: -------------------------------------------------------------------------------- 1 | var TileXYToChessArray = function (tileX, tileY, out) { 2 | if (out === undefined) { 3 | out = []; 4 | } 5 | var tileZToUIDs = this.boardData.getUID(tileX, tileY); 6 | if (tileZToUIDs == null) { 7 | return out; 8 | } 9 | 10 | for (var tileZ in tileZToUIDs) { 11 | out.push(this.uidToChess(tileZToUIDs[tileZ])); 12 | } 13 | return out; 14 | } 15 | export default TileXYToChessArray; -------------------------------------------------------------------------------- /js/plugins/clock-plugin.js: -------------------------------------------------------------------------------- 1 | import Clock from './clock.js'; 2 | 3 | class ClockPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(scene, config) { 15 | return new Clock(scene, config); 16 | } 17 | 18 | } 19 | 20 | export default ClockPlugin; -------------------------------------------------------------------------------- /js/plugins/flip-plugin.js: -------------------------------------------------------------------------------- 1 | import Flip from './flip.js'; 2 | 3 | class FlipPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new Flip(gameObject, config); 16 | } 17 | } 18 | 19 | export default FlipPlugin; -------------------------------------------------------------------------------- /js/plugins/gashapon-plugin.js: -------------------------------------------------------------------------------- 1 | import Gashapon from './gashapon.js'; 2 | 3 | class GashaponPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(config) { 15 | return new Gashapon(config); 16 | } 17 | } 18 | 19 | export default GashaponPlugin; -------------------------------------------------------------------------------- /js/plugins/graph/graphitem/GetObjUID.js: -------------------------------------------------------------------------------- 1 | import GetGraphItem from './GetGraphItem.js'; 2 | import ObjBank from './ObjBank.js'; 3 | import IsUID from './IsUID.js'; 4 | 5 | const uidKey = ObjBank.uidKey; 6 | var GetObjUID = function (gameObject) { 7 | // Game object or uid 8 | var uid; 9 | if (IsUID(gameObject)) { 10 | uid = gameObject; 11 | } else { 12 | uid = GetGraphItem(gameObject)[uidKey]; 13 | } 14 | return uid; 15 | } 16 | export default GetObjUID; -------------------------------------------------------------------------------- /js/plugins/pinch-plugin.js: -------------------------------------------------------------------------------- 1 | import Pinch from './pinch.js'; 2 | 3 | class PinchPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(scene, config) { 15 | return new Pinch(scene, config); 16 | } 17 | 18 | } 19 | 20 | export default PinchPlugin; -------------------------------------------------------------------------------- /js/plugins/anchor-plugin.js: -------------------------------------------------------------------------------- 1 | import Anchor from './anchor.js' 2 | 3 | class AnchorPlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | add(gameObject, config) { 14 | return new Anchor(gameObject, config); 15 | } 16 | } 17 | 18 | export default AnchorPlugin; -------------------------------------------------------------------------------- /js/plugins/board/board/tileposition/TileZToChessArray.js: -------------------------------------------------------------------------------- 1 | var TileZToChessArray = function (tileZ, out) { 2 | if (out === undefined) { 3 | out = []; 4 | } 5 | var uids = this.boardData.UIDToXYZ; 6 | var tileXYZ; 7 | for (var uid in uids) { 8 | tileXYZ = uids[uid]; 9 | if (tileXYZ.z !== tileZ) { 10 | continue; 11 | } 12 | out.push(this.uidToChess(uid)); 13 | } 14 | return out; 15 | } 16 | export default TileZToChessArray; -------------------------------------------------------------------------------- /js/plugins/board/chess/GetChessUID.js: -------------------------------------------------------------------------------- 1 | import GetChessData from './GetChessData.js'; 2 | import ChessBank from './ChessBank.js'; 3 | import IsUID from './IsUID.js'; 4 | 5 | const uidKey = ChessBank.uidKey; 6 | var GetChessUID = function (gameObject) { 7 | // Game object or uid 8 | var uid; 9 | if (IsUID(gameObject)) { 10 | uid = gameObject; 11 | } else { 12 | uid = GetChessData(gameObject)[uidKey]; 13 | } 14 | return uid; 15 | } 16 | export default GetChessUID; -------------------------------------------------------------------------------- /js/plugins/drag-plugin.js: -------------------------------------------------------------------------------- 1 | import Drag from './drag.js'; 2 | 3 | class DragPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new Drag(gameObject, config); 16 | } 17 | 18 | } 19 | 20 | export default DragPlugin; -------------------------------------------------------------------------------- /js/plugins/flash-plugin.js: -------------------------------------------------------------------------------- 1 | import Flash from './flash.js'; 2 | 3 | class FlashPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new Flash(gameObject, config); 16 | } 17 | } 18 | 19 | export default FlashPlugin; -------------------------------------------------------------------------------- /js/plugins/ship-plugin.js: -------------------------------------------------------------------------------- 1 | import Ship from './ship.js'; 2 | 3 | class ShipPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new Ship(gameObject, config); 16 | } 17 | 18 | } 19 | 20 | export default ShipPlugin; -------------------------------------------------------------------------------- /js/plugins/utils/defaultbounds/GetDefaultBounds.js: -------------------------------------------------------------------------------- 1 | var GetDefaultBounds = function (scene, out) { 2 | if (out === undefined) { 3 | if (GlobRectangle === undefined) { 4 | GlobRectangle = new Phaser.Geom.Rectangle(); 5 | } 6 | out = GlobRectangle; 7 | } 8 | var gameConfig = scene.game.config; 9 | out.setTo(0, 0, gameConfig.width, gameConfig.height); 10 | return out; 11 | } 12 | 13 | var GlobRectangle; 14 | 15 | export default GetDefaultBounds; -------------------------------------------------------------------------------- /js/plugins/utils/grid/quad/Offset.js: -------------------------------------------------------------------------------- 1 | var Offset = function (srcTile, offsetTileX, offsetTileY, out) { 2 | if (out === undefined) { 3 | out = {}; 4 | } else if (out === true) { 5 | out = globTileXY; 6 | } 7 | 8 | var newTileX = srcTile.x + offsetTileX; 9 | var newTileY = srcTile.y + offsetTileY; 10 | // TODO: staggered? 11 | out.x = newTileX; 12 | out.y = newTileY; 13 | return out; 14 | } 15 | 16 | var globTileXY = {}; 17 | export default Offset; -------------------------------------------------------------------------------- /js/plugins/utils/texture/CreateRectangleTexture.js: -------------------------------------------------------------------------------- 1 | var CreateRectangleTexture = function (scene, key, width, height, color) { 2 | if (height === undefined) { 3 | height = width; 4 | } 5 | if (color === undefined) { 6 | color = 0xffffff; 7 | } 8 | scene.add.graphics() 9 | .fillStyle(color) 10 | .fillRect(0, 0, width, height) 11 | .generateTexture(key, width, height) 12 | .destroy(); 13 | } 14 | export default CreateRectangleTexture; -------------------------------------------------------------------------------- /js/plugins/webfontloader-plugin.js: -------------------------------------------------------------------------------- 1 | import loaderCallback from './loader/webfontloader/webFontLoaderCallback.js'; 2 | 3 | class WebFontLoaderPlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | 7 | pluginManager.registerFileType('rexWebFont', loaderCallback); 8 | } 9 | 10 | addToScene(scene) { 11 | scene.sys.load['rexWebFont'] = loaderCallback; 12 | } 13 | } 14 | 15 | export default WebFontLoaderPlugin; -------------------------------------------------------------------------------- /js/plugins/moveto-plugin.js: -------------------------------------------------------------------------------- 1 | import MoveTo from './moveto.js'; 2 | 3 | class MoveToPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new MoveTo(gameObject, config); 16 | } 17 | } 18 | 19 | export default MoveToPlugin; -------------------------------------------------------------------------------- /js/plugins/achievements-plugin.js: -------------------------------------------------------------------------------- 1 | import Achievements from './achievements.js' 2 | 3 | class AchievementsPlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | add(config) { 14 | return new Achievements(config); 15 | } 16 | } 17 | 18 | export default AchievementsPlugin; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/Factory.js: -------------------------------------------------------------------------------- 1 | import MiniBoard from './MiniBoard.js'; 2 | import ObjectFactory from '../ObjectFactory.js'; 3 | import SetValue from '../../utils/object/SetValue.js'; 4 | 5 | ObjectFactory.register('miniBoard', function (x, y, config) { 6 | var gameObject = new MiniBoard(this.scene, x, y, config); 7 | this.scene.add.existing(gameObject); 8 | return gameObject; 9 | }); 10 | 11 | SetValue(window, 'RexPlugins.Board.MiniBoard', MiniBoard); 12 | 13 | export default MiniBoard; -------------------------------------------------------------------------------- /js/plugins/bullet-plugin.js: -------------------------------------------------------------------------------- 1 | import Bullet from './bullet.js'; 2 | 3 | class BulletPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new Bullet(gameObject, config); 16 | } 17 | 18 | } 19 | 20 | export default BulletPlugin; -------------------------------------------------------------------------------- /js/plugins/button-plugin.js: -------------------------------------------------------------------------------- 1 | import Button from './button.js'; 2 | 3 | class ButtonPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new Button(gameObject, config); 16 | } 17 | 18 | } 19 | 20 | export default ButtonPlugin; -------------------------------------------------------------------------------- /js/plugins/hexagon-plugin.js: -------------------------------------------------------------------------------- 1 | import Hexagon from './hexagon.js'; 2 | 3 | class HexagonPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(x, y, size, type) { 15 | return new Hexagon(x, y, size, type); 16 | } 17 | } 18 | 19 | export default HexagonPlugin; -------------------------------------------------------------------------------- /js/plugins/slider-plugin.js: -------------------------------------------------------------------------------- 1 | import Slider from './slider.js'; 2 | 3 | class SliderPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new Slider(gameObject, config); 16 | } 17 | 18 | } 19 | 20 | export default SliderPlugin; -------------------------------------------------------------------------------- /js/plugins/csvtoarray-plugin.js: -------------------------------------------------------------------------------- 1 | import CSVToArray from './csvtoarray.js' 2 | 3 | class CSVToArrayPlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | convert(strData, config) { 14 | return CSVToArray(strData, config); 15 | } 16 | } 17 | 18 | export default CSVToArrayPlugin; -------------------------------------------------------------------------------- /js/plugins/rhombus-plugin.js: -------------------------------------------------------------------------------- 1 | import Rhombus from './rhombus.js'; 2 | 3 | class RhombusPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(x, y, width, height) { 15 | return new Rhombus(x, y, width, height); 16 | } 17 | } 18 | 19 | export default RhombusPlugin; -------------------------------------------------------------------------------- /js/plugins/shakeposition-plugin.js: -------------------------------------------------------------------------------- 1 | import Shake from './shakeposition.js'; 2 | 3 | class ShakePlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new Shake(gameObject, config); 16 | } 17 | } 18 | 19 | export default ShakePlugin; -------------------------------------------------------------------------------- /js/plugins/csvscenario-plugin.js: -------------------------------------------------------------------------------- 1 | import CSVScenario from './csvscenario.js'; 2 | 3 | class CSVScenarioPlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | add(scene, config) { 14 | return new CSVScenario(scene, config); 15 | } 16 | } 17 | 18 | export default CSVScenarioPlugin; -------------------------------------------------------------------------------- /js/plugins/loopinticks-plugin.js: -------------------------------------------------------------------------------- 1 | import LoopInTicks from './loopinticks.js' 2 | 3 | class LoopInTicksPlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | add(scene, config) { 14 | return new LoopInTicks(scene, config); 15 | } 16 | } 17 | 18 | export default LoopInTicksPlugin; -------------------------------------------------------------------------------- /js/plugins/rotateto-plugin.js: -------------------------------------------------------------------------------- 1 | import RotateTo from './rotateto.js'; 2 | 3 | class RotateToPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new RotateTo(gameObject, config); 16 | } 17 | } 18 | 19 | export default RotateToPlugin; -------------------------------------------------------------------------------- /js/plugins/csvtohashtable-plugin.js: -------------------------------------------------------------------------------- 1 | import CSVToHashTable from './csvtohashtable.js'; 2 | 3 | class CSVToHashTablePlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | add(config) { 14 | return new CSVToHashTable(config); 15 | } 16 | } 17 | 18 | export default CSVToHashTablePlugin; -------------------------------------------------------------------------------- /js/plugins/dragrotate-plugin.js: -------------------------------------------------------------------------------- 1 | import DragRotate from './dragrotate.js'; 2 | 3 | class DragRotatePlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(scene, config) { 15 | return new DragRotate(scene, config); 16 | } 17 | 18 | } 19 | 20 | export default DragRotatePlugin; -------------------------------------------------------------------------------- /js/plugins/gameobjects/text/textbase/const.js: -------------------------------------------------------------------------------- 1 | var CONST = { 2 | // halign 3 | hleft: 0, 4 | hcenter: 1, 5 | hright: 2, 6 | 7 | // valign 8 | vtop: 0, 9 | vcenter: 1, 10 | vbottom: 2, 11 | 12 | // new line mode 13 | NO_NEWLINE: 0, 14 | RAW_NEWLINE: 1, 15 | WRAPPED_NEWLINE: 2, 16 | 17 | // wrap mode 18 | NO_WRAP: 0, 19 | WORD_WRAP: 1, 20 | CHAR_WRAP: 2, 21 | 22 | // split lines 23 | SPLITREGEXP: /(?:\r\n|\r|\n)/ 24 | }; 25 | 26 | export default CONST; -------------------------------------------------------------------------------- /js/plugins/lifetime-plugin.js: -------------------------------------------------------------------------------- 1 | import LifeTime from './lifetime.js'; 2 | 3 | class LifeTimePlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new LifeTime(gameObject, config); 16 | } 17 | 18 | } 19 | 20 | export default LifeTimePlugin; -------------------------------------------------------------------------------- /js/plugins/scroller-plugin.js: -------------------------------------------------------------------------------- 1 | import Scroller from './scroller.js'; 2 | 3 | class ScrollerPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new Scroller(gameObject, config); 16 | } 17 | 18 | } 19 | 20 | export default ScrollerPlugin; -------------------------------------------------------------------------------- /js/plugins/textpage-plugin.js: -------------------------------------------------------------------------------- 1 | import TextPage from './textpage.js'; 2 | 3 | class TextPagePlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new TextPage(gameObject, config); 16 | } 17 | 18 | } 19 | 20 | export default TextPagePlugin; -------------------------------------------------------------------------------- /js/plugins/board/pathfinder/Methods.js: -------------------------------------------------------------------------------- 1 | 2 | import AStarSearch from './astartsearch/AStarSearch.js'; 3 | import GetCost from './GetCost.js'; 4 | import FindArea from './FindArea.js'; 5 | import GetPath from './GetPath.js'; 6 | import FindPath from './FindPath.js'; 7 | import TileXYToCost from './TileXYToCost.js'; 8 | 9 | export default { 10 | aStarSearch: AStarSearch, 11 | getCost: GetCost, 12 | findArea: FindArea, 13 | getPath: GetPath, 14 | findPath: FindPath, 15 | tileXYToCost: TileXYToCost, 16 | }; -------------------------------------------------------------------------------- /js/plugins/board/utils/tilexyzkey/KeyToTileXYZ.js: -------------------------------------------------------------------------------- 1 | var KeyToTileXYZ = function (key, out, separator) { 2 | if (out === undefined) { 3 | out = {}; 4 | } else if (out === true) { 5 | out = globTileXYZ; 6 | } 7 | 8 | if (separator === undefined) { 9 | separator = ','; 10 | } 11 | var items = key.split(separator); 12 | out.x = items[0]; 13 | out.y = items[1]; 14 | out.z = items[2]; 15 | return out; 16 | } 17 | 18 | var globTileXYZ = {}; 19 | export default KeyToTileXYZ; -------------------------------------------------------------------------------- /js/plugins/conditionstable-plugin.js: -------------------------------------------------------------------------------- 1 | import ConditionsTable from './conditionstable.js' 2 | 3 | class ConditionsTablePlugin extends Phaser.Plugins.BasePlugin { 4 | constructor(pluginManager) { 5 | super(pluginManager); 6 | } 7 | 8 | start() { 9 | var eventEmitter = this.game.events; 10 | eventEmitter.once('destroy', this.destroy, this); 11 | } 12 | 13 | add(config) { 14 | return new ConditionsTable(config); 15 | } 16 | } 17 | 18 | export default ConditionsTablePlugin; -------------------------------------------------------------------------------- /js/plugins/data/csvtoarray/CSVToArray.js: -------------------------------------------------------------------------------- 1 | import CSVParser from 'papaparse/papaparse.min.js'; 2 | 3 | const GetValue = Phaser.Utils.Objects.GetValue; 4 | 5 | var CSVToArray = function (csvString, config) { 6 | var delimiter = GetValue(config, 'delimiter', ','); 7 | var convert = GetValue(config, 'convert', true); 8 | 9 | var arr = CSVParser.parse(csvString, { 10 | delimiter: delimiter, 11 | dynamicTyping: convert 12 | }).data; 13 | return arr; 14 | }; 15 | 16 | export default CSVToArray; -------------------------------------------------------------------------------- /js/plugins/dragspeed-plugin.js: -------------------------------------------------------------------------------- 1 | import DragSpeed from './dragspeed.js'; 2 | 3 | class DragSpeedPlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | add(gameObject, config) { 15 | return new DragSpeed(gameObject, config); 16 | } 17 | 18 | } 19 | 20 | export default DragSpeedPlugin; -------------------------------------------------------------------------------- /js/plugins/gameobjects/canvas/render/Render.js: -------------------------------------------------------------------------------- 1 | import WebGLRenderer from './WebGLRenderer.js'; 2 | import CanvasRenderer from './CanvasRenderer.js'; 3 | import NOOP from '../../../utils/object/NOOP.js'; 4 | 5 | var renderWebGL = NOOP; 6 | var renderCanvas = NOOP; 7 | 8 | if (WEBGL_RENDERER) { 9 | renderWebGL = WebGLRenderer; 10 | } 11 | 12 | if (CANVAS_RENDERER) { 13 | renderCanvas = CanvasRenderer; 14 | } 15 | 16 | export default { 17 | renderWebGL: renderWebGL, 18 | renderCanvas: renderCanvas 19 | 20 | }; -------------------------------------------------------------------------------- /js/plugins/randomplace-plugin.js: -------------------------------------------------------------------------------- 1 | import RandomPlace from './randomplace.js'; 2 | 3 | class RandomPlacePlugin extends Phaser.Plugins.BasePlugin { 4 | 5 | constructor(pluginManager) { 6 | super(pluginManager); 7 | } 8 | 9 | start() { 10 | var eventEmitter = this.game.events; 11 | eventEmitter.once('destroy', this.destroy, this); 12 | } 13 | 14 | randomPlace(items, options) { 15 | return RandomPlace(items, options); 16 | } 17 | } 18 | 19 | export default RandomPlacePlugin; -------------------------------------------------------------------------------- /js/plugins/board/miniboard/mainboard/MainBoardReference.js: -------------------------------------------------------------------------------- 1 | class MainBoardReference { 2 | constructor(miniBoard) { 3 | this.miniBoard = miniBoard; 4 | this.set(null); 5 | } 6 | set(mainBoard, tileX, tileY) { 7 | if (!mainBoard) { 8 | mainBoard = null; 9 | tileX = null; 10 | tileY = null; 11 | } 12 | this.mainBoard = mainBoard; 13 | this.tileX = tileX; 14 | this.tileY = tileY; 15 | } 16 | } 17 | export default MainBoardReference; --------------------------------------------------------------------------------