Commit graph

10554 commits

Author SHA1 Message Date
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
Richard Davey
adcb903942
Merge pull request #3654 from samme/docs/arcade-physics
Add docs for Arcade Physics
2018-05-10 12:00:16 +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
Richard Davey
6350976329 Updated change log 2018-05-09 13:02:31 +01:00