Richard Davey
7d692bc7dc
Added Camera.followOffset property and helper methods setLerp and setFollowOffset.
2018-05-24 17:30:28 +01:00
Richard Davey
f8cda698e4
Added Camera.lerp and implemented linear interpolation when following targets
2018-05-24 15:29:38 +01:00
Richard Davey
57c2ccbf5e
Formatting fix and doc update
2018-05-24 14:03:29 +01:00
Richard Davey
35a5a6d2da
updated change log
2018-05-24 13:49:51 +01:00
Richard Davey
68303622f2
Setting an existing Game Object as a static Arcade Physics body would sometimes incorrectly pick-up the dimensions of the object, such as with TileSprites. Fix #3690
2018-05-23 15:17:26 +01:00
Richard Davey
6eea9db9b2
jsdoc fixes. FIx #3694
2018-05-23 15:04:54 +01:00
Richard Davey
63bb14c37c
Log update
2018-05-23 14:58:44 +01:00
Richard Davey
b6768f8a0f
Added contributor
2018-05-22 23:23:01 +01:00
Richard Davey
8aa116ca4b
The dragend
event would be broadcast even if the drag distance or drag time thresholds were not met. Fix #3686
2018-05-22 21:24:50 +01:00
Richard Davey
de8462efed
Added default values and tidied up docs a little
2018-05-22 16:19:18 +01:00
Richard Davey
a9cbf23b4e
Log update
2018-05-22 16:13:05 +01:00
Richard Davey
457ab68ef4
Container updated to use preDestroy and remove event hooks
2018-05-22 16:02:28 +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
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
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
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
ef2b8d68b6
setInteractive now works on non-zero sized Containers. Sorting fixed.
2018-05-18 12:48:12 +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
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
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
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
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
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
11cbf0cf8d
Marked the children parameter as optional. Fix #3657
2018-05-10 23:32:46 +01:00
Richard Davey
cc9d3160b1
Update type
2018-05-10 13:07:49 +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
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
056e74d6dc
Added compression object for future texture compression support.
2018-05-09 13:46:19 +01:00
Richard Davey
6350976329
Updated change log
2018-05-09 13:02:31 +01:00
Richard Davey
89329a2315
Added getMaxTextures and getMaxTextureSize methods
2018-05-09 12:12:16 +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
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
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
672a535d88
Added disableInteractive and removeInteractive methods. #3621
2018-05-08 16:15:50 +01:00
Richard Davey
cfef9c97aa
Updated change log
2018-05-08 13:16:59 +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
ad6c08a4d0
Preparing for 3.7 release next week
2018-05-04 18:57:34 +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
faef3449f5
Added jsdocs
2018-05-04 16:00:02 +01:00