Commit graph

329 commits

Author SHA1 Message Date
Richard Davey
fc4fdc4e3c Preparing for 3.6.1 2018-04-19 22:47:10 +01:00
Richard Davey
75b250ba5b 3.6.0 Release 2018-04-19 14:45:54 +01:00
Richard Davey
cfc4528370 Containers no longer in beta. 2018-04-19 14:35:17 +01:00
Richard Davey
305ffdf840 Updated change log 2018-04-19 14:28:22 +01:00
Richard Davey
3d0be3e20c Group.remove and clear have optional destroyChild arguments 2018-04-19 14:13:46 +01:00
Richard Davey
176b085402 jsdoc fix 2018-04-19 13:28:10 +01:00
Richard Davey
f2c629c588 Updated change log 2018-04-18 22:46:49 +01: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
Richard Davey
c391662faa Updated log and changed version 2018-04-18 13:29:15 +01:00
Richard Davey
6772a548dc Preparing for 3.6.0 2018-04-17 20:55:47 +01:00
Richard Davey
765730c4b6 3.5.1 Release 2018-04-17 20:51:31 +01:00
Richard Davey
152a01731b Updated log 2018-04-17 18:17:50 +01:00
Richard Davey
89c9da54ac Added more contributors 2018-04-17 17:04:43 +01:00
Richard Davey
8eef87b858 Log update 2018-04-17 16:00:02 +01:00
Richard Davey
d8c519c88c Updated change log 2018-04-17 02:37:56 +01:00
Richard Davey
07a55e5d1f Removed debug call and merged Scene Systems boot and start sequences. Fix #3579 2018-04-17 02:34:07 +01:00
Richard Davey
1eff0b2889 Phaser 3.5.0 Build 2018-04-16 19:44:39 +01:00
Richard Davey
5ccac599a6 Updated docs and destroy properties 2018-04-16 17:14:12 +01:00
Richard Davey
b28a7276f4 Fixed Game.destroy 2018-04-16 17:02:32 +01:00
Richard Davey
c37c6365d3 The RandomDataGenerator class is now exposed under Phaser.Math should you wish to instantiate it yourself. Fix #3576 2018-04-16 16:07:52 +01:00
Richard Davey
ccb2ed5f50 Updated change log 2018-04-15 23:45:59 +01:00
Richard Davey
ccf72228e3 Updated change log 2018-04-15 23:34:01 +01:00
Richard Davey
e8d50a9796 Explained changes to cameras 2018-04-15 13:00:43 +01:00
Richard Davey
ce7d67297f Moving from 3.4.1 to 3.5.0 so we can release new camera fx and scene transitions 2018-04-15 12:44:47 +01:00
Richard Davey
02be81cc48 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-15 05:05:09 +01:00
Richard Davey
ae603240e1 Camera.cullHitTest has been removed. It was never used internally and duplicates the code in Camera.cull. 2018-04-15 04:01:39 +01:00
Pavle Goloskokovic
8b2473104e Fixes #3309 2018-04-14 19:04:50 +02:00
Richard Davey
06e5fc0336 Camera extends Event Emitter and moved to effect based system 2018-04-14 12:35:14 +01:00
Richard Davey
b5ba6a6afb Added enabled property 2018-04-14 04:23:11 +01:00
Richard Davey
a01535ea78 Group.add and Group.addMultiple now respect the Group.maxSize property, stopping you from over-populating a Group. 2018-04-13 17:59:29 +01:00
Richard Davey
f53430ec54 Log update 2018-04-13 17:52:28 +01:00
Richard Davey
7aad8afa02 Log update 2018-04-13 17:21:34 +01:00
Richard Davey
59bc9dd0d9 Added GameObject.ignoreDestroy 2018-04-13 17:20:46 +01:00
Richard Davey
6b2307594a Scene plugin flow overhaul
Every Plugin has been updated to correctly follow the same flow through the Scene lifecycle. Instead of listening for the Scene 'boot' event, which is only dispatched once (when the Scene is first created), they will now listen for the Scene 'start' event, which occurs every time the Scene is started. All plugins now consistently follow the same Shutdown and Destroy patterns too, meaning they tidy-up after themselves on a shutdown, not just a destroy. Overall, this change means that there should be less issues when returning to previously closed Scenes, as the plugins will restart themselves properly.
2018-04-13 17:12:17 +01:00
Richard Davey
c8bbea552d Fixed issue in HTMLAudioSound where mute would get into a recursive loop. 2018-04-13 12:53:03 +01:00
Richard Davey
623df29522 The Scene Manager would never reach an isBooted state if you didn't add any Scenes into the Game Config. Fix #3553 2018-04-13 12:24:02 +01:00
Richard Davey
a193210171 Log update 2018-04-13 12:16:21 +01:00
Richard Davey
e99f2e78e4 Updated log 2018-04-13 12:10:03 +01:00
Richard Davey
8afa6c9c7f MatterEvents.off() would cause a TypeError if you destroyed the Matter world. Fix #3562 2018-04-13 12:07:27 +01:00
Richard Davey
9774b6ee37 Updated change log 2018-04-12 23:12:34 +01:00
Richard Davey
1802f8b30b GetBounds getTopLeft, getTopRight, getBottomLeft and getBottomRight all have a new optional argument includeParent which will factor in all ancestor transforms to the returned point. 2018-04-12 17:42:16 +01:00
Richard Davey
ad4109aece Updated sortHandlerGO to handle any depth containers. 2018-04-12 02:11:40 +01:00
Richard Davey
53425bdae9 Matter Image and Matter Sprite didn't define a destroy method, causing an error when trying to destroy the parent Game Object. Fix #3516 2018-04-11 14:35:18 +01:00
Richard Davey
70c7732a1e When shutting down a Matter World it will now call MatterEvents.off, clearing all events, and also removeAllListeners for any local events. 2018-04-11 14:00:58 +01:00
Richard Davey
011e67d0f0 The Matter SetBody Component will no longer try to call setOrigin unless the Game Object has the origin component (which not all do, like Graphics and Container) 2018-04-11 13:47:22 +01:00
Richard Davey
ffd1d218e6 Rectangle.Union will now cache all vars internally so you can use one of the input rectangles as the output rectangle without corrupting it. 2018-04-11 12:44:37 +01:00
Richard Davey
28744bd0a3 Updated change log 2018-04-11 11:25:40 +01:00
Richard Davey
7aae84a790 Calling Impact.World.remove(body) during a Body.updateCallback would cause the internal loop to crash when trying to access a now missing body. Two extra checks are in place to avoid this 2018-04-11 10:39:20 +01:00
Richard Davey
f425cfb925
Merge branch 'master' into scene-config-for-add-map 2018-04-11 10:28:28 +01:00
Richard Davey
fc6a7e84f7 Updated Change Log 2018-04-11 10:22:44 +01:00
Richard Davey
2df61ab96b
Merge pull request #3543 from rexrainbow/master
Add 'destroy' event of sound object
2018-04-11 10:14:55 +01:00
Richard Davey
3e223211aa Updated log 2018-04-11 10:12:31 +01:00
Hua
978c179054 Add description of this PR 2018-04-11 16:35:17 +08:00
Richard Davey
97cd94b3de Updated log 2018-04-11 02:18:30 +01:00
Richard Davey
c5cc126a6e Updated change log 2018-04-10 15:55:06 +01:00
Richard Davey
bf81a7dd06 TransformMatrix.destroy is a new method that will clear out the array and object used by a Matrix internally. 2018-04-10 15:20:50 +01:00
Richard Davey
330eac1ebc List is now internally using all of the new Utils.Array functions. 2018-04-10 04:00:39 +01:00
Sebastian Warmbrunn
5d1405c4d9 Add change to CHANGELOG.md
This adds a description of the new scene config option
mapAdd to the changelog.
2018-04-09 21:40:05 +02:00
Richard Davey
3c5d3db267 Testing exclusive setting 2018-04-09 17:33:55 +01:00
Richard Davey
5f9972c791 LoaderPlugin.isReady referenced a constant that no longer exists. Fix #3503 2018-04-09 13:55:41 +01:00
Richard Davey
833355a9a4 Tween.resume will now call Tween.play on a tween that was paused due to its config object, not as a result of having its paused method called. Fix #3452 2018-04-09 13:25:20 +01:00
Richard Davey
7a02cac739 Updated change log 2018-04-09 12:57:55 +01:00
Richard Davey
825d7d8a76
Merge branch 'master' into master 2018-04-09 10:27:13 +01:00
Richard Davey
6ae000a5a0 Updated change log 2018-04-09 10:24:31 +01:00
Richard Davey
c358434754 Updated log 2018-04-07 17:04:48 +01:00
Richard Davey
b3a20d475a Removed null and updated log 2018-04-07 16:18:48 +01:00
Richard Davey
fa43b8c4ef Updated change log 2018-04-07 15:57:53 +01:00
Richard Davey
c6a9b0e3ba Change Log updated 2018-04-07 12:35:34 +01:00
Richard Davey
e31cae93d2 Tilemap Layers should use the ComputedSize component 2018-04-05 14:43:07 +01:00
Richard Davey
7fbb055528 Updated 2018-04-05 13:52:30 +01:00
Richard Davey
34b236df41 Vector2.setTo is a method alias for Vector2.set allowing it to be used inter-changeably with Geom.Point. 2018-04-05 11:24:56 +01:00
Richard Davey
44f7993fb0 Updated change log 2018-04-05 08:52:50 +01:00
Richard Davey
4466f28e44 Updated log 2018-04-05 08:48:35 +01:00
Richard Davey
f98107bb88 Updated change log 2018-04-04 17:18:53 +01:00
Richard Davey
e734e7ef6b Extensive Animation API changes to use milliseconds, improve docs and access to properties 2018-04-04 16:13:45 +01:00
Richard Davey
552cfe3c5e Animation Component overhaul 2018-04-04 14:44:09 +01:00
Richard Davey
51d29b818d Animation.updateFrame will now call setSizeToFrame on the Game Object, which will adjust the Game Objects width and height properties to match the frame size. Fix #3473 2018-04-04 13:14:41 +01:00
Richard Davey
af12eaac77
Merge branch 'master' into FR3472 2018-04-04 11:28:58 +01:00
Richard Davey
dac030dd3e Graphics.slice allows you to easily draw a Pacman, or slice of pie shape to a Graphics object. 2018-04-04 11:13:19 +01:00
Richard Davey
0c200054b6 LineCurve.getResolution was missing the divisions argument and always returning 1, which made it fail when used as path of a Path. It now defaults to return 1 unless specified otherwise 2018-04-04 10:29:12 +01:00
Richard Davey
3546aa08f1 Updated log 2018-04-03 23:56:18 +01:00
Richard Davey
0b51671cb0 Updated change log 2018-04-03 17:30:21 +01:00
Richard Davey
11512e1db2 Keyboard.JustDown and Keyboard.JustUp were being reset too early, causing them to fail when called in update loops. Fix #3490 2018-04-03 16:33:13 +01:00
Richard Davey
d838097763 Game.destroy now checks to see if the renderer exists before calling destroy on it. Fix #3498 2018-04-03 15:41:02 +01:00
Richard Davey
d80cccc7f0 Updated change log 2018-04-03 15:32:08 +01:00
Richard Davey
316da3f2d9 jsdocs update. Fix #3477 2018-04-03 14:08:22 +01:00
Travis O'Neal
2ec70cac48 Added a letterSpacing property to BitmapText 2018-04-02 09:42:24 -04:00
Richard Davey
48bdaa90b2 Updated change log 2018-03-31 02:39:58 +01:00
Travis O'Neal
56a78abf12 Adds kerning property to BitmapText 2018-03-30 13:59:55 -04:00
Travis O'Neal
d6265a59dd Initial Commit 2018-03-30 13:46:44 -04:00
Travis O'Neal
bf2510bfab Tween.Restart handles removed tweens properly and readds them back into the 2018-03-30 11:27:16 -04:00
Richard Davey
89c963c19c Ignore consts 2018-03-30 14:38:58 +01:00
Richard Davey
0b7c2597c4 Updated change log 2018-03-30 13:51:40 +01:00
Richard Davey
71045265ae The Gamepad Axis getValue method now correctly applies the threshold and zeroes out the returned value. 2018-03-30 12:33:45 +01:00
Richard Davey
2540b75b88 Updated change log 2018-03-30 12:03:42 +01:00
Richard Davey
562344fed0 The ComputedSize Component now has setSize and setDisplaySize methods. This component is used for Game Objects that have a non-texture based size. 2018-03-29 12:55:28 +01:00
Richard Davey
88b02a5e35 Renamed the Camera Controls module exports for Fixed to FixedKeyControl and Smoothed to SmoothedKeyControl to match the class names. Fix #3463 2018-03-28 16:24:06 +01:00
Richard Davey
2b533d9870 Renamed file 2018-03-28 15:03:54 +01:00
Richard Davey
2868b8b588 Added new chainable methods: setRate, setMute, setVolume, setSeek, setDune 2018-03-28 14:14:07 +01:00
Richard Davey
e7a1e3190a Matter Physics timestep adjustments (getDelta, step, set60Hz, etc)
* Matter Physics now has a new config property `getDelta` which allows you to specify your own function to calculate the delta value given to the Matter Engine when it updates.
* Matter Physics has two new methods: `set60Hz` and `set30Hz` which will set an Engine update rate of 60Hz and 30Hz respectively. 60Hz being the default.
* Matter Physics has a new config and run-time property `autoUpdate`, which defaults to `true`. When enabled the Matter Engine will update in sync with the game step (set by Request Animation Frame). The delta value given to Matter is now controlled by the `getDelta` function.
* Matter Physics has a new method `step` which manually advances the physics simulation by one iteration, using whatever delta and correction values you pass in to it. When used in combination with `autoUpdate=false` you can now explicitly control the update frequency of the physics simulation and unbind it from the game step.
2018-03-27 15:15:05 +01:00
Richard Davey
933e193ccf Group.destroy has a new optional argument destroyChildren which will automatically call destroy on all children of a Group if set to true (the default is false, hence it doesn't change the public API). Fix #3246 2018-03-27 01:09:30 +01:00
Samid\Sami
74d43b2707 update changelog 2018-03-25 10:51:47 +02:00
Richard Davey
2cd7da0126 The RenderTexture now uses the ComputedSize component instead of Size (which requires a frame), allowing calls to getBounds to work. Fix #3451 2018-03-23 10:00:25 +00:00
Richard Davey
574221d6cf A new property was added to Matter.World, correction which is used in the Engine.update call and allows you to adjust the time being passed to the simulation. The default value is 1 to remain consistent with previous releases. 2018-03-23 02:19:18 +00:00
Richard Davey
889014e409 Updated change log 2018-03-22 15:09:01 +00:00
Richard Davey
6fe6a165be Preparing for 3.3.1 2018-03-22 14:39:29 +00:00
Richard Davey
a03b60193c Updated log and readme 2018-03-22 13:27:12 +00:00
Richard Davey
c0ec42dc2b Added setRate, setDetune and renamed setRate to calculateRate 2018-03-21 16:43:08 +00:00
Richard Davey
2433844cd3 Added setVolume and setMute 2018-03-21 14:54:23 +00:00
Richard Davey
645c03f2e9 Added setRate and setDetune methods 2018-03-21 14:40:07 +00:00
Richard Davey
3f0ee709f0 Renamed methods to avoid confliction with Animation component 2018-03-21 14:09:30 +00:00
Richard Davey
5cae6d38b3 Matter.SetBody and SetExistingBody will now set the origin of the Game Object to be the Matter JS sprite.xOffset and yOffset values, which will auto-center the Game Object to the origin of the body, regardless of shape. 2018-03-21 03:16:01 +00:00
Richard Davey
d329724ae5 Added the ComputedSize component to the Text Game Object, which allows Text.getBounds, and related methods, to work again instead of returning NaN. 2018-03-20 19:00:48 +00:00
Richard Davey
b6f2c80ae6 Groups will now listen for a destroy event from any Game Object added to them, and if received will automatically remove that GameObject from the Group. Fix #3418 2018-03-20 01:08:45 +00:00
Richard Davey
cb5b12e9d3 The GameObject destroy event is now emitted at the start of the destroy process, before things like the body or input managers have been removed, so you're able to use the event handler to extract any information you require from the GameObject before it's actually disposed of. Previously, the event was dispatched at the very end of the process. 2018-03-20 01:05:53 +00:00
Richard Davey
07ec73774b Updated change log 2018-03-20 00:36:33 +00:00
Richard Davey
64fdbc3040 Graphics.alpha was being ignored in the WebGL renderer and is now applied properly to strokes and fills. Fix #3426 2018-03-20 00:27:39 +00:00
Richard Davey
75bb9d92a9 Camera.fadeIn is a new method that will fade the camera in from a given color (black by default) and then optionally invoke a callback. This is the same as using Camera.flash but with an easier to grok method name. Fix #3412 2018-03-20 00:10:55 +00:00
Richard Davey
490aa2838d Updated change log 2018-03-19 23:32:36 +00:00
Richard Davey
968dc05eae Triangle.getLineA/B/C now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one. 2018-03-19 16:51:39 +00:00
Richard Davey
917dc8f8be Rectangle.getLineA/B/C/D now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one. 2018-03-19 16:47:34 +00:00
Richard Davey
034161bd66 Line.getPointA and Line.getPointB now return Vector2 instances instead of un-typed objects. 2018-03-19 16:34:22 +00:00
Richard Davey
6c5e1ba15e Updated change log 2018-03-17 17:51:51 +00:00
Richard Davey
4a9f46c0c0 Updated change log 2018-03-17 17:51:34 +00:00
Richard Davey
ccbf399dc2 Actions.GetLast will return the last element in the items array matching the conditions. 2018-03-17 17:16:11 +00:00
Richard Davey
46e9dbd05a Fixed left / right rotation and exposed via namespace
Phaser.Utils.Array.Matrix.RotateLeft actually rotated to the right (thanks @Tomas2h)
Phaser.Utils.Array.Matrix.RotateRight actually rotated to the left (thanks @Tomas2h)
2018-03-17 17:03:15 +00:00
Richard Davey
b2d062b0bd LoaderPlugin.progress and the corresponding event now factor in both the list size and the inflight size when calculating the percentage complete. Fix #3384 2018-03-16 15:01:39 +00:00
Richard Davey
b6b03b85bd The InputPlugin.processOverOutEvents method wasn't correctly working out the total of the number of objects interacted with, which caused input events to be disabled in Scenes further down the scene list if something was being dragged in an upper scene. Fix #3399 2018-03-16 14:57:19 +00:00
Richard Davey
4ab98eb492 The TweenManager will now check the state of a tween before playing it. If not in a pending state it will be skipped. This allows you to stop a tween immediately after creating it and not have it play through once anyway. Fix #3405 2018-03-16 14:31:49 +00:00
Richard Davey
a524dc44b0 Expose constants. Fix #3387 2018-03-16 13:29:30 +00:00
Richard Davey
a7b8d754d6 Updated change log 2018-03-16 13:10:47 +00:00
Richard Davey
ee1e4f1e90 InputManager.hitTest will now factor the game resolution into account, stopping the tests from being offset if resolution didn't equal 1. #3376 2018-03-16 12:49:02 +00:00
Richard Davey
aa8a4524b6 Updated log 2018-03-16 12:39:01 +00:00
Richard Davey
36f5ca47a9 Added new config values
* Game.Config.preserveDrawingBuffer is now passed to the WebGL Renderer (default `false`).
* Game.Config.failIfMajorPerformanceCaveat is now passed to the WebGL Renderer (default `false`).
* Game.Config.powerPreference is now passed to the WebGL Renderer (default `default`).
* Game.Config.pixelArt is now passed to the WebGL Renderer as the antialias context property (default `false`).
2018-03-15 21:15:12 +00:00
Richard Davey
00a5ce9a03 Preparing for 3.3.0 2018-03-13 13:21:34 +00:00
Richard Davey
1de47dfe1b Updated change log 2018-03-12 16:38:28 +00:00
Richard Davey
247e8b9337 Text.setFixedSize was incorrectly setting the text property instead of the parent property. Fix #3375 2018-03-12 16:34:21 +00:00
Richard Davey
036bb2d17b Updated change log 2018-03-12 16:30:01 +00:00
Richard Davey
046e47aa38 Updated 2018-03-12 16:13:07 +00:00
Richard Davey
0368473b95 The SetFrame method now has two optional arguments: updateSize and updateOrigin (both true by default) which will update the size and origin of the Game Object respectively. Fix #3339 2018-03-12 14:45:18 +00:00
Richard Davey
33cbb067b4 Phaser.Display.Color.Interpolate would return NaN values because it was loading the wrong Linear function. Fix #3372 2018-03-12 13:41:09 +00:00
Richard Davey
edf1aa7cc1 The onContextRestored callback won't be defined any more unless the WebGL Renderer is in use in the following objects: BitmapMask, Static Tilemap, TileSprite and Text. This should allow those objects to now work in HEADLESS mode. Fix #3368 2018-03-12 13:37:13 +00:00
Richard Davey
063d30602e The ForwardDiffuseLightPipeline now uses sys.lights instead of the Scene variable to avoid errors due to injection removal. 2018-03-12 12:55:09 +00:00
Richard Davey
bc88401dff Updated change log 2018-03-12 12:08:49 +00:00
Richard Davey
935a89342d Calling setText on a BitmapText object will now recalculate its display origin values. Fix #3350 2018-03-09 17:08:12 +00:00
Richard Davey
9203d3b7a7 Updated change log 2018-03-09 16:30:26 +00:00
Richard Davey
852e74721f
Merge branch 'master' into master 2018-03-09 15:44:19 +00:00
Richard Davey
ef66eef129 Updated change log 2018-03-09 15:42:20 +00:00
Richard Davey
db3112de31 The SceneManager.render will now render a Scene as long as it's in a LOADING state or higher. Before it would only render RUNNING scenes, but this precluded those that were loading assets. 2018-03-09 15:33:07 +00:00
Samid\Sami
6283209976 username corrected. 2018-03-08 13:56:57 +01:00