Commit graph

1203 commits

Author SHA1 Message Date
Richard Davey
6ccb0f2dc4 Accepts optional children array 2018-04-05 13:52:24 +01:00
Richard Davey
e0f95bb3fa Now using proper array 2018-04-05 13:52:11 +01:00
Richard Davey
ba4693d140 jsdoc fix 2018-04-05 13:51:37 +01:00
Richard Davey
85671883e8 Tidying up 2018-04-05 11:25:22 +01:00
Richard Davey
c1517d60ed eslint fixes 2018-04-05 09:28:04 +01:00
Richard Davey
054ceafae0 Added jsdocs to Container and made add support arrays 2018-04-05 09:23:29 +01:00
Richard Davey
4f6239dadb jsdoc and eslint fixes 2018-04-05 09:02:36 +01:00
Felipe Alfonso
e02efcfeb3 Merge branch 'master' into containers 2018-04-04 14:06:24 -03:00
Felipe Alfonso
c232642a52 Parent matrix is applied to canvas context on each draw function 2018-04-04 14:05:59 -03:00
Richard Davey
9f9c7dea61 Added setProgress 2018-04-04 17:19:02 +01:00
Felipe Alfonso
eafb488e25 Merge branch 'master' into containers 2018-04-04 13:15:42 -03:00
Felipe Alfonso
96b8db4685 Added parentMatrix to all canvas rendering functions 2018-04-04 13:14:55 -03:00
Felipe Alfonso
7b275e2c62 DrawImage works with parent matrix 2018-04-04 12:31:45 -03:00
Richard Davey
fa2320238e More jsdocs fixes and staggerPlay fix 2018-04-04 16:27:33 +01:00
Felipe Alfonso
5026566084 Container Canvas Rendering function 2018-04-04 12:22:10 -03: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
Felipe Alfonso
bea7ca36ad Merge branch 'master' into containers
# Conflicts:
#	src/renderer/webgl/pipelines/TextureTintPipeline.js
2018-04-04 12:07:41 -03:00
Richard Davey
552cfe3c5e Animation Component overhaul 2018-04-04 14:44:09 +01:00
Richard Davey
c251eceaf6 jsdoc fixes 2018-04-04 14:43:53 +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
96507beda1 Added setLetterSpacing method and exported value in toJSON (#3480) 2018-04-04 11:34:39 +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
Felipe Alfonso
198180fec6 Fixed issue https://github.com/photonstorm/phaser/issues/3475 2018-04-03 12:03:02 -03:00
Travis O'Neal
2ec70cac48 Added a letterSpacing property to BitmapText 2018-04-02 09:42:24 -04:00
Travis O'Neal
43ea5f239c
Updated @since to the appropriate version 2018-03-30 14:07:28 -04:00
Travis O'Neal
d6265a59dd Initial Commit 2018-03-30 13:46:44 -04:00
Felipe Alfonso
749a69c387 Merge branch 'master' into containers 2018-03-30 11:50:54 -03:00
Antriel
630732f9fc jsdoc generics fix 2018-03-30 14:43:58 +02:00
Felipe Alfonso
4f8ddd73bb Merge branch 'master' into containers 2018-03-29 12:35:40 -03:00
Felipe Alfonso
0186e122a6 If a container is nested the parentContainer property is setted 2018-03-29 12:34:23 -03:00
Richard Davey
37589ffe00 jsdoc updates 2018-03-29 15:12:32 +01:00
Richard Davey
cef9050627 jsdoc fixes 2018-03-29 14:53:06 +01:00
Richard Davey
e7191e9d8e jsdoc updates 2018-03-29 13:48:14 +01:00
Richard Davey
91008232ad jsdoc fixes 2018-03-29 13:12:07 +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
fba8183d94 Fixed docs order 2018-03-29 12:54:33 +01:00
Richard Davey
aec64c635e Removed floats 2018-03-29 12:54:12 +01:00
Felipe Alfonso
e0f678d1ff Merge branch 'master' into containers 2018-03-28 20:49:00 -03:00
Felipe Alfonso
88ed9bd3b8 transform to container space 2018-03-28 20:47:57 -03:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
Richard Davey
15c4334dc7 jsdoc fixes 2018-03-28 14:11:46 +01:00
Richard Davey
f10efda8f0 font is non-optional, so removed coordinates as optional 2018-03-28 12:05:03 +01:00
Felipe Alfonso
b23ad3b130 Fixed issue with creating containers and graphics with scene.make. 2018-03-27 17:32:33 -03:00
Felipe Alfonso
d544701495 parentMatrix added to individual game object render function 2018-03-27 14:49:09 -03:00
orblazer
ae0b3b841b Fix types on GameObjects 2018-03-27 14:52:58 +02:00
Felipe Alfonso
9a2ec4225a Merge branch 'master' into containers 2018-03-26 21:17:07 -03:00
Richard Davey
1f44366bc7 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-27 01:09:34 +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
Richard Davey
25cbb320a5
Merge pull request #3453 from orblazer/genericTypes
Change structs for generic types
2018-03-27 00:37:34 +01:00
Felipe Alfonso
f6eef58608 Merge branch 'master' into containers 2018-03-26 19:57:11 -03:00
Felipe Alfonso
eac2b8338e parentTransformMatrix argument added to texture pipeline 2018-03-26 17:23:18 -03:00
Samid\Sami
20b9930335 Fix calling non existing start() instead of startFollow() in setPath(config) 2018-03-25 10:44:24 +02:00
Felipe Alfonso
5bcd12fcb7 Base container rendering + sprite batching with parent matrix 2018-03-23 14:15:52 -03:00
orblazer
f42f1bf132 Change structs for generic types 2018-03-23 16:54:12 +01: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
04b5985724
Merge pull request #3445 from delftswa2018/3385-Rendertexture-alpha-not-changing-in-WEBGL-mode
Fix changing alpha in RenderTextureWebGLRenderer
2018-03-22 14:52:14 +00:00
Gerard van Alphen
78c1e86021 Fix changing alpha in RenderTextureWebGLRenderer 2018-03-22 14:58:41 +01:00
Richard Davey
5816b863fa Removed TransformNode so it doesn't break the 3.3 CI build 2018-03-22 13:19:52 +00:00
Richard Davey
0ef92e1172 Merge branch 'pr/3439' 2018-03-21 16:06:56 +00:00
Richard Davey
8e7944a1b4 Updated EventEmitter reference 2018-03-21 14:09:58 +00:00
Richard Davey
3f0ee709f0 Renamed methods to avoid confliction with Animation component 2018-03-21 14:09:30 +00:00
orblazer
439df07fd5 Fix "object" type on GameObjects and Input 2018-03-21 12:19:31 +01:00
Richard Davey
db613c793a Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-21 03:17:00 +00:00
Richard Davey
786d181a91 Sorted the components 2018-03-21 03:16:49 +00:00
orblazer
4f7f2b8981 Fix RemoveCallback call on Group 2018-03-21 00:32:13 +01:00
orblazer
5a518f2e5f Fix "object" types on Camera and GameObjecs 2018-03-20 23:28:26 +01: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
28206e872f
Merge pull request #3433 from orblazer/fix-types
Fix "any" types
2018-03-20 16:28:43 +00:00
orblazer
7fba122321 Fix "any" types 2018-03-20 17:15:49 +01:00
Richard Davey
31bf979eb2
Merge pull request #3432 from orblazer/fix-types
Fix nullable and multiple types
2018-03-20 15:31:17 +00:00
Felipe Alfonso
701d43b3c3 TransformNode Implemented for nested transformations 2018-03-20 12:15:14 -03:00
orblazer
87633fdfad Fix multiple types on GameObjects 2018-03-20 15:56:31 +01:00
orblazer
4cff464555 Fix nullable types 2018-03-20 15:36:03 +01: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
3591edcb73
Merge pull request #3417 from rexrainbow/master
Bug fix: font might not sync to context
2018-03-20 00:34:51 +00:00
orblazer
b4a30b8e43 Add callbacks on GameObjects 2018-03-19 22:27:16 +01:00
orblazer
bf630f7d57 Fix types in JSDocs 2018-03-19 19:49:14 +01:00
Richard Davey
620bcc6ae5 jsdoc fixes and additions 2018-03-19 13:45:00 +00:00
orblazer
87d6cdaff8 Update JSDoc on GameObjects 2018-03-19 13:50:32 +01:00
orblazer
90def456f2 Update JSDoc on GameObjects 2018-03-19 12:54:31 +01:00
Rex
4125e74550 Bug fix: font might not sync to context
Sync font before runWordWrap
2018-03-18 22:53:02 +08:00
Richard Davey
cc0998660e Updated jsdocs 2018-03-18 13:43:37 +00:00
Richard Davey
a8886a60d3 Actually round the value. 2018-03-17 17:03:30 +00:00
Richard Davey
05a4385cd7 jsdoc fixes 2018-03-16 17:29:39 +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
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
1fea31bac8 Fixed package names 2018-03-16 00:46:39 +00:00
Richard Davey
19a17bcf63 Updating docs 2018-03-15 17:27:30 +00: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
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
1ebf639de3 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-12 16:30:16 +00:00
Felipe Alfonso
be81ddfd51 Fixed issue on RenderTexture canvas clear. The clearRect was affected by previous transformations 2018-03-12 13:30:05 -03:00
Richard Davey
267e8b4b84 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-12 16:27:49 +00:00
Felipe Alfonso
9585a1c78b Fixed issue of render texture only rendering the first frame. It should've read the cut properties 2018-03-12 13:27:32 -03:00
Felipe Alfonso
e0a4577938 Fixed issue of TileSprite rendering pattern based on the power of 2 dimension on canvas. 2018-03-12 13:18:38 -03:00
Richard Davey
70d9c7d728 Always return the parent Text object, no matter the flow 2018-03-12 16:13:42 +00:00
Richard Davey
e2ad743b92 _this fix 2018-03-12 14:52:35 +00:00