Commit graph

10685 commits

Author SHA1 Message Date
zacharysarette
f170c0f406 This fixes an issue with the tween restart function in phaser.js.
It checks to see if state === TWEEN_CONST.PENDING_ADD.
If so sets seek(0) and parent.makeActive(this).
This fixes the issue that makes the tween stuck when restarting after adding a new tween.
2018-05-20 14:01:23 +09:00
Thomas Johan Back
eb5b09c516
Update package.json
Removing webpack command I installed.
2018-05-19 14:32:00 -07:00
Austyn Studdard
330e039763 fixed #3646 2018-05-19 13:36:42 -05:00
Austyn Studdard
60d35be269 revert 2018-05-19 13:33:04 -05:00
Austyn Studdard
50ce7feb87 fixed issue #3646 2018-05-19 11:46:43 -05:00
Richard Davey
c51742ad9f New mapping property 2018-05-18 18:43:35 +01:00
Richard Davey
0b1d32b571 New registerFileType argument, new Global Plugin mapping and createEntry method
* PluginManager.registerFileType has a new property `addToScene` which allows you to inject the new file type into the LoaderPlugin of the given Scene. You could use this to add the file type into the Scene in which it was loaded.
* PluginManager.install has a new property `mapping`. This allows you to give a Global Plugin a property key, so that it is automatically injected into any Scenes as a Scene level instance. This allows you to have a single global plugin running in the PluginManager, that is injected into every Scene automatically.
* PluginManager.createEntry is a new private method to create a plugin entry and return it. This avoids code duplication in several other methods, which now use this instead.
2018-05-18 18:43:27 +01:00
Thomas Back
67b2cea130 Bug: #3645 issue with clearing GameObjects from this._list. Called queueForRemoval() from the clear function in inputPlugin.js, since this.clear(Gameobject) called again in preupdate when removed from this._list, checked the case for if GameObject.input already set to null properties 2018-05-18 10:33:43 -07:00
Richard Davey
cad3271164 lint fix 2018-05-18 17:43:12 +01:00
Richard Davey
56888fd5db Game will now auto-focus and prevent focus loss for the keyboard when clicking away and back again
* Game has a new property `hasFocus` which is a read-only boolean that lets you know if the window the game is embedded in (including in an iframe) currently has focus or not.
* Game.Config has a new property `autoFocus`, which is `true` by default, and will automatically call `window.focus()` when the game starts.
* Clicking on the canvas will automatically call `window.focus`. This means in games that use keyboard controls if you tab or click away from the game, then click back on it again, the keys will carry on working (where-as before they would remain unfocused)
2018-05-18 17:37:45 +01:00
Richard Davey
4c1703768d Docs update 2018-05-18 17:37:20 +01:00
Richard Davey
7c28a7bd08 Bob.reset will now reset the position, frame, flip, visible and alpha values of the Bob, plus JSDocs completed. 2018-05-18 14:44:25 +01:00
Richard Davey
bfa2902304 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-05-18 13:16:21 +01:00
Richard Davey
9429a28574 The Particle tint value was incorrectly calculated, causing the color channels to be inversed. Fix #3643 2018-05-18 13:16:17 +01:00
Richard Davey
45a186978c
Merge pull request #3665 from samme/fix/collideHandler
Fix TypeError when colliding a group as the only argument
2018-05-18 12:55:49 +01:00
Richard Davey
f42b7c9d8e
Merge pull request #3672 from mikez/patch-1
jsdoc fixes
2018-05-18 12:54:15 +01:00
Richard Davey
ef2b8d68b6 setInteractive now works on non-zero sized Containers. Sorting fixed. 2018-05-18 12:48:12 +01:00
Michael B
e322ed7916
jsdoc fixes 2018-05-18 02:56:32 +02:00
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
1bd0b4cb85 Added new npm run help script 2018-05-17 00:20:27 +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
62c458d90e New 3.8 build files 2018-05-16 15:17:51 +01: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