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
Samid\Sami
84481da4d1
* Fix #3345 by adding beginPath and closePath when done drawing in postUpdate.
2018-03-08 11:16:04 +01:00
Richard Davey
0a9633cbd6
Preparing for 3.2.1.
2018-03-06 01:54:20 +00:00
Richard Davey
d1d8d4c4a2
Updated readme and change log
2018-03-05 22:26:12 +00:00
Richard Davey
159147f99a
Updated change log
2018-03-05 22:17:03 +00:00
Richard Davey
47736e71e7
Updated change log
2018-03-05 21:53:27 +00:00
Richard Davey
f94ad4bbc6
InputPlugin.update now takes the totals from the drag and pointerup events into consideration when deciding to fall through to the Scene below. Fix #3333
2018-03-05 21:49:00 +00:00
Richard Davey
387e5602e2
Updated change log
2018-03-05 14:52:51 +00:00
Richard Davey
e8fe6bc4b3
Change log update
2018-03-05 14:48:09 +00:00
Richard Davey
23285896c0
The HTML5 Sound Manager would unlock the Sound API on a touch event but only if the audio files were loaded in the first Scene, if they were loaded in a subsequent Scene the audio system would never unlock. It now unlocks only if there are audio files in the cache. Fix #3311
2018-03-05 13:39:08 +00:00
Richard Davey
f500e827c7
Updated change log
2018-03-05 12:43:50 +00:00
Richard Davey
9379714c57
Updated log
2018-03-05 02:39:33 +00:00
Richard Davey
8adecaa38e
Updated change log
2018-03-05 02:24:54 +00:00
Richard Davey
375db253f2
Quadratic Curve updates
...
* Quadratic Bezier Interpolation has been added to the Math.Interpolation functions
* A new Quadratic Bezier Curve class has been added, expanding the available Curve types
* Path.quadraticBezierTo allows you to add a Quadratic Bezier Curve into your Path.
2018-03-05 01:15:18 +00:00
Richard Davey
8cd37afb70
Updated change log
2018-03-05 00:21:00 +00:00
Richard Davey
95d85576c9
SceneManager.moveAbove and moveBelow added.
...
SceneManager.moveAbove will move a Scene to be directly above another Scene in the Scenes list. This is also exposed in the ScenePlugin.
SceneManager.moveBelow will move a Scene to be directly below another Scene in the Scenes list. This is also exposed in the ScenePlugin.
2018-03-02 18:25:44 +00:00
Richard Davey
25bc70f690
Updated change log
2018-03-02 17:48:52 +00:00
Richard Davey
4de9690f98
The setFrame
method of the Texture component has been updated so that it will now automatically reset the width
and height
of a Game Object to match that of the new Frame. Related, it will also adjust the display origin values, because they are size based. If the Frame has a custom pivot it will set the origin to match the custom pivot instead.
2018-03-02 16:23:43 +00:00
Richard Davey
98930de3a8
The SceneManager has a new method: remove
which allows you to remove and destroy a Scene, freeing up the Scene key for use by future scenes and potentially clearing the Scene from active memory for gc.
2018-03-02 03:50:55 +00:00
Richard Davey
19304c22d2
Updated change log
2018-03-01 02:50:12 +00:00
Richard Davey
acc4922027
Fixes to the InputPlugin re: drop zones and addition of setInteractive argument.
2018-03-01 02:46:17 +00:00
Richard Davey
ee42432c74
Texture.get has been optimized to fail first, then error, with a new falsey check. This allows you to skip out specifying animation frames in the animation config without generating a console warning.
2018-03-01 00:36:50 +00:00
Richard Davey
252a76f416
The Headless render mode has been implemented. You can now set HEADLESS as the renderType
in the Game Config and it will run a special game step that skips rendering. It will still create a Canvas element, as lots of internal systems (like input) rely on it, but it will not draw anything to it. Fix #3256
2018-02-28 21:57:32 +00:00
Richard Davey
a223b35ccf
Rectangle.top wouldn't reset the y
position if the value given never exceed the Rectangles bottom. Fix #3290 (thanks @chancezeus)
2018-02-28 21:25:55 +00:00
Richard Davey
a89be7abc5
Tween.complete will allow you to flag a tween as being complete, no matter what stage it is at. If an onComplete callback has been defined it will be invoked. You can set an optional delay before this happens (thanks @Jerenaux for the idea)
...
Fix #3280
2018-02-28 21:14:56 +00:00
Richard Davey
cc3a6964dd
Updated change log
2018-02-28 14:36:26 +00:00
Richard Davey
8ae3493296
setText updates
...
BitmapText.setText will check if the value given is falsey but not a zero and set to an empty string if so.
BitmapText.setText will now cast the given value to a string before setting.
BitmapText.setText will not change the text via `setText` unless the new text is different to the old one.
2018-02-27 15:14:03 +00:00