Commit graph

6090 commits

Author SHA1 Message Date
Richard Davey
32818ee9cd jsdoc fixes 2018-05-17 15:10:23 +01:00
Richard Davey
919676ae10 PluginManager.destroy didn't reference the plugin correctly, throwing an Uncaught TypeError if you tried to destroy a game instance. Fix #3668 2018-05-17 12:16:14 +01:00
Richard Davey
b4f371edc5 Preparing for 3.9 dev 2018-05-16 22:05:25 +01:00
samme
24efda7aca Add allowDrag, allowGravity, allowRotation to PhysicsGroup config 2018-05-16 10:36:23 -07:00
Richard Davey
0d0846a415 Calling a creator, such as GraphicsCreator, without passing in a config object, would cause an error to be thrown. All Game Object creators now catch against this. 2018-05-16 15:17:08 +01:00
Richard Davey
dfc3cb92c0 3.8.0 Release 2018-05-16 15:08:01 +01:00
Richard Davey
66810f9649 Added fixed core build and updated AP config 2018-05-16 14:53:15 +01:00
Richard Davey
9f7d3bf9ca Allowed get to return the class and added autoStart boolean 2018-05-16 14:35:45 +01:00
Richard Davey
5e667ec139 Fixed 'all frames' check 2018-05-16 14:35:30 +01:00
samme
06677c2cdc Allow empty object2 in collideObjects 2018-05-15 13:11:31 -07:00
Richard Davey
984c90f0bc
Merge pull request #3659 from samme/fix/typescript-body
Correct JSDoc type for GameObject#body
2018-05-15 16:27:20 +01:00
Richard Davey
26faa58ad7 Corrected an error in Container.getBoundsTransformMatrix that called a missing method, causing a getBounds on a nested container to fail. Fix #3624 2018-05-15 16:23:33 +01:00
samme
0bbffdc965 Correct JSDoc type for GameObject#body 2018-05-15 08:04:44 -07:00
Richard Davey
5b0cb0faf3 All Game Objects have a new method setRandomPosition which will randomly position them anywhere within the defined area, or if no area is given, anywhere within the game size. 2018-05-15 15:58:53 +01:00
Richard Davey
2f4358fed4 The keycodes for 0 to 9 on the numeric keypad have been added. You can now use them in events 2018-05-15 15:57:26 +01:00
Richard Davey
9500a6ee32 When calling generateFrameNames to define an animation from a texture atlas you can now leave out all of the config properties and it will create an animation using every frame found in the atlas. Please understand you've no control over the sequence of these frames if you do this and it's entirely dictated by the json data 2018-05-15 15:34:57 +01:00
Richard Davey
6d1166a9c2 lint fixes 2018-05-15 14:28:27 +01:00
Richard Davey
3043fd52e6 Added jsdocs and unified the boot process 2018-05-15 14:19:56 +01:00
Richard Davey
ef9ab052c7 PluginManager updates to handle Scene system injection, PluginCache use and registering new game objects and file types 2018-05-15 12:52:18 +01:00
Richard Davey
350cb037b7 All systems now register themselves with the new PluginCache 2018-05-15 12:51:50 +01:00
Richard Davey
6ef465a734 Animation.yoyo was ignored when calculating the next frame to advance to, breaking the yoyo effect. It now yoyos properly 2018-05-15 09:40:22 +01:00
Richard Davey
f410dc3d88 The Headless renderer was broken due to an invalid access during TextureSource.init. 2018-05-15 08:51:54 +01:00
Richard Davey
bdf9f5ce60 Utils.Array.BringToTop failed to move the penultimate item in an array due to an index error. Fix #3658 2018-05-15 08:45:39 +01:00
Richard Davey
4741ee02b1 Updated docs and lint fixes 2018-05-11 18:55:44 +01:00
Richard Davey
444dda12d7 Added option to insert plugin into Scene immediately 2018-05-11 18:22:28 +01:00
Richard Davey
271c0a08b8 Added new ScenePluginFile and updated PluginFile. External and internal plugins now work. 2018-05-11 18:22:12 +01:00
Richard Davey
0937bff044 Spacing 2018-05-11 18:21:50 +01:00
Richard Davey
d160f5c648 Removed log and improved docs 2018-05-11 16:24:10 +01:00
Richard Davey
a2b1c72a51 PluginManager now handles booting custom scene plugins 2018-05-11 16:01:37 +01:00
Richard Davey
9dc76348cb Added new base ScenePlugin 2018-05-11 16:01:23 +01:00
Richard Davey
4f2ef3f3ca Fixed overwrite and split plugin types. 2018-05-11 16:01:11 +01:00
Richard Davey
47077ea9f3 We don't need the key, so remove it. 2018-05-11 16:00:59 +01:00
Richard Davey
4959ed70ef Now gets the list from the PluginManager 2018-05-11 16:00:46 +01:00
Richard Davey
45c3336354 Revamped PluginManager, now working to install, start and stop plugins. 2018-05-11 14:06:51 +01:00
Richard Davey
ed8a0d97e3 Renamed Plugin to BasePlugin to accurately reflect what it is. Added default methods. 2018-05-11 14:06:35 +01:00
Richard Davey
e431cc33f9 Moved plugins file to DefaultPlugins and changed the namespace 2018-05-11 14:06:13 +01:00
Richard Davey
2f4c52b7e4 Remapped EventEmitter correctly to Phaser.Events.EventEmitter 2018-05-11 14:05:34 +01:00
Richard Davey
0a46c13f4c Working through new plugin structure 2018-05-11 01:50:37 +01:00
Richard Davey
ade37dd35e Game.step now uses more events and less direct calls. 2018-05-11 01:50:16 +01:00
Richard Davey
d595da49fd Now use the prestep event to update instead 2018-05-11 01:50:02 +01:00
Richard Davey
11cbf0cf8d Marked the children parameter as optional. Fix #3657 2018-05-10 23:32:46 +01:00
Richard Davey
f6d8606daa Fixed type 2018-05-10 22:01:40 +01:00
Richard Davey
8ca79cdda4 Working on the plugin config setup 2018-05-10 17:15:25 +01:00
Richard Davey
1408a2dc81 plugins is now available from every Scene 2018-05-10 17:15:08 +01:00
Richard Davey
61d38b028f Exposed Plugin and Plugins namespace 2018-05-10 17:14:52 +01:00
Richard Davey
be330e609e Moved PluginManager to new location 2018-05-10 17:14:33 +01:00
Richard Davey
cc9d3160b1 Update type 2018-05-10 13:07:49 +01:00
Richard Davey
95eaa2d122 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-05-10 12:42:11 +01:00
Richard Davey
d19a1f9a4f Fixed config object 2018-05-10 12:42:08 +01:00
Richard Davey
7a4b29872e Allow for custom canvas and context game config options. Game.context now set in WebGL mode. Allows WebGL2 contexts to be passed in. Fix #3653 2018-05-10 12:25:33 +01:00
samme
a70fb6aee9 Add docs for Arcade Physics 2018-05-09 21:28:52 -07:00
Richard Davey
c9ea4dc117 Testing new PluginFile approach. 2018-05-09 23:55:11 +01:00
Richard Davey
835bc37e32 Optimized TextureTintPipeline.drawBlitter so it skips bobs that have alpha of zero and only calls setTexture2D if the bob sourceIndex has changed, previously it called it for every single bob. 2018-05-09 15:13:06 +01:00
Richard Davey
7df0488100 Fixed dupe config set 2018-05-09 14:32:32 +01:00
Richard Davey
6ec1a580eb typo fix 2018-05-09 14:30:31 +01:00
Richard Davey
056e74d6dc Added compression object for future texture compression support. 2018-05-09 13:46:19 +01:00
Richard Davey
39cf7252c9 Check if body exists. Fix #3649. 2018-05-09 13:45:47 +01:00
Richard Davey
4106f7e899 Fixed File call re: #3650 2018-05-09 13:04:18 +01:00
Richard Davey
6e97b09ec9 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-05-09 13:02:44 +01:00
TadejZupancic
b795fbd97a
Missing loader parameter in File.call 2018-05-09 13:27:51 +02:00
Richard Davey
89329a2315 Added getMaxTextures and getMaxTextureSize methods 2018-05-09 12:12:16 +01:00
Richard Davey
b1d41e506f Typo fix 2018-05-09 12:11:29 +01:00
Richard Davey
d90e012898 Preparing for 3.8.0 2018-05-09 11:23:41 +01:00
Richard Davey
7788602518 3.7.1 Release 2018-05-08 23:47:33 +01:00
Richard Davey
321ccf883a 3.7.0 Release 2018-05-08 23:29:42 +01:00
Richard Davey
57918bb50f Removed the need for raw-loader in webpack. Shaders now build to standard JS files. Removed fs requirement. 2018-05-08 23:04:57 +01:00
Richard Davey
c89728de1d lint fix 2018-05-08 21:16:22 +01:00
Richard Davey
ec3bd4c729 The WebAudioSoundManager will now listen for 'click' events on the document body, as well as touch events, before resuming the AudioContext. 2018-05-08 16:51:43 +01:00
Richard Davey
1414b77f4a Merge branch 'master' of https://github.com/photonstorm/phaser 2018-05-08 16:15:56 +01:00
Richard Davey
672a535d88 Added disableInteractive and removeInteractive methods. #3621 2018-05-08 16:15:50 +01:00
Richard Davey
aed8961e5a
Merge pull request #3647 from zilbuz/jsdocs
Update JSDocs
2018-05-08 16:02:43 +01:00
Richard Davey
0441e19f2b Updated jsdocs 2018-05-08 15:43:12 +01:00
Basile Desloges
fe03667ee5 Update JSDocs
- Update GameConfig to explicit the `render` subobject
- GameConfig#render.powerPreference is documented as string instead of boolean
- Add comments to the members of the `Config` object
2018-05-08 16:28:36 +02:00
Richard Davey
ee2c0619d8 Updated jsdocs 2018-05-08 13:30:33 +01:00
Richard Davey
d7dfc1137d Added jsdocs 2018-05-08 13:16:53 +01:00
Richard Davey
ed9dbde7e0 Added jsdocs 2018-05-08 12:48:12 +01:00
Richard Davey
5700e9ac36 jsdocs update 2018-05-08 12:34:18 +01:00
Richard Davey
acc8683de8 Format fix 2018-05-08 01:37:16 +01:00
Richard Davey
199db75a8b lint fix 2018-05-08 01:36:45 +01:00
Richard Davey
560b0ca84b Binary files have a new optional dataType property to cast the data to upon load. 2018-05-08 01:12:41 +01:00
Richard Davey
1cb68a9895 New per file event dispatched. 2018-05-08 01:12:20 +01:00
Richard Davey
977fc930ec Added jsdocs 2018-05-07 23:25:58 +01:00
Richard Davey
1fb96f60ed Added jsdocs 2018-05-07 15:17:33 +01:00
Richard Davey
5042358da0 Typo fix 2018-05-05 17:15:21 +01:00
Richard Davey
90062d46dd Updated jsdocs 2018-05-05 17:10:03 +01:00
Richard Davey
f81fea08fb Added jsdocs 2018-05-05 12:46:51 +01:00
Richard Davey
cfe70866d6 Added jsdocs 2018-05-05 12:37:17 +01:00
Richard Davey
e017777773 Updated jsdocs 2018-05-05 12:31:04 +01:00
Richard Davey
a1ee4e6f24 Added jsdocs 2018-05-05 12:14:16 +01:00
Richard Davey
42cc4acf00 Added jsdocs 2018-05-05 11:56:09 +01:00
Richard Davey
29aec01b6f Bumping to 3.7.0 2018-05-04 18:51:02 +01:00
Richard Davey
7c53e13e81 Finished jsdocs 2018-05-04 18:50:10 +01:00
Richard Davey
8e7df2a234 You can now set the X-Requested-With header in the XHR requests by specifying it in your XHRSettings config, either in the game, scene or file configs. 2018-05-04 17:33:48 +01:00
Richard Davey
8b574f271f Loader.enableParallel has been removed. If you don't want parallel file loads then set the maximum parallel limit to 1. Related to this, the Game Config loaderEnableParallel property has been removed. 2018-05-04 17:13:27 +01:00
Richard Davey
4d8fb08575 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-05-04 16:00:09 +01:00
Richard Davey
faef3449f5 Added jsdocs 2018-05-04 16:00:02 +01:00
Richard Davey
d1479b6f23
Merge pull request #3641 from tamagokun/patch-1
Update Tiled Base64Decode function
2018-05-04 15:30:46 +01:00
Richard Davey
0415dfbb7e lint fixes 2018-05-04 15:16:20 +01:00
Richard Davey
5ec482c539 Removed logs 2018-05-04 15:07:07 +01:00
Richard Davey
3b580c3e32 Missing new! 2018-05-04 14:46:58 +01:00
Richard Davey
d28a928663 Added normal map support for multi-atlas parsing 2018-05-04 14:34:19 +01:00
Richard Davey
6e820b3e7f We know the order, so can avoid checking the type 2018-05-04 14:34:06 +01:00
Richard Davey
acf6b94b2f Removed loadArray and fixed addPack return 2018-05-04 14:33:44 +01:00
Richard Davey
ebf77e2bbc The Scene Settings payload property has changed from files to pack and now follows the Pack File format. 2018-05-04 14:33:28 +01:00
Richard Davey
6d83cae2dc The Texture class has a new method getDataSourceImage which will return the raw image data of the data source. 2018-05-04 14:33:02 +01:00
Richard Davey
b0c853a782 Added in normal map support 2018-05-04 14:32:13 +01:00
Richard Davey
9b7d6d0254 Added linkFile support back in, so images can bind to other data. 2018-05-04 14:31:43 +01:00
Richard Davey
97dd683ea1 The Forward Diffuse Light Pipeline was hard coded to assume the normal map would be stored in the source index zero. It now correctly obtains the normal map from the frame source index, which means all Game Objects that used frames from multi-atlas textures will now work with lights properly. 2018-05-04 14:31:19 +01:00
Richard Davey
c796332892 Only scan resources if a resourceLoad 2018-05-04 11:34:10 +01:00
Richard Davey
1afb066dfa Docs 2018-05-04 11:33:56 +01:00
Richard Davey
04584ad191 Renamed LinkFile to MultiFile 2018-05-04 11:33:51 +01:00
Richard Davey
c34de6acdf lint fixes and console removal 2018-05-04 02:46:38 +01:00
Richard Davey
22c6c23f52 Removed logs and fixed double-cache add bug. 2018-05-04 02:39:49 +01:00
Richard Davey
d56c69cb39 It's only ready if not complete! 2018-05-04 02:39:33 +01:00
Richard Davey
2859e05d74 Removed logs 2018-05-04 02:39:15 +01:00
Richard Davey
225cd628ee Changed anonymous functions as we needed them outside this file 2018-05-04 02:39:08 +01:00
Richard Davey
42d2bfaece Audio Sprites can be json only. 2018-05-04 02:38:49 +01:00
Richard Davey
9e150fb400 New AtlasXML file type 2018-05-04 02:38:30 +01:00
Richard Davey
a09c8576d5 Shorter error 2018-05-04 02:38:09 +01:00
Richard Davey
d780cda233 Audio Sprites now support loop property 2018-05-04 02:38:01 +01:00
Richard Davey
77250b1ba3 Shorter warning. 2018-05-04 02:37:41 +01:00
Richard Davey
e1b252e4fd Removed un-used texture parsers and added in new AtlasXML parser. 2018-05-04 02:37:32 +01:00
Richard Davey
134b0f6752 Now handles web audio + html5 audio and config objects properly 2018-05-03 17:13:01 +01:00
Richard Davey
d40b9c2a10 Fixed call 2018-05-03 17:12:44 +01:00
Richard Davey
bce9a4712e Moved to new style of file handling 2018-05-03 17:12:32 +01:00
Richard Davey
669792d3ce Tidying up 2018-05-03 17:12:19 +01:00
Richard Davey
107ca71d6b BitmapText, both static and dynamic, can now take any data-type, including numbers, for the text argument in the constructor. Before they only worked via setText 2018-05-03 15:52:12 +01:00
Richard Davey
47f647206f Added multi atlas support back in. Pack files can now load multi-atlas files too. 2018-05-03 14:19:40 +01:00
Mike Kruk
c0ce45cfa3
Update Base64Decode.js
The array length should be 1/4 the size of the raw binary string, otherwise you end up with a bunch of undefined array values at the end.
2018-05-02 19:39:56 -04:00
Richard Davey
be4303e6e6 Added pack loading support and hardened up loader modifiers. 2018-05-03 00:37:00 +01:00
Richard Davey
04487f7510 Added pendingDestroy method and prefix to the key 2018-05-03 00:36:29 +01:00
Richard Davey
e7f98fc02f No longer needed 2018-05-03 00:35:57 +01:00
Richard Davey
d79db1b739 Added isReadyToProcess method 2018-05-03 00:35:20 +01:00
Richard Davey
267765c72a Refactoring to allow for adding files during load, instant file processing and load packs 2018-05-02 17:25:27 +01:00
Richard Davey
c0f23e119a Removed callback argument and hit the onProcess methods directly 2018-05-02 17:24:56 +01:00
Richard Davey
77dd16dc8d Removed callbacks and added new onProcess methods 2018-05-02 17:24:25 +01:00
Richard Davey
8c51107718 Max Parallel Files limit raised from 4 to 32 2018-05-02 17:23:51 +01:00
Richard Davey
e6a3747291 loader.path doesn't need to be in the config. Added prefix. 2018-05-02 13:11:17 +01:00
Richard Davey
c13c828dc4 lint fix 2018-05-02 11:36:03 +01:00
Richard Davey
28251fd0f5 addToScene added to all Game Object Creators 2018-05-02 10:57:26 +01:00
Richard Davey
a30d5acb9e The Graphics Creator would automatically add the Graphics to the display list by mistake. The default should be to remain hidden. Fix #3637 2018-05-02 10:57:04 +01:00
Richard Davey
a14ce15685 Fixed setActive and setVisible 2018-05-01 12:35:56 +01:00
Richard Davey
80a1ef3a6d Merge branch 'master' of https://github.com/photonstorm/phaser 2018-05-01 12:22:23 +01:00
Richard Davey
e1532b3154 The Scene Systems will emit a ready event when it has fully finished starting up and all plugins are available. Fix #3636 2018-05-01 12:22:18 +01:00
Richard Davey
661ed5f675
Merge pull request #3629 from samme/fix/setEmitZone
Fix `source` checks in ParticleEmitter#setEmitZone
2018-05-01 11:38:52 +01:00
Richard Davey
425acd3f63 Fixed moveAbove and moveBelow 2018-05-01 01:23:34 +01:00
Richard Davey
5d3c06d8b7 ScenePlugin.getIndex will return the index of the given Scene in the Scene List. 2018-05-01 01:23:19 +01:00
Richard Davey
1c4d6551b0
Merge pull request #3635 from snowbillr/arcade-collider-param-types
arcade colliders take gameobjects, not arcade bodies
2018-04-30 14:35:55 +01:00
Bill Reed
a996bbf8df
update collider and overlap param types 2018-04-30 08:44:02 -04:00
Bill Reed
3fc0712451
update collider param types 2018-04-30 08:43:21 -04:00
Bill Reed
e3af569642
update overlap and collide params 2018-04-30 08:42:49 -04:00
Richard Davey
3323b785b2 space-infix fix 2018-04-30 13:03:44 +01:00
Bill Reed
7251824b1d arcade colliders take gameobjects, not arcade bodies 2018-04-30 07:46:46 -04:00
Richard Davey
63dbd9fd12 The Animation Component setProgress method was setting the frame on the wrong object. Fix #3633 2018-04-30 12:37:50 +01:00
Richard Davey
373ebe7d3f Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-30 12:28:36 +01:00
Richard Davey
9fa74400ab Container.getBounds now checks if it can call getBounds on its children before doing so, as some do not have this method (such as Graphics objects) so they no longer cause the call to crash. Fix #3623 2018-04-30 12:28:26 +01:00
Richard Davey
b9e774cb04
Merge pull request #3632 from snowbillr/fix-arcade-physics-factory-collider-params
Fix arcade physics factory collider params
2018-04-30 12:18:18 +01:00
Richard Davey
abe18a39cf
Merge pull request #3630 from ksmai/fix/jsdoc-grid-align
Fix JSDoc parameter type in Actions.GridAlign
2018-04-30 12:16:30 +01:00
Richard Davey
efe649b318
Merge pull request #3628 from PaNaVTEC/camerajsonbounds-typings
Fix camera bound typings
2018-04-30 12:15:48 +01:00
Richard Davey
eb1c55b91c
Merge pull request #3627 from rexrainbow/master
Remove extra space in each line end
2018-04-30 12:10:16 +01:00
Bill Reed
a50b302216 same for overlap 2018-04-29 11:35:19 -04:00
Bill Reed
b483fc4e1a update arcade collider factory method optional params to match arcade world collider optional params 2018-04-29 11:33:01 -04:00
ksmai
1050deb59f Fix JSDoc parameter type in Actions.GridAlign 2018-04-29 16:25:44 +08:00
samme
5fc6f94c67 Remove source checks in setEmitZone 2018-04-28 13:10:22 -07:00
samme
f59f90d2ca Correct source types in *ZoneConfig definitions 2018-04-28 13:09:59 -07:00
Richard Davey
8d6eb2f9ed More work re-structuring the file types 2018-04-28 18:09:44 +01:00
samme
84ba1ba191 Correct source checks in setEmitZone 2018-04-28 08:41:32 -07:00
Richard Davey
0390af16e9 Moving to unified 'add' structure and removing multiatlas 2018-04-28 12:32:03 +01:00
Christian Panadero
5f03557603 Fix camera bound typings
Bounds where not generated with that syntax so I created an entity to
explictly define the camera bounds.

Bounds are there only when the internal property 'useBounds' is there,
so it can be undefined in some cases.
2018-04-28 12:25:07 +01:00
Rex
0a46d64328 Remove extra space in each line end
Add space only when the word index is greater than last one.
2018-04-28 14:54:59 +08:00
Richard Davey
9a974514ff Added new LinkFile class and updated other file types to use it. 2018-04-27 18:44:12 +01:00
Richard Davey
f289be6bc7
Merge pull request #3625 from iamchristopher/fix-json-loader
Fixed loader isn't passed to JSONFile
2018-04-27 13:00:46 +01:00
Richard Davey
2037cf468b More clarity. #3622 2018-04-27 12:42:37 +01:00
iamchristopher
68687162b5 Fixed JSONFile loader doesn't pass loader to JSONFile 2018-04-26 20:31:32 -04:00
Richard Davey
ef136f684d Polygon.setTo would fail if given an array of arrays as a list of points. Fix #3619 2018-04-26 15:55:27 +01:00
Richard Davey
65c54f4b8d Array.AddAt would fail if it branched to the fast-path within a Container due to an invalid property. Fix #3617 2018-04-26 15:44:56 +01:00
Richard Davey
dbdd5a8d04
Merge pull request #3514 from iamchristopher/feature-multi-image-loader
Fixed loading normals with multi image load
2018-04-26 13:04:49 +01:00
Richard Davey
b2b631534c
Merge pull request #3616 from samme/fix/particles
Fix ParticleEmitter#toJSON() output
2018-04-26 13:03:30 +01:00
Richard Davey
103e0c8727 Updated RandomDataGenerator.shuffle to remove several internal calls as min is always zero 2018-04-26 13:02:13 +01:00
Richard Davey
44314845f5
Merge pull request #3564 from wtravO/master
Added array shuffle method to RDG
2018-04-26 12:38:19 +01:00
Richard Davey
6934d79747
Merge pull request #3613 from samme/fix/3612
Fix no children created from GroupCreateConfig[] (multiple adds)
2018-04-26 12:36:23 +01:00
Richard Davey
17341d3727
Merge pull request #3614 from Fabadiculous/docs
Docs for DegToRad, RadToDeg, Rotate, Within, RoundAwayFromZero and IsEven
2018-04-26 12:34:39 +01:00
Chris Wright
ed51affded
Merge branch 'master' into feature-multi-image-loader 2018-04-25 20:48:06 -04:00
Felipe Alfonso
cf8e2cfd60 added jsdoc comments to WebGLRenderer 2018-04-25 20:30:41 -03:00
Felipe Alfonso
0c90f068fc Added jsdoc comments to WebGLPipeline 2018-04-25 19:52:20 -03:00
Richard Davey
038bbcc7bc Fixed the remaining file types. 2018-04-25 23:16:17 +01:00
Felipe Alfonso
de7568acbb Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-25 13:18:36 -03:00
Richard Davey
0f0f099326 eslint fixes 2018-04-25 17:18:16 +01:00
Felipe Alfonso
e85c66a2fd Added jsdocs comments to WebGL utils 2018-04-25 13:17:33 -03:00
Richard Davey
074fcbcf2b null references 2018-04-25 17:16:39 +01:00
Richard Davey
9843da1053 Check file cache and pass processing of the file off to the file itself 2018-04-25 17:16:09 +01:00
Richard Davey
a07cc81806 Fixed passing of data for freshly added Scenes 2018-04-25 17:14:10 +01:00
Richard Davey
83a1965cb8 Files types updated to support new cache config value 2018-04-25 17:13:43 +01:00
Richard Davey
75a49d284c Added hasCacheConflict and addToCache methods/ 2018-04-25 17:13:06 +01:00
Richard Davey
1b25755419 The BaseCache has a new method exists that will return a boolean if an entry for the given key exists in the cache or not. 2018-04-25 17:07:39 +01:00
Felipe Alfonso
d2da10c1a9 Added jsdoc comments to TextureTintPipeline 2018-04-25 13:06:19 -03:00
Daniel
78d1c566ef Fix comment alignment 2018-04-25 20:25:29 +10:00
Daniel
9f8d87c23f Fill some description tags in Vector2.js. Fixed some descriptions.
Filled for:
setFromObject
constructor
2018-04-25 20:10:49 +10:00
samme
bd9831912c Don't stringify emitter ops twice 2018-04-24 14:20:23 -07:00
samme
0de5340201 Add 'angle' to configOpMap
It was missing from toJSON() output
2018-04-24 14:20:23 -07:00
Felipe Alfonso
f64b4b9b20 added jsdoc comments to ForwardDiffuseLightPipeline 2018-04-24 16:52:57 -03:00
Felipe Alfonso
7e90dab82f FlatTintPipeline jsdoc comments 2018-04-24 16:30:00 -03:00
Felipe Alfonso
e385d018c5 added comments to ModelViewProjection pipeline component 2018-04-24 16:00:35 -03:00
Felipe Alfonso
426bc4ffd4 BitmapMaskPipeline jsdoc descriptions 2018-04-24 13:53:10 -03:00
Richard Davey
ef24982301 Pending dos 2018-04-24 15:34:55 +01:00
Richard Davey
741d1f5793 Doc pending tags 2018-04-24 15:32:08 +01:00
Daniel
1f50bbd221 Filled many description tags for methods in Vector2.
These include:
reset,dot, normalize, lengthSq, length, distance, distanceSq, negate,
divide, multiply, add, subtract, scale, angle, equals, setTo, set, copy,
clone
2018-04-24 17:40:51 +10:00
Daniel
f347af853f Fix grammar in return statement description DegToRad.js 2018-04-24 16:29:51 +10:00
Daniel
529c35adda Update return statement description in RadToDeg 2018-04-24 16:27:19 +10:00
Daniel
516c8cb29d Update return statement description in DegToRad 2018-04-24 16:26:47 +10:00
Daniel
bad01055e1 Fill description tags in IsEven.js 2018-04-24 16:23:42 +10:00
Daniel
ce4702cbc2 Fill all description tags in RoundAwayFromZero.js 2018-04-24 16:23:26 +10:00
Daniel
bea966f646 Fill in remaining description tags for Within.js 2018-04-24 16:22:52 +10:00
Daniel
2fbb29f79a Fill all description tags in Rotate.js 2018-04-24 16:22:05 +10:00
Daniel
31ed7f7673 Fill all description tags in TadToDeg.js 2018-04-24 13:48:11 +10:00
Daniel
c119d570ee Fill all description tags in DegToRad.js 2018-04-24 13:47:55 +10:00
samme
66f1ff848e Fix no children created from GroupCreateConfig[] (multiple adds)
Fixes #3612
2018-04-23 18:14:36 -07:00
Richard Davey
cd288b33c2 eslint fixes 2018-04-23 23:52:57 +01:00
Richard Davey
84007cd9a4 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-23 23:47:18 +01:00
Richard Davey
6ff2cc6ba9 The new CanvasTexture class now working and linked to examples. 2018-04-23 23:46:59 +01:00
Richard Davey
152c68eca3 TextureManager.checkKey will check if a texture key is in-use and log a console warning if it is and then return a boolean. 2018-04-23 23:42:42 +01:00
Richard Davey
649adb51d3 When a TextureSource is destroyed if it's got a canvas texture it's removed from the CanvasPool. 2018-04-23 23:41:05 +01:00
Richard Davey
dd954def9d Updated jsdoc 2018-04-23 23:40:23 +01:00
Richard Davey
0aa071f734 Frame has a new method setSize which allows you to set the frame x, y, width and height and have it update all of the internal properties automatically. 2018-04-23 23:40:12 +01:00
Richard Davey
6d958c5157 jsdoc udpate 2018-04-23 23:39:24 +01:00
Richard Davey
8f2c13f4c8 CanvasPool has a new argument selfParent which allows the canvas itself to be the parent key, used for later removal. 2018-04-23 23:39:12 +01:00
Richard Davey
006d501fbe Added remove method 2018-04-23 19:11:47 +01:00
Richard Davey
54a5bb41c7 Tidying up 2018-04-23 19:11:16 +01:00
Richard Davey
4a58ed3935 The start of a new CanvasTexture class 2018-04-23 18:37:44 +01:00
Richard Davey
d96d677bea TextureSource will automatically create a canvas texture if required and holds a reference to the renderer internally 2018-04-23 18:37:30 +01:00
Felipe Alfonso
1ce2311465 tile culling and clipping progress 2018-04-23 13:45:42 -03:00
Richard Davey
e685c50f8a Clear manager 2018-04-23 17:30:18 +01:00
Richard Davey
649378ed0a Tidied up canvas creation and texture deletion 2018-04-23 17:30:09 +01:00
Richard Davey
e3c28d3cd9 Removed un-needed arguments 2018-04-23 17:28:37 +01:00
Richard Davey
ed2eafb3b3 Code tidying 2018-04-23 00:13:11 +01:00
Richard Davey
ced2d34b34 BitmapMask and GeometryMask both have new destroy methods which clear their references, freeing them for gc. 2018-04-23 00:13:04 +01:00
Richard Davey
30a0ff02cb
Merge pull request #3600 from samme/docs/particles
Add docs for gameobjects/particles
2018-04-22 23:07:51 +01:00
Richard Davey
f34a507002
Merge pull request #3605 from zilbuz/master
Update GetBounds.getBounds() JSDoc
2018-04-22 23:06:25 +01:00
Daniel
96d1b691fa Add full stop to docs 2018-04-22 17:07:55 +10:00
Daniel
0e3c1064c9 Actually fill in the doc tags, instead of commiting the wrong thing 2018-04-22 17:04:11 +10:00
Daniel
0a422fce0c Add full stops at the end of doc sentences 2018-04-22 17:03:47 +10:00
Daniel
d67559debc Fill all description tags for Phaser.Math.Difference 2018-04-22 17:00:03 +10:00
Daniel
ea1d01b325 Fill all description tags for Phaser.Math.Factorial 2018-04-22 16:59:44 +10:00
Daniel
9701d68af2 Fill all description tags for Phaser.Math.FloatBetween 2018-04-22 16:59:25 +10:00
Daniel
d7c5d8951a Fill all description tags for Phaser.Math.Factorial 2018-04-22 16:53:35 +10:00
Daniel
2c584d3d0e Fill all description tags in GetPhysicsPlugins.js 2018-04-22 16:50:09 +10:00
iamchristopher
85a9014b28 Merge remote-tracking branch 'upstream/master' into feature-multi-image-loader 2018-04-21 16:15:19 -04:00
Pavle Goloskokovic
116e62fafe Setting locked lag only if there are locked audio tags 2018-04-21 20:09:18 +02:00
Pavle Goloskokovic
eec19e146a Removing locked actions from queue before performing it 2018-04-21 20:08:25 +02:00
Pavle Goloskokovic
923ac40d65 No need for resetting lockedActionsQueue 2018-04-21 20:06:14 +02:00
Pavle Goloskokovic
53b69f036c Removed assigning lockedActionsQueue to empty array since it is initialized in constructor 2018-04-21 20:02:48 +02:00
Pavle Goloskokovic
f89a11793f Initializing lockedActionsQueue in constructor 2018-04-21 19:58:52 +02:00
samme
711d2a6193 Minor additions and corrections to docs 2018-04-20 21:00:19 -07:00
Richard Davey
606ba6d8d7 Added new Mask component and added to all relevant Game Objects 2018-04-20 18:57:49 +01:00
Richard Davey
445439e253 The Texture Manager will now emit an addtexture event whenever you add a new texture to it, which includes when you load images files from the Loader (as it automatically populates the Texture Manager). Once you receive an addtexture event you know the image is loaded and the texture is safe to be applied to a Game Object. 2018-04-20 18:57:23 +01:00
Basile Desloges
a7fc306329 Update GetBounds.getBounds() JSDoc so that @generic matches with @param and @return 2018-04-20 17:55:32 +02:00
samme
8b939d7790 Omit EmitterOpEmitConfig, EmitterOpUpdateConfig 2018-04-20 06:51:31 -07:00
Richard Davey
84fa696f97 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-20 14:03:10 +01:00
Richard Davey
6626fae27d eslint fix 2018-04-20 14:03:06 +01:00
Richard Davey
1185586b23 Web Audio context.close now picks up the Promise. 2018-04-20 14:01:57 +01:00
Richard Davey
d50cb2505f
Merge pull request #3599 from wtravO/JSDocFix
Fixed bug in AnimationConfig jsdoc and filled in several empty descriptions
2018-04-20 13:55:43 +01:00
Richard Davey
e3aa437340 DataManagerPlugin would throw an error on Game.destroy if you had any Scenes in the Scene Manager had not been run. Fix #3596 2018-04-20 13:34:45 +01:00
Richard Davey
4018d6ab39 Added require.extensions and eslint rule. Fix #3598 2018-04-20 01:10:04 +01:00
Richard Davey
6299019838 Updated to use typeof DefinePlugin check. 2018-04-20 00:23:24 +01:00
Richard Davey
fc4fdc4e3c Preparing for 3.6.1 2018-04-19 22:47:10 +01:00
samme
0b881e9a4e Add particles docs 2018-04-19 14:05:21 -07:00
Travis O'Neal
67ea16e3b2 Fixed bug in AnimationConfig jsdoc and filled in several empty descriptions 2018-04-19 11:36:13 -04:00
Richard Davey
349a95bc4b Updating to 3.6.0 2018-04-19 14:45:45 +01:00
Richard Davey
cfc4528370 Containers no longer in beta. 2018-04-19 14:35:17 +01:00
Richard Davey
4cd2713bd8
Merge pull request #3597 from Fabadiculous/docs
Filling out some docs in for Line, Point, PlayAnimation and  Random
2018-04-19 14:27:26 +01:00
Richard Davey
8f54932f93 Remove canvas from parent node. 2018-04-19 14:23:55 +01:00
Richard Davey
3d0be3e20c Group.remove and clear have optional destroyChild arguments 2018-04-19 14:13:46 +01:00
Richard Davey
e14d0c5054 eslint fixes 2018-04-19 13:57:33 +01:00
Richard Davey
a6c430674a # not . 2018-04-19 13:31:21 +01:00
Richard Davey
eb1990d061 jsdoc fix 2018-04-19 13:30:19 +01:00
Richard Davey
176b085402 jsdoc fix 2018-04-19 13:28:10 +01:00
Richard Davey
cb4eb9e435 Rescoped RetroFont so it's no longer bound to BitmapText 2018-04-19 13:07:59 +01:00
Daniel
24afeded9b Add full stops at end of descriptions 2018-04-19 21:59:27 +10:00
Richard Davey
5b31a51dd5 Rescoped 2018-04-19 12:42:35 +01:00
Richard Davey
895c9f9694 Missing module fix 2018-04-19 12:39:28 +01:00
Richard Davey
32ce8d7947 jsdoc fixes and removed un-used ResetKey file. 2018-04-19 12:30:38 +01:00
Daniel
58964da286 Filled description tags for constructor, x1, x2, y1, y2, getPoint return statement, getRandomPoint and setTo methods 2018-04-19 16:33:14 +10:00
Daniel
29799f36d0 All description tags filled 2018-04-19 16:27:32 +10:00
Daniel
000fd9fd96 Completed all description tags 2018-04-19 16:18:48 +10:00
Daniel
f983f121d4 Add docs for PlayAnimation 2018-04-19 08:36:57 +10:00
Daniel
ead3537d45 Added docs for PlayAnimation 2018-04-19 08:31:21 +10:00
Felipe Alfonso
504ba9e133 Fixed eslint errors on TextureTintPipeline.js 2018-04-18 18:54:06 -03:00
Felipe Alfonso
4496e773a7 Removed particle scroll factor property and calculation from canvas rendering 2018-04-18 18:44:09 -03:00
Felipe Alfonso
c4afb51c1b Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-18 18:40:41 -03:00
Felipe Alfonso
aef538d61b Added parent transform matrix to Light2D pipieline to allow support for containers 2018-04-18 18:40:27 -03:00
Richard Davey
973d8ecac5
Merge pull request #3592 from samme/fix/group-get-handler
Fix incorrect `active` state selection in Group#getHandler
2018-04-18 22:37:22 +01:00
Felipe Alfonso
e25f420269 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-18 18:35:42 -03:00
Felipe Alfonso
47bee69b3b Fixed transformation matrix order for batchGraphics 2018-04-18 18:35:18 -03:00
Richard Davey
f57ab02fe6 Recoded how RTree generations its functions. Solves perf issue introduced in 3.4 Fix #3594 2018-04-18 22:32:52 +01:00
Felipe Alfonso
18e178a72f Fixed matrix transformation order for batchTexture 2018-04-18 18:30:54 -03:00
Felipe Alfonso
f3e0ae8d44 Fixed order of transformation for dynamic bitmap text 2018-04-18 18:28:08 -03:00
Felipe Alfonso
dbafd9a70c Fixed order of matrix transformation on:
-emitter
-blitter
-sprite
-mesh
-bitmap text
2018-04-18 18:15:43 -03:00
samme
1c0905a103 Fix incorrect active state selection 2018-04-18 08:44:10 -07:00
Richard Davey
23f353326c jsdoc fix 2018-04-18 13:48:25 +01:00
Richard Davey
af3273b2e6 jsdoc fixes 2018-04-18 13:39:55 +01:00