Commit graph

1179 commits

Author SHA1 Message Date
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
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
samme
f4e843038c Expect v3.3.0 2018-03-12 07:23:20 -07: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
samme
aebce8a695 Add Phaser.GameObjects.TileSprite#setTilePosition
Both arguments are optional.
2018-03-10 11:41:22 -08: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
87f2d0f831
Merge pull request #3335 from iamchristopher/fix-group-clear-from-scene
Fixed Group doesn't remove children from Scene when cleared
2018-03-09 15:54:44 +00:00
Richard Davey
3ed077a6d7
Merge pull request #3358 from delftswa2018/3231-CANVAS-tilesprite-rotation-flip-scaling
Added rotation, scaling and flipping to TileSpriteCanvasRenderer
2018-03-09 15:51:35 +00:00
Richard Davey
2ee4f581f5
Merge pull request #3355 from rexrainbow/master
Add reference of GameObject class
2018-03-09 15:45:46 +00:00
Tom Catshoek
74b18921e8 Added rotation, scaling and flipping to TileSpriteCanvasRenderer 2018-03-09 15:16:34 +01:00
Hua
4719589382 Add reference of BuildGameObject, BuildGameObjectAnimation 2018-03-09 15:13:42 +08:00
Hua
cf8d4703b3 Add reference of GameObject class 2018-03-09 12:31:37 +08:00
Felipe Alfonso
9a21b4c7f4 Fixed issue with render texture tint 2018-03-06 15:56:33 -03:00
iamchristopher
1d402a732e Fixed Group doesn't remove children from Scene when cleared 2018-03-05 19:04:01 -05:00
Richard Davey
a712dea197 eslint fix 2018-03-05 22:25:55 +00:00
Richard Davey
9ad7aeef1d
Merge pull request #3304 from rexrainbow/master
Add destroy event of gameobject
2018-03-05 21:56:07 +00:00
Richard Davey
c2f25b3742
Merge pull request #3240 from Twilrom/arc-fix
Update WebGL Graphics.arc to work more like on Canvas
2018-03-05 21:54:46 +00:00
Richard Davey
bfabe35cdf eslint fixes 2018-03-05 21:49:08 +00:00
Felipe Alfonso
ddc85cfdc7 Added support for tint and alpha to RenderTexture 2018-03-05 16:57:41 -03:00
Lukas Jakob Hafner
97bfe2e752
Quick fix for missing lineSpacing
Reads lineSpacing if passed as attribute to `style` within text config.
2018-03-05 16:35:42 +02:00
Richard Davey
8d85a9bc72 Added jsdocs 2018-03-05 14:19:53 +00:00
Richard Davey
4c59d9a35d Added jsdocs 2018-03-05 02:24:47 +00:00
Richard Davey
4d16b0c00a eslint fixes 2018-03-05 01:45:28 +00:00
Richard Davey
ef3df149c6 Fixed RenderTexture flipY 2018-03-05 01:42:37 +00:00
Richard Davey
ae1c91cf6a eslint fixes 2018-03-05 01:40:11 +00:00