Commit graph

15023 commits

Author SHA1 Message Date
Richard Davey
733de64d46
Merge pull request #5257 from halilcakar/master
Fix incorrect event names in ProcessQueue.js#205, 222
2020-08-20 09:57:08 +01:00
Richard Davey
ab605eed78 Remove false import 2020-08-19 13:19:07 +01:00
Richard Davey
3ffb1e2dba Update CHANGELOG.md 2020-08-19 13:14:39 +01:00
Richard Davey
b1b8a74cf9 RenderTexture.fill would fail to fill the correct area under WebGL if the RenderTexture wasn't the same size as the Canvas. It now fills the given region properly. 2020-08-19 13:14:36 +01:00
Richard Davey
c89b619508 Update CHANGELOG.md 2020-08-18 18:05:48 +01:00
Richard Davey
2db1496511 Geom.Polygon.Simplify is a new function that takes a polygon and simplifies the points by running them through a combination of Douglas-Peucker and Radial Distance algorithms, potentially dramatically reducing the number of points while retaining its shape. 2020-08-18 18:05:45 +01:00
Richard Davey
305ea40baf Update GetRaysFromPointToPolygon.js 2020-08-18 18:05:38 +01:00
Richard Davey
62d72730fa Update CHANGELOG.md 2020-08-18 17:24:49 +01:00
Richard Davey
616dbfceb5 Earcut, used for polygon triangulation, has been updated from 2.1.4 to 2.2.2. 2020-08-18 17:24:45 +01:00
Richard Davey
24e3a0ca42 Update CHANGELOG.md 2020-08-18 17:05:16 +01:00
Richard Davey
995cfb6271 Expose new function 2020-08-18 17:05:12 +01:00
Richard Davey
74f24a06f3 Use new GetLineToPoints function 2020-08-18 17:05:06 +01:00
Richard Davey
1a1275958f Only test unique angles 2020-08-18 17:04:55 +01:00
Richard Davey
4678fc7186 Geom.Intersects.GetLineToPoints is a new function that checks for the closest point of intersection between a line segment and an array of points, where each pair of points form a line segment. 2020-08-18 17:04:32 +01:00
Richard Davey
0c06bb20e0 Update CHANGELOG.md 2020-08-17 15:05:49 +01:00
Richard Davey
06c92f9af8 Geom.Intersects.GetRaysFromPointToPolygon is a new function that emits rays out from the given point and detects for intersection against all given polygons, returning the points of intersection in the results array. 2020-08-17 15:05:46 +01:00
Richard Davey
ceb96665b8 Bumped version 2020-08-17 15:05:39 +01:00
mk360
748e699d43 update setPadding jsdoc 2020-08-10 08:21:26 +03:00
Bulat Khasanov
8e1b5e757d Allow to pass font in TextStyle 2020-08-09 23:34:31 +03:00
halilcakar
6915fd3420 Fix incorrect event names in ProcessQueue.js#205, 222 2020-08-09 19:55:09 +03:00
Richard Davey
0cca001845 3.50 Beta 1 dist 2020-08-06 17:30:51 +01:00
Richard Davey
7cc616c7b8 Bump version 2020-08-06 17:07:16 +01:00
Richard Davey
75da5b2f22 Reset all textures on rebind, which is what Externs need when finishing 2020-08-06 17:06:26 +01:00
Richard Davey
e77639561b Use charIndex, not i 2020-08-06 17:06:10 +01:00
Richard Davey
6aaf54e8a7 Don't add frame if empty 2020-08-05 14:15:01 +01:00
Richard Davey
cae1de043f Update CHANGELOG.md 2020-08-05 12:48:19 +01:00
Richard Davey
96a64eae4e ParseXMLBitmapFont has a new optional parameter texture. If defined, this Texture is populated with Frame data, one frame per glyph. This happens automatically when loading Bitmap Text data in Phaser. 2020-08-05 12:46:28 +01:00
Richard Davey
d98d305e2f Frame.setUVs is a new method that allows you to directly set the canvas and UV data for a frame. Use this if you need to override the values set automatically during frame creation. 2020-08-05 12:45:07 +01:00
Richard Davey
a2c9c3cef6 Fix char right adjustment 2020-08-05 11:48:25 +01:00
Richard Davey
00e5c5fe0f Update BitmapTextSize.js 2020-08-04 11:25:10 +01:00
Richard Davey
ee01d36918 Update BitmapTextCharacter.js 2020-08-04 11:25:07 +01:00
Richard Davey
1db3ba72f8 Cache shadow values 2020-08-04 11:25:03 +01:00
Richard Davey
50dcc624df Get Character using char top, right and bottom 2020-08-04 11:24:56 +01:00
Richard Davey
1ae0cfc619 Include char top, right and bottom values 2020-08-04 11:24:43 +01:00
Richard Davey
b64c85c25c Update CHANGELOG.md 2020-08-04 10:35:29 +01:00
Richard Davey
380cc422b2 The ScaleManager.updateBounds method is now called every time the browser fires a 'resize' or 'orientationchange' event. This will update the offset of the canvas element Phaser is rendering to, which is responsible for keeping input positions correct. However, if you change the canvas position, or visibility, via any other method (i.e. via an Angular route) you should call the updateBounds method directly, yourself. 2020-08-04 10:35:29 +01:00
Richard Davey
4b003ee7c4
Merge pull request #5250 from samme/docs/setInteractive
Rename all setInteractive() arguments, and docs
2020-08-04 09:49:32 +01:00
samme
981a4b1a0a Rename all setInteractive() arguments, and docs 2020-08-03 13:33:30 -07:00
Richard Davey
2c1249e4e9 Update CHANGELOG.md 2020-08-03 17:54:44 +01:00
Richard Davey
0d04e40e28 Updated jsdocs 2020-08-03 17:54:40 +01:00
Richard Davey
111a4e1ce2 Calling Rectangle.setSize() wouldn't change the underlying geometry of the Shape Game Object, causing any stroke to be incorrectly rendered after a size change. 2020-08-03 17:54:29 +01:00
Richard Davey
edf074ba47 Update CHANGELOG.md 2020-08-03 11:33:44 +01:00
Richard Davey
47a62cd30c If you apply setSize to the Dynamic BitmapText the scissor is now calculated based on the parent transforms, not just the local ones, meaning you can crop Bitmap Text objects that exist within Containers. Fix #4653 2020-08-03 11:33:41 +01:00
Richard Davey
c12eb98c49 Update CHANGELOG.md 2020-08-03 10:53:32 +01:00
Richard Davey
2f574070d5 Setting the color value in the DynamicBitmapText.setDisplayCallback would inverse the red and blue channels if the color was not properly encoded for WebGL. It is now encoded automatically, meaning you can pass normal hex values as the colors in the display callback. Fix #5225 2020-08-03 10:53:27 +01:00
Richard Davey
d616ed71b7 Update CHANGELOG.md 2020-08-03 10:50:18 +01:00
Richard Davey
0402717834 Expose new function 2020-08-03 10:49:27 +01:00
Richard Davey
ec845ce015 Use GetColorFromValue 2020-08-03 10:49:05 +01:00
Richard Davey
6a32ff56f3 Display.Color.GetColorFromValue is a new function that will take a hex color value and return it as an integer, for use in WebGL. This is now used internally by the Tint component and other classes. 2020-08-03 10:48:52 +01:00
Richard Davey
0266c7f0a2 Updated docs #5231 2020-08-03 10:37:01 +01:00