Commit graph

11254 commits

Author SHA1 Message Date
Thomas Felix
43f6b1d231 fix: Corrects the wrong JSdoc comments
Wrong comments lead to a faulty Typescript Definition file missing
the depth attribute.
2018-07-25 22:13:38 +02:00
Richard Davey
3a2fcd0951 Updated path drawing, sorting out line-cap differences with Canvas 2018-07-25 17:04:44 +01:00
Richard Davey
9d11b93b05 Updated shader 2018-07-25 13:06:22 +01:00
tarsupin
79d64abaa3
Add spaces after ifs 2018-07-24 20:06:18 -05:00
tarsupin
2e72c9966b
Reset body to match current frame
When using setSize, empty height and width will automatically assign to match the current frame of the game object.
2018-07-24 20:05:51 -05:00
tarsupin
7af6e5477f
Empty params reset to current texture size
If the width and height aren't provided, it resets the body's size to match the current frame of the game object's texture.
2018-07-24 19:53:41 -05:00
Richard Davey
4c25d12b44 Recoding the FTP. Rects and Tris working again. 2018-07-25 01:27:03 +01:00
Richard Davey
9e40b16e4f Added getX and getY to cut down on code in pipelines. 2018-07-25 01:26:41 +01:00
Richard Davey
7ccd469048 Updated the jsdocs. 2018-07-25 00:18:45 +01:00
Richard Davey
05a6275d9a Added copyToArray method. 2018-07-25 00:18:33 +01:00
Richard Davey
0516fd47f7 The Flat Tint Pipeline is now using the same shader as the Texture Tint
Time to make sure no texture swaps happen and we can finally have Graphics mixed with Sprites in the display list with no swapping cost (and soon, no flush cost either when we unify the pipelines)
2018-07-24 17:07:26 +01:00
Richard Davey
8c19c2bef9 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-07-24 16:40:39 +01:00
Richard Davey
ac108db9cc Moving towards tidying up the FTP 2018-07-24 16:40:29 +01:00
Richard Davey
50de14b132
Merge pull request #3857 from khaleb85/master
Added reverse animation feature (issue: #3837)
2018-07-24 13:41:10 +01:00
khaleb
2f6f8b2190 fix keyword-spacing 2018-07-24 09:36:15 -03:00
khaleb
6b81bc78a3 added since 3.12.0 in new methods, fixed keywords-spacing issue, renamed 'revert' method to 'reverse' 2018-07-24 09:28:56 -03:00
samme
4c23359fd8 Pass data value to global plugins 2018-07-23 10:51:00 -07:00
Richard Davey
d50d8b5e6b Merge branch 'master' of https://github.com/photonstorm/phaser 2018-07-23 15:53:17 +01:00
Richard Davey
a8e0e22cbe Added new rule 2018-07-23 15:53:14 +01:00
Richard Davey
e2517486a1 Updated log 2018-07-23 15:52:55 +01:00
Richard Davey
f2c5f9f4d3
Merge pull request #3853 from Edwin222/master
Add ability to play animation reverse(#3837) and some comment to TextureManager.js
2018-07-23 14:00:27 +01:00
Richard Davey
9df7fbaa68 Adding an array of children to a Group would cause it to mistakenly think you were passing a config object. Fix #3854 2018-07-23 13:29:39 +01:00
Kwondo Park
a0cc602569
cancel reverse animation 2018-07-23 14:21:31 +09:00
Richard Davey
09bee35693 Updated log 2018-07-23 01:53:48 +01:00
Richard Davey
2c7280a2c0 Updated log 2018-07-23 01:39:37 +01:00
Richard Davey
521138e9d8 setBlendMode now returns a boolean 2018-07-23 01:39:32 +01:00
Richard Davey
fc5eb2511c Particles using a blend mode wouldn't render correctly after the updates in 3.11. If the blend mode changes during the processing of an emitter manager it'll now correctly rebind the texture, stopping the particles from vanishing. Fix #3851 2018-07-23 01:39:21 +01:00
Shukizu
8da8fbedd1 fix animations with yoyo mode (issue: #3837) 2018-07-22 14:57:07 -03:00
Shukizu
bb17c82bf9 Added 'playReverse' method, and extracted part of play method (issue #3837) 2018-07-22 12:42:59 -03:00
Shukizu
ebc9d8d96d Add a 'revert' function that can revert the flow of a animation at any time (issue #3837) 2018-07-22 11:44:57 -03:00
Kwondo Park
98ceb32946
Fix trailing space in code 2018-07-21 20:11:07 +09:00
Edwin222
16eae3887e Add ability to play animations in reverse 2018-07-21 19:50:47 +09:00
Edwin222
9053ca456b Merge remote-tracking branch 'upstream/master' 2018-07-21 17:26:29 +09:00
Richard Davey
4f6790f450 Trying not rotate. Speed was the same :) 2018-07-20 17:50:01 +01:00
Richard Davey
c1a4fb0092 typo 2018-07-20 17:49:49 +01:00
Polar stoat
44e4e7162d Add AnimationManager.generateFrameNumbers documentation 2018-07-20 11:55:39 +01:00
Richard Davey
7b50a87c3e Added getChild methods 2018-07-19 16:22:58 +01:00
Richard Davey
46af5cb24e Fixed style join 2018-07-19 16:22:51 +01:00
Richard Davey
d16e844910 Removed bind polyfill as it's in IE9+ anyway 2018-07-19 16:22:43 +01:00
Richard Davey
106e32a4f5 Removed un-used imports 2018-07-19 13:26:11 +01:00
Richard Davey
de4428ac52 Added willRender override and start of event handling 2018-07-19 13:22:13 +01:00
Richard Davey
6a3274b483 Removed redundant code 2018-07-19 13:21:59 +01:00
Richard Davey
2a008e6713 FileType.HTML is a new file type loader that will load an HTML snippet and store it in the new html cache. Access it via load.html (this method was previously used to load html to textures, please see load.htmlTexture for this feature now) 2018-07-19 13:21:51 +01:00
Richard Davey
675cb3b59a Added HTML Cache 2018-07-19 13:19:24 +01:00
Richard Davey
0ac877be0b Removed z-index and tidied up style 2018-07-19 13:19:14 +01:00
Richard Davey
ec5bd1912e GameObject.willRender now takes a Camera as its only argument and uses it within the check. This has allowed me to remove 23 duplicate checks spread across the various Game Objects, all of which did the same thing, saving both KB and CPU time as the flags were being checked twice in most cases. 2018-07-19 13:19:02 +01:00
Richard Davey
1d697b1371 Updated log 2018-07-19 00:42:37 +01:00
Richard Davey
e2dbbcdbb0 Inline and added create methods 2018-07-19 00:42:28 +01:00
samme
7ebc7dd01f Fix ArcadePhysics#closest, furthest 2018-07-18 16:23:38 -07:00
Richard Davey
ceb466748a Updated DOM Element to fix transforms 2018-07-19 00:22:38 +01:00