Commit graph

10668 commits

Author SHA1 Message Date
Richard Davey
a6ab61dd99 Fixed id use 2018-06-27 13:16:11 +01:00
Richard Davey
ee8e264d5e Return removed total 2018-06-27 13:16:01 +01:00
Richard Davey
2888fe94bd Tweak 2018-06-27 13:05:06 +01:00
Richard Davey
1bfe58ab55 remove can take an array of cameras and also no longer needs total to be > 0 2018-06-27 13:03:40 +01:00
Richard Davey
183f5c4260 CameraManager.getTotal is a new method that will return the total number of Cameras being managed, with an optional isVisible argument, that only counts visible cameras if set. 2018-06-27 12:45:54 +01:00
Richard Davey
88eb4f4ce9 The Pointer.camera property would only be set if there was a viable Game Object in the camera view. Now it is set regardless, to always be the Camera the Pointer interacted with. 2018-06-27 12:45:03 +01:00
Richard Davey
f2b7fd0a32 Removed the cameraX properties because they fall out of sync on camera remove 2018-06-27 12:13:37 +01:00
Richard Davey
da2b91b460 ArrayUtils.AddAt didn't calculate the array offset correctly if you passed an array in to be merged with an existing array. This also caused Container.addAt to fail if an array was passed to it. Fix #3788 2018-06-27 11:31:51 +01:00
Richard Davey
6cc7939870 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-27 11:20:28 +01:00
Richard Davey
d02d6532fd TileSprite was using the Size compontent instead of ComputedSize, meaning its getBounds and displayWidth and displayHeight results were incorrect. Fix #3789 2018-06-27 11:20:21 +01:00
Richard Davey
391dd4ca8c
Merge pull request #3790 from samme/fix/array-each
Fix extra argument passing in Array.Each
2018-06-27 11:13:22 +01:00
Richard Davey
c5f28f18f3
Merge pull request #3791 from photonstorm/mikewesthad-line-doc-fix
Line#getPointB documentation typo fix: "start" is used where "end" was intended
2018-06-27 11:12:28 +01:00
Richard Davey
2793fdea57
Merge pull request #3792 from DrevanTonder/master
fixed JsDoc for Phaser.Tilemaps.Tilemap#createBlankDynamicLayer
2018-06-27 11:11:49 +01:00
Andre van Tonder
32ff6df5b3 fixed JsDoc for Phaser.Tilemaps.Tilemap#createBlankDynamicLayer
x, y, width, height, tileWidth, tileHeight are all optional params

I also add x, y params to jsdoc  as they were missing
2018-06-27 10:33:35 +08:00
Michael Hadley
bf995c7000
Line#getPointB documentation typo fix: "start" is used where "end" was intended 2018-06-26 20:30:01 -05:00
samme
703f338348 args description 2018-06-26 15:58:51 -07:00
samme
bb29f0cdfc Fix context argument wrongly passed to callback 2018-06-26 15:57:49 -07:00
Richard Davey
7aa46657c2 Tidying up jsdocs and changing float to number 2018-06-26 23:19:14 +01:00
Richard Davey
0fdeec2e26 Updated docs 2018-06-26 17:43:05 +01:00
Richard Davey
c2fbad8356 Added jsdocs. Now 100% complete! 2018-06-26 17:24:51 +01:00
Richard Davey
ba9890e9f1 lint fix 2018-06-26 16:41:37 +01:00
Richard Davey
f1190529d2 ScenePlugin.start and ScenePlugin.restart will now always queue the op with the Scene Manager, regardless of the state of the Scene, in order to avoid issues where plugins carry on running for a frame before closing down. Fix #3776 2018-06-26 16:35:45 +01:00
Richard Davey
b95f980023 Added in data object passing to all relevant methods #3748 2018-06-26 16:08:14 +01:00
Richard Davey
1d4a15f297
Merge pull request #3748 from rook2pawn/wake-resume-data-from-run
[feat] scene.run can now pass data to .wake and .resume if it needs
2018-06-26 15:28:50 +01:00
Richard Davey
39a838fccc Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-25 22:53:44 +01:00
Richard Davey
bb7b99a4db Updated log and formatting 2018-06-25 22:53:42 +01:00
Richard Davey
dade336b29
Merge pull request #3782 from Upperfoot/hotfix/tile-culling
Account for position of tilemapLayer when culling tiles
2018-06-25 22:46:36 +01:00
Richard Davey
8391042ff9
Merge pull request #3783 from samme/feature/particle-emitter-stop
Add ParticleEmitter#stop()
2018-06-25 22:42:00 +01:00
Richard Davey
8af70d02d1
Merge pull request #3780 from TadejZupancic/patch-9
disableInteractive
2018-06-25 22:39:54 +01:00
Richard Davey
c6c9b25fdc Camera.alpha (and its related method Camera.setAlpha) allows you to get an alpha level for the entire camera. This impacts everything it is rendering, even if those objects also have their own alpha values too. You can tween the property to make the camera contents fade in / out, or you can set it as needed in your game. 2018-06-25 17:35:36 +01:00
Richard Davey
237368161b Added Camera.setAlpha method 2018-06-25 16:31:54 +01:00
Richard Davey
51468fdefc Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-25 16:25:42 +01:00
Richard Davey
90ba2608fa Added in Camera alpha support to all canvas renderers 2018-06-25 16:24:08 +01:00
Richard Davey
6dff47b71d Added Camera.alpha property 2018-06-25 16:11:09 +01:00
Richard Davey
d20188b75d Removed camera pool, renamed current ID and added accessor properties 2018-06-25 16:10:50 +01:00
Richard Davey
0c55745206 Updated log 2018-06-25 16:06:31 +01:00
Richard Davey
98b1cc2dbc Although the Blitter object had the Alpha component, setting it made no difference. Setting Blitter alpha now impacts the rendering of all children, in both Canvas and WebGL, and you can also specify an alpha per Bob as well. 2018-06-25 16:06:22 +01:00
Richard Davey
bcacfeb87c Bob.alpha was ignored by the canvas renderer, only working in WebGL. This has now been fixed. 2018-06-25 15:59:01 +01:00
Richard Davey
9a96785cf6 If the Blitter object has no Bob's to render it will now abort immediately, avoiding several context calls in Canvas mode. 2018-06-25 15:38:06 +01:00
Chris Andrew
3b3005926a Updated change log. 2018-06-24 00:55:57 +01:00
Craig Whiteside
375b1f8f18
Pulled out calculation for tile pixel position amended with tilemapLayer position 2018-06-23 21:20:54 +01:00
samme
bc2212c87d Add ParticleEmitter#stop() 2018-06-23 12:51:16 -07:00
Craig Whiteside
ac82e39314
Fix whitespace 2018-06-23 16:40:19 +01:00
Craig Whiteside
86f1cbcabf
Made it more specific to the tile offset. 2018-06-23 16:34:45 +01:00
Craig Whiteside
a73e47e508
Account for position of tilemapLayer when culling tiles 2018-06-23 16:28:45 +01:00
Richard Davey
6df877cfa3 Docs update 2018-06-23 12:33:20 +01:00
Richard Davey
e53f61d068 CameraManager.resetAll now destroys all current Cameras, resets the camera ID marker to 1 and adds a single new Camera. 2018-06-23 12:33:10 +01:00
Richard Davey
5a0fe89a7e Swap _id to id 2018-06-23 12:26:39 +01:00
Richard Davey
932737343b Added centerOn argument to setBounds and bumped Camera id to be public 2018-06-23 12:18:44 +01:00
Chris Andrew
173bbebbb8
Merge pull request #3747 from rook2pawn/queueOp-in-run
[fix] sceneManager .run will queueOp if scene not ready
2018-06-22 12:02:15 +01:00