Commit graph

1430 commits

Author SHA1 Message Date
Richard Davey
94540e112e Text supports high dpi resolution for its internal canvas 2018-07-17 22:44:12 +01:00
Richard Davey
c8b058c26a Renamed object to avoid TS defs conflict 2018-07-16 10:28:28 +01:00
Richard Davey
66ee2ac973 Bumped version 2018-07-13 11:14:13 +01:00
Richard Davey
eee96cd2d3 setPipeline returns the Game Object, not the pipeline, to be consistent. 2018-07-13 11:14:08 +01:00
Richard Davey
aa9ba84766
Merge pull request #3741 from TadejZupancic/patch-5
Zone inside a Container fix
2018-07-13 08:30:13 +01:00
Richard Davey
13776e5116 Fixed argument order. 2018-07-11 16:54:48 +01:00
Richard Davey
51f94cd444 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-07-11 16:25:26 +01:00
Richard Davey
5ba80defb7 Pass GO to setPipeline 2018-07-11 16:23:44 +01:00
Chris Andrew
0858797599 Minor documentation fix for BitmapText.getTextBounds(). 2018-07-11 14:50:23 +01:00
Richard Davey
82b15c8695 Removed drawEmitterManager and moved to emitter render function 2018-07-11 14:40:36 +01:00
Richard Davey
497fa1f2ff Added copyFromArray method 2018-07-11 12:36:49 +01:00
Richard Davey
ef79edf1ff New pipeline function call 2018-07-11 12:35:23 +01:00
Richard Davey
b7edbe755f Tidying up function 2018-07-11 12:35:09 +01:00
Richard Davey
9c9e9cecbb Updated log and lint fixes 2018-07-10 16:49:53 +01:00
Richard Davey
5fe74453fe Extends BitmapText, to save on lots of space 2018-07-10 16:33:13 +01:00
Richard Davey
e145b6b7d3 Fixed Dynamic Bitmap Text Rendering 2018-07-10 16:33:01 +01:00
Richard Davey
469f6b6880 TransformMatrix.multiply has a new optional argument out which is a matrix to store the multiplication results in. If not given it will act as before, multiplying the current matrix. 2018-07-10 14:01:14 +01:00
Richard Davey
434c8d1413 Fixed issue with sprite matrix and camera scaling 2018-07-10 13:59:49 +01:00
Richard Davey
6560f51699 Added jsdocs and updated change log 2018-07-09 22:35:48 +01:00
Richard Davey
39c05e4a96 Added support for BitmapText alignment and internal dirty flag for calculation speed 2018-07-09 21:57:51 +01:00
Richard Davey
f892d97475 Removed indexCount 2018-07-09 17:06:36 +01:00
Richard Davey
2d313ac927 The start of adding multi-line alignment 2018-07-09 17:06:20 +01:00
Richard Davey
f266acecc2 Re-uses the bounds object, rather than re-creating constantly. 2018-07-09 17:06:06 +01:00
Richard Davey
a16a7457bc Now stores the line data in the bounds object. 2018-07-09 17:05:53 +01:00
Richard Davey
a3803a286f Fixed origin addition post-scale 2018-07-09 16:17:52 +01:00
Richard Davey
91a48c30c4 GetBitmapTextSize, which is used internally in the BitmapText Game Objects, will now produce different bounds from the previous version. Previously, the bounds were tight against the letters in the text. However, this meant the bounds were not properly aligned with the origin of the BitmapText, and consequently you'd get different bounds if the text consisted of different characters. The bounds are now calculated purely based on the glyph data and letter spacing values. This will give a far more consistent overall experience, but it does mean if you were using the bounds to position text previously, you'll need to revisit that code again. See issue #3799 for more details (and to discuss this further if you wish) 2018-07-09 16:06:36 +01:00
Richard Davey
84c7960a48 The Quad Game Object now has a new setFrame method that allows you to change the frame being rendered by the Quad, including using frames that are part of a texture atlas. Fix #3161 2018-07-09 13:42:33 +01:00
Richard Davey
ecd99869bd Explained mask positioning better in docs. Fix #3770 2018-07-08 23:38:13 +01:00
Richard Davey
9e84c9f082 Fixed slice method 2018-07-08 22:44:40 +01:00
Richard Davey
5c554f3f69 Started moving dynamic bitmap text renderer to its own function 2018-07-07 12:34:24 +01:00
Richard Davey
dd0490dd57 Removed batchBitmapText, tidied up and moved to its own renderer 2018-07-07 12:22:45 +01:00
Richard Davey
8b13631107 Removed batchMesh and moved to the Mesh WebGL Renderer. Another one bites the dust. 2018-07-06 19:35:46 +01:00
Richard Davey
0428ecc430 Mesh now supports the tintFill property 2018-07-06 19:35:14 +01:00
Richard Davey
4fb63fd405 Clairty over obscurity 2018-07-06 19:35:01 +01:00
Richard Davey
6aa1526ea9 Graphics.arc has a new optional argument overshoot. This is a small value that is added onto the end of the endAngle and allows you to extend the arc further than the default 360 degrees. You may wish to do this if you're trying to draw an arc with an especially thick line stroke, to ensure there are no gaps. Fix #3798 2018-07-06 17:15:46 +01:00
Richard Davey
a64d747c98 clearMask(true) would throw an exception if the Game Object didn't have a mask. Now it checks first before destroying the mask. Fix #3809 2018-07-06 16:34:11 +01:00
Richard Davey
1931716da3 Exposed isTinted bool 2018-07-06 16:22:42 +01:00
Richard Davey
45208202ae Added canvas props 2018-07-06 15:55:05 +01:00
Richard Davey
901a75d053 setCrop will accept numbers or a Rectangle object 2018-07-06 12:57:42 +01:00
Richard Davey
f3a446797d Added new TextureCrop component 2018-07-05 13:06:28 +01:00
Richard Davey
43fc988034 Moved crop UV handler to the Frame method. Cleaner and easier. 2018-07-04 15:18:08 +01:00
Richard Davey
ee8c1b403a Fixed cropping with flipped images 2018-07-04 14:50:26 +01:00
Richard Davey
744e161d22 Added setCrop support 2018-07-03 16:48:01 +01:00
Richard Davey
afec945c94 Pass in the UV values 2018-07-02 23:52:00 +01:00
Richard Davey
89bf09d19d Swapped to unified batchVertices method 2018-07-02 17:06:34 +01:00
Richard Davey
d3df3436e4 Blitter now hits the renderer directly 2018-07-02 16:44:09 +01:00
Richard Davey
f57ecc0d81 Moved method 2018-07-02 16:43:43 +01:00
Richard Davey
cf008e612c Added e and f properties and multiplyWithOffset and copyFrom 2018-07-02 15:33:54 +01:00
Richard Davey
ea53e832c2 Added tintEffect property 2018-07-02 13:33:15 +01:00
Richard Davey
5fdf51ce59 Using direct pipeline calls 2018-07-02 13:32:56 +01:00