Commit graph

9348 commits

Author SHA1 Message Date
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
fbec8f978c You can now specify all of the renderer config options within a render object in the config. If no render object is found, it will scan the config object directly for the properties. 2018-03-16 13:22:52 +00:00
Richard Davey
bce89313c1 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-16 13:10:51 +00:00
Richard Davey
a7b8d754d6 Updated change log 2018-03-16 13:10:47 +00:00
Richard Davey
1304e0066c Correct config property 2018-03-16 13:10:41 +00:00
Richard Davey
64c1ec1e2d
Merge pull request #3360 from allanbreyes/fix/timeline.resetTweens
Fix error when calling `timeline.resetTweens()`
2018-03-16 13:04:58 +00:00
Richard Davey
a6d742227c
Merge pull request #3394 from stuff/patch-2
pass data to the manager queue when starting a scene
2018-03-16 13:00:25 +00:00
Richard Davey
7a8e4cf5e1
Merge pull request #3366 from samme/feature/world-wrap
Add Arcade.World wrap methods and Actions.WrapInRectangle
2018-03-16 12:58:16 +00:00
Richard Davey
053d7e14b1
Merge pull request #3398 from bigbozo/zoomed-camera-tilemap
Fixed Tile-Culling for Zoomed Camera
2018-03-16 12:56:14 +00:00
Richard Davey
24eec0ccd0
Merge pull request #3365 from samme/feature/tilesprite-settileposition
Add Phaser.GameObjects.TileSprite#setTilePosition
2018-03-16 12:55:03 +00:00
Richard Davey
e850ddcb72
Merge pull request #3397 from bigbozo/master
Fix [CameraManager].getCamera(<name>)
2018-03-16 12:53:04 +00:00
Richard Davey
19ea528c99
Merge pull request #3392 from samme/feature/group-create-active
Add `active` to Group create methods
2018-03-16 12:51:21 +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
77357dbde0 jsdoc fix #3377 2018-03-16 12:39:39 +00:00
Richard Davey
9676205403 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-16 12:39:07 +00:00
Richard Davey
aa8a4524b6 Updated log 2018-03-16 12:39:01 +00:00
Richard Davey
bd40c7844d
Merge pull request #3377 from jmcriat/patch-1
set default gamepad button threshold to 1
2018-03-16 12:38:36 +00:00
Richard Davey
588b8f79a3
Merge pull request #3393 from samme/feature/createSceneFromObject
Remove 'shutdown' and 'destroy' callbacks in createSceneFromObject
2018-03-16 12:34:36 +00:00
Richard Davey
c9ad488b18
Merge pull request #3403 from rexrainbow/master
Fix bug in data.merge()
2018-03-16 12:33:13 +00:00
Richard Davey
cac7aea9ca
Merge pull request #3401 from pixelpicosean/fix-arcade-circle-debug-draw
Fix arcade circle debug draw
2018-03-16 12:31:50 +00:00
Richard Davey
66c40dda69 eslint fix 2018-03-16 12:30:39 +00:00
Hua
f16cf72826 Fix bug
Copy value of key, instead of the reference of data object
2018-03-16 16:57:25 +08:00
Sean Bohan
4cde28fecd Forgot to devide width by 2 2018-03-16 14:02:41 +08:00
Sean Bohan
72e82ecf48 Fix debug draw of scaled arcade body 2018-03-16 14:02:41 +08:00
Richard Davey
dd4e00007f Added antialias config value 2018-03-16 00:52:21 +00:00
Richard Davey
78b72c55be Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-16 00:46:42 +00:00
Richard Davey
1fea31bac8 Fixed package names 2018-03-16 00:46:39 +00:00
Felipe Alfonso
2238a132e2 Context Creationg Config attributes are default to Khronos spec for webgl context creation 2018-03-15 19:55:52 -03:00
Richard Davey
0c1c16deba Used new config values, fixed eslint formatting and floored dimensions 2018-03-15 21:15:39 +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
Bugi Görtz
077d933bbb Fixed Tile-Culling for Zoomed Camera
The fix from https://github.com/photonstorm/phaser/pull/3354/ leads to some tiles getting culled when camera is zoomed as the camera.scrollX/camera.scrollY-Properties are needed in unscaled Coordinates (World-Coordinates?) in CullTile.js

Error gets bigger with distance from (0|0)
2018-03-15 20:32:09 +01:00
Richard Davey
d286a932cd Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-15 17:27:33 +00:00
Richard Davey
19a17bcf63 Updating docs 2018-03-15 17:27:30 +00:00
Bugi Görtz
b977f096f8 fixed getCamera in CameraManager (2d/3d) to work correctly; forEach()-iterator doesn't return values
(https://hacks.mozilla.org/2015/04/es6-in-depth-iterators-and-the-for-of-loop/)
2018-03-15 17:12:06 +01:00
Bugi Görtz
5af8e745d1 fixed getCamera in CameraManager to work correctly; forEach()-construct can't return values
(https://hacks.mozilla.org/2015/04/es6-in-depth-iterators-and-the-for-of-loop/)
2018-03-15 16:58:05 +01:00
Michael Hadley
d966aaa412
Fixes #3395 2018-03-15 06:22:22 -05:00
Nicolas Challeil
53de26e572
pass data to the manager queue 2018-03-14 23:52:00 +01:00
samme
55ccf7f026 Remove unused callbacks in createSceneFromObject
Phaser never calls 'shutdown' or 'destroy' methods.
2018-03-14 13:28:04 -07:00
samme
731b006ec3 Add active to Group create methods
- Adds `active=true` argument to Group#create
- Adds `active=true` config value to Group#createMultiple etc.
2018-03-14 12:22:08 -07:00
Richard Davey
1d23aad976 TextStyle has two new properties: baselineX and baselineY which allow you to customize the 'magic' value used in calculating the text metrics. 2018-03-13 13:21:51 +00:00
Richard Davey
00a5ce9a03 Preparing for 3.3.0 2018-03-13 13:21:34 +00:00
José Maria
128691b50d
set default gamepad button threshold to 1
this.threshold = 0  was making all gamepad buttons to be always pressed down (this.pressed = true). 
this.threshold = 1 will correct the issue and in the case of analogue buttons it will only emit the event when the 'pressure' is at max.
2018-03-12 14:04:04 -03:00
Richard Davey
22901a1b05 3.2.1 build 2018-03-12 16:42:17 +00:00
Richard Davey
562730e225 Updated for 3.2.1 2018-03-12 16:40:26 +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
Allan Reyes
a08c75bb06 Delegate Timeline#makeActive to TweenManager
This fixes a bug when calling Timeline#resetTweens() while the tweens
are pending removal or completed. Delegating the #makeActive method
here was chosen to:
- Follow "tell, don't ask" (pragprog.com/articles/tell-dont-ask)
- Prevent an additional branch conditional in Tween.js
- Prevent a Law of Demeter violation, e.g.

        // src/tweens/tween/Tween.js
        if (this.parentIsTimeline) // "asking"
        {
            this.parent.manager.makeActive(this); // LoD violation
        }
        else
        {
            this.parent.makeActive(this);
        }
2018-03-12 09:31:00 -07:00