Commit graph

7520 commits

Author SHA1 Message Date
Richard Davey
07e1f07caf Added support for Static Tilemap Layers to support multiple Tilesets per layer. 2018-09-27 11:34:37 +01:00
Richard Davey
c1d6e438cc Removed un-used property. 2018-09-27 11:34:13 +01:00
Richard Davey
39c55ef719 Made warnings shorter. 2018-09-27 11:33:58 +01:00
Richard Davey
bed4abc8ed Updated ParseTilesets function to handle Tiled 1.2 and 1.1 formats 2018-09-27 00:41:11 +01:00
samme
adb2181a8a Add docs for groups and Arcade.Factory 2018-09-26 12:25:09 -07:00
samme
536555236f Add PhysicsGroupConfig.enable, Arcade.Body#setEnable() 2018-09-26 10:25:45 -07:00
samme
5d38357533 Use defaultStrokeWidth in Arcade.Body#drawDebug() 2018-09-26 09:50:48 -07:00
Richard Davey
8cc7650f8c Arcade Physics Bodies will now sync the display origin of the parent Game Object to the body properties as part of the updateBounds call. 2018-09-26 17:15:22 +01:00
Richard Davey
32bd01daba If you used a scaled Dynamic Tilemap Layer and rotated or flipped tiles, the tiles that were rotated or flipped would be positioned incorrectly in WebGL. Fix #3778 2018-09-26 16:49:18 +01:00
Richard Davey
6fef0fb57e The Device.OS check for node will now do a typeof first to avoid issues with rollup packaged builds needing to shim the variable out. Fix #4058 2018-09-26 16:36:45 +01:00
Richard Davey
945a2eb0fb TextureTintPipeline.batchTexture has a new optional argument skipFlip which allows you to control the internal render texture flip Y check. 2018-09-26 16:32:41 +01:00
Richard Davey
25f8d29659 If you used a RenderTexture as a tileset then Dynamic Tilemap Layers would render the tiles inversed on the y-axis in WebGL. Fix #4017 2018-09-26 16:32:27 +01:00
Richard Davey
b4e59405b4 Calling Tilemap.renderDebug ignored the layer scale when drawing to the Graphics object. It will now scale the layer before drawing. Fix #4026 2018-09-26 16:18:44 +01:00
Richard Davey
c0e5197f7c Static Tilemap Layers now support tile rotation and flipping. Previously this was a feature only for Dynamic Tilemap Layers, but now both have it. Close #4037 2018-09-26 16:07:32 +01:00
Richard Davey
94d21da3ca The Static Tilemap Layer would stop drawing all tiles from that point on, if it encountered a tile which had invalid texture coordinates (such as a tile from another tileset). It now skips invalid tiles properly again. Fix #4002 2018-09-26 15:27:19 +01:00
Richard Davey
9c5876ffb0 Skip conditional if fromVerts given. Correctly set parts reference. 2018-09-26 14:15:38 +01:00
Richard Davey
80f7539a41 Matter.verts, available via this.matter.verts from within a Scene, is a quick way of accessing the Matter Vertices functions. 2018-09-26 14:13:03 +01:00
Richard Davey
df7245e3c5 Added all of the new Matter debug rendering options 2018-09-26 14:12:20 +01:00
Richard Davey
eb09c35056 The poly-decomp library, as used by Matter.js, has been updated to 0.3.0. 2018-09-26 11:08:55 +01:00
Richard Davey
684838aabe Polygon.setTo can now take a string of space separated numbers when creating the polygon data, i.e.: '40 0 40 20 100 20 100 80 40 80 40 100 0 50'. This update also impacts the Polygon Shape object, which can now also take this format as well. 2018-09-26 11:01:48 +01:00
Richard Davey
ef3f6c0348 The Shape.Line object was missing a lineWidth property unless you called the setLineWidth method, causing the line to not render in Canvas only. Fix #4068 2018-09-26 09:33:09 +01:00
samme
6a8e5d2082 Correct descriptions for customSeparateX, customSeparateY 2018-09-25 13:25:47 -07:00
Robert Kowalski
bf38ce9fd4
Revsions based on Comments
Updated, better?
2018-09-25 11:31:18 -04:00
Richard Davey
13a72f961e lint fix 2018-09-25 16:23:14 +01:00
Richard Davey
2985a97c56 TileSet.getTileData() has been updated so it will return tile data from either Tiled 1.1.x or the new Tiled 1.2.x JSON structure. Fix #3998 2018-09-25 16:20:34 +01:00
Richard Davey
9b09d32426
Merge pull request #4062 from s-s/bugfix-4010
#4010 fix
2018-09-25 16:10:12 +01:00
Richard Davey
91f15a9046
Merge pull request #4060 from felipeprov/master
Fixed possible typo on UpdateList#shutdown
2018-09-25 15:56:43 +01:00
Richard Davey
37d7b7b32d The Loader has been updated to handle the impact of you destroying the game instance while still processing files. It will no longer throw cache and texture related errors. Fix #4049 2018-09-25 15:54:13 +01:00
Richard Davey
df8c0d8673 Calling Tilemap.renderDebug ignored the layer world position when drawing to the Graphics object. It will now translate to the layer position before drawing. Fix #4061 2018-09-25 15:37:46 +01:00
Richard Davey
41920b07cc Tilemap.setBaseTileSize now sets the size into the LayerData baseTileWidth and baseTileHeight properties accordingly. Fix #4057 2018-09-25 15:19:57 +01:00
Richard Davey
2812bff0ee Sprites now have preDestroy method, which is called automatically by destroy. The method destroys the Animation component, unregistering the remove event in the process and freeing-up resources. Fix #4051 2018-09-25 15:11:15 +01:00
Richard Davey
e94d92518d GameObjects added to and removed from Containers no longer listen for the shutdown event at all 2018-09-25 15:00:23 +01:00
Robert Kowalski
0020745544
Quick space. 2018-09-25 07:15:11 -04:00
Robert Kowalski
185b19787e
Matterjs Gravity Component Doc 2018-09-25 07:14:32 -04:00
Richard Davey
c704dc450a Fixed jsdoc definitions 2018-09-25 11:36:36 +01:00
Robert Kowalski
5d0d84fe55
Matter.js Force Component Docs
Checking if I did this well before I start jumping into multiple files.
2018-09-25 04:46:30 -04:00
samme
817720b42c Correct description for Arcade.Body#maxVelocity 2018-09-24 16:58:00 -07:00
samme
31175ae61f Correct overlapCallback argument name 2018-09-24 16:52:15 -07:00
Richard Davey
75bdfcc081 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-09-24 23:20:49 +01:00
Richard Davey
89b9f42f3e Adding jsdocs 2018-09-24 23:20:43 +01:00
samme
2a51d6b70f Arcade Physics docs revisions 2018-09-24 12:12:56 -07:00
Chris Andrew
dfe335102c Added some descriptions for the AnimationManager class. 2018-09-24 18:47:24 +01:00
Sergey
948ed58842
#4010 fix
Both values are already scaled to resolution.
2018-09-24 14:34:59 +03:00
Felipe Provenzano
731a495c24 Fixed possible typo on UpdateList#shutdown 2018-09-23 22:03:18 +02:00
Richard Davey
f869794346 Preparing for 3.14 work 2018-09-20 17:20:26 +01:00
Richard Davey
a39555a53d 3.13 Build 2018-09-20 16:58:00 +01:00
Richard Davey
41956c4625 Added FB plugin conditional 2018-09-20 14:14:29 +01:00
Richard Davey
22e6c15de9 Display use of FB plugin 2018-09-20 14:14:09 +01:00
Richard Davey
1427518930 jsdoc fix 2018-09-20 12:32:02 +01:00
Richard Davey
d6ff9cfa5a FB Plugin moved to its own build file 2018-09-20 11:50:09 +01:00
Richard Davey
c36a3b4057 Hopefully fix annoying TS error 2018-09-20 11:49:52 +01:00
Richard Davey
7f835da1e1 Fixed Rectangle hit area coordinates 2018-09-20 11:49:24 +01:00
Richard Davey
deb14bdb60 Correct ellipse sizing 2018-09-18 17:21:55 +01:00
Richard Davey
9b812f8394 Calling setFrame on a TileSprite wouldn't change the frame, it would just change the frame size. Fix #4039 2018-09-18 11:18:00 +01:00
Richard Davey
754fc4f622 RenderTexture.resize wouldn't correctly resize the texture under WebGL. Fix #4034 2018-09-17 11:48:34 +01:00
Richard Davey
9aaa640601 Finished Shape documentation 2018-09-15 11:18:09 +01:00
Richard Davey
fcaa2bfc4f Completing Game Object jsdocs 2018-09-15 10:31:10 +01:00
Richard Davey
24e09d7a31 Completed more jsdocs 2018-09-14 18:17:14 +01:00
Richard Davey
0d497fd2be Fixed Scene restart shutdown flow 2018-09-14 18:05:14 +01:00
Richard Davey
935288518d Added isPaused method 2018-09-14 18:04:47 +01:00
Richard Davey
4c6b2cc183 Fixed destroy order 2018-09-14 18:03:51 +01:00
Richard Davey
5ec26fa62d Cameras now emit prerender and postrender events if they are set to render to textures. 2018-09-14 15:53:06 +01:00
Richard Davey
e92a01985e If you destroyed a Game Object that had a custom cursor set during one of its input events the cursor didn't correctly reset. Fix #4033 2018-09-14 14:48:53 +01:00
Richard Davey
b9318826eb Added jsdocs, setPipeline and clearRenderToTexture methods 2018-09-14 14:03:37 +01:00
Richard Davey
7315ea39b4 Optimized setting the custom flag 2018-09-14 14:03:13 +01:00
Richard Davey
9af2c7e249 The Cameras setScene method, which is called automatically when a new Camera is created, will now call updateSystem which correctly increases the custom viewport counter. This fixes an issue with mini-cams inside of larger cameras not clipping their contents properly. If a Camera is moved to another Scene it also now correctly shrinks the total custom viewport counter. 2018-09-14 12:33:22 +01:00
Richard Davey
ef62313bbb The WebGL Renderer now always enables the SCISSOR_TEST, this allows Game Objects that use the scissor (such as custom objects, or Bitmap Text) to render properly again. 2018-09-14 12:33:09 +01:00
aaron
b9454eaf7b Wrong filling rectangle for camera with no transparent background after last scissor changes 2018-09-14 10:53:50 +02:00
Richard Davey
aeda1c042b If a Scene is already active (i.e. running) and you call start on it (such as from another Scene) then it will shutdown the Scene first, before starting it again. 2018-09-13 16:32:02 +01:00
Richard Davey
855fde1adb Rebind the source texture 2018-09-13 13:23:42 +01:00
Richard Davey
7722207dbd Remove texture deletion. 2018-09-13 13:23:24 +01:00
Richard Davey
f285cf4854 Trim the font style 2018-09-13 13:23:11 +01:00
Richard Davey
7b0d823415 Resizing canvas backed textures like this is a really bad idea, so remove it. 2018-09-13 13:22:27 +01:00
Richard Davey
e01a657798 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-09-13 09:30:36 +01:00
Richard Davey
2f98bd5092 DisplayList now destroys children directly. 2018-09-13 09:29:48 +01:00
Richard Davey
e19c307252 The UpdateList will now clear out its internal _list, _pendingRemoval and _pendingInsertion lists on shutdown. Before, it would only clear _list. 2018-09-13 09:29:33 +01:00
Richard Davey
0a166f944f Game Objects no longer listen to Scene shutdown. Fix #4028 2018-09-13 09:28:33 +01:00
Richard Davey
429427c876
Merge pull request #4030 from Mattykins/master
Changed setFloatXv methods to accept a Float32Array rather than insta…
2018-09-13 08:42:41 +01:00
Richard Davey
5fe6dbbe0c Added more jsdocs 2018-09-13 08:09:44 +01:00
Matthew Roelle
700509275d Changed setFloatXv methods to accept a Float32Array rather than instantiate its own 2018-09-12 20:25:15 -07:00
Richard Davey
1ac48afd5f Added Grid Shape type with WebGL renderer 2018-09-13 01:02:59 +01:00
Richard Davey
00518eca39 Fixed geom references 2018-09-12 16:58:32 +01:00
Richard Davey
1aa7287062 eslint fix 2018-09-12 16:32:50 +01:00
Richard Davey
0a152949cb Added setLineSpacing method and docs. 2018-09-12 16:29:38 +01:00
Richard Davey
a418995c15 Fixed jsdoc versions and updated them for #4019 2018-09-12 15:34:48 +01:00
Richard Davey
aa4c1ce51d
Merge pull request #4019 from Mattykins/master
Add support for setting float array uniforms in the WebGLPipeline / WebGLRenderer
2018-09-12 15:16:26 +01:00
Richard Davey
6d7ca32e6d Game Objects would not remove themselves from the Scene's shutdown event handler when destroyed, leading to a build-up over time 2018-09-12 15:06:13 +01:00
Richard Davey
0436f1ff6d If you flagged a Tween as paused in its config, never started it, and then called Tween.stop it wouldn't ever be removed from the _pending array. It's now moved to the Tween Manager's destroy list, ready for removal on the next frame. Fix #4023 2018-09-12 14:54:08 +01:00
Richard Davey
b1771a17dd Updated InputPlugin event specificity flow and added stopPropagation support 2018-09-12 12:38:08 +01:00
Richard Davey
14881bbe24 Renamed data to geom to avoid DataManager clash. Added preDestroy. 2018-09-12 12:37:18 +01:00
Richard Davey
4ba3b37608 Added Pointer.getDistance method 2018-09-12 01:03:56 +01:00
Richard Davey
e01013d418 Formatting 2018-09-12 01:03:41 +01:00
Richard Davey
490ca9c4b6 Added setSize method 2018-09-12 01:03:36 +01:00
Richard Davey
640d90cb09 Added jsdocs 2018-09-11 15:34:03 +01:00
Richard Davey
a68469dc5b Added jsdocs 2018-09-11 15:21:22 +01:00
Richard Davey
252ebe74fb TS defs error 2018-09-11 13:51:09 +01:00
Richard Davey
2c4b38a794 Missing path join 2018-09-11 13:51:03 +01:00
Richard Davey
41d09fe646 Typo 2018-09-11 13:50:55 +01:00
Richard Davey
855e6babeb Lines use strokeColor only 2018-09-11 13:50:43 +01:00
Richard Davey
2816f29bd1 Fixed pathData 2018-09-11 13:50:18 +01:00
Richard Davey
83fa5261e6 Added missing Shape canvas render functions 2018-09-11 13:50:01 +01:00
Richard Davey
9aeba9e73e Fixed jsdoc 2018-09-10 23:30:42 +01:00
Richard Davey
30d51e5179 Moved closePath to Shape 2018-09-10 23:30:36 +01:00
Richard Davey
4b1c0eb697 Added Canvas rendering functions 2018-09-10 23:30:19 +01:00
Richard Davey
dfa40b866f Moved the common fill and stroke functions out
Also started finishing jsdocs
2018-09-10 22:47:39 +01:00
Richard Davey
8ab3240656 Added jsdocs 2018-09-10 20:44:19 +01:00
Richard Davey
c873679d97 Added hsv values, setFromHSV, udpateHSV, darken, lighten, brighten, saturate and desature methods. 2018-09-10 11:29:28 +01:00
Richard Davey
fccd58b097 The HSVToRGB function can now take an optional out argument, which is either a HSVColorObject or a Color object, and the results will be set into that object instead of creating a new one. 2018-09-10 11:22:04 +01:00
Richard Davey
664d5efc7b The RGBToHSV function can now take an optional out argument, which is either a HSVColorObject or a Color object, and the results will be set into that object instead of creating a new one. 2018-09-10 11:21:36 +01:00
Matthew Roelle
7465717d92 Fixed doccomment for float array uniforms 2018-09-09 18:19:09 -07:00
Matthew Roelle
aeeefb3cf6 Added support for setting float array uniforms in the WebGLRenderer and WebGLPipeline 2018-09-09 18:05:29 -07:00
Richard Davey
4ac490eac8 Added draw method 2018-09-08 01:19:25 +01:00
Richard Davey
9ec4b3433f Updated CanvasTexture class
Fixed jsdoc names.
Added getPixels, imageData, array buffer and other pixel reading properties.
2018-09-07 19:29:58 +01:00
Richard Davey
ecbee17c53 Fixed property name 2018-09-07 17:19:40 +01:00
Richard Davey
1f4c0b5809 Added Curve Shape object 2018-09-07 17:19:33 +01:00
Richard Davey
ef558fea3c Type definition fixes 2018-09-07 17:19:19 +01:00
Richard Davey
8bc4d06831 Added IsoTriangle and project setting 2018-09-07 14:23:25 +01:00
Richard Davey
266f993f62 Added Line Shape 2018-09-07 12:43:49 +01:00
Richard Davey
c5fa4efa57 Added face toggle support 2018-09-07 12:10:19 +01:00
Richard Davey
0d183143a7 Removed tint component 2018-09-07 12:10:08 +01:00
Richard Davey
b04d82d17f Added getters and setters for properties 2018-09-07 12:09:57 +01:00
Richard Davey
687ec04802 Added Star shape 2018-09-06 22:40:56 +01:00
Richard Davey
04b5e917e0 Bail if not filled 2018-09-06 17:18:05 +01:00
Richard Davey
270864d974 Added setFillStyle override 2018-09-06 17:16:56 +01:00
Richard Davey
d25ad0cf68 Added IsoBox shape 2018-09-06 16:52:00 +01:00
Richard Davey
fb5bf5d9c1 Added stroke rendering to all shapes 2018-09-06 15:49:42 +01:00
Richard Davey
a508cd2195 Added support for stroke rendering path data 2018-09-06 15:09:15 +01:00
Richard Davey
2f5f5542fd Added more global properties 2018-09-06 15:08:51 +01:00
Richard Davey
0918bc15c2 Support for stroke rendering added 2018-09-06 15:08:41 +01:00
Richard Davey
aac783064f Added per Shape factories 2018-09-06 15:08:15 +01:00
Richard Davey
5e126b80fa Parent matrix and now optional and it won't draw a line cap unless the first point has been set 2018-09-06 15:07:36 +01:00
Richard Davey
19a50eaa98 Moving Shapes to their own folders to keep things tidy 2018-09-06 11:26:50 +01:00
Richard Davey
d3181b41c5 Added smooth method 2018-09-06 00:17:07 +01:00
Richard Davey
b54de56c85 Added Polygon.Smooth and exposed Polygon.Reverse 2018-09-06 00:16:56 +01:00
Richard Davey
7d4906bf73 Added smoothing function 2018-09-05 17:44:12 +01:00
Richard Davey
9820eb4e2d Added Ellipse 2018-09-05 17:27:48 +01:00
Richard Davey
356e6f0753 Added Polygon support 2018-09-05 17:11:46 +01:00
Richard Davey
40a53f75b7 Added Arc rendering and fixed version numbers 2018-09-05 16:50:33 +01:00
Richard Davey
9f9043d881 Added the new Shape base class and the Arc, Rectangle and Triangle primitives 2018-09-05 16:20:25 +01:00
Richard Davey
dedc939fdd initPipeline now defaults to the Texture Tint Pipeline if nothing else is specified. 2018-09-05 11:19:02 +01:00
Richard Davey
dff9bdef9f The Graphics Canvas Renderer will now automatically call beginPath on the target context before processing the command stack. This has the effect of clearing off any sub-paths that may have persisted on the stack from previous Graphics objects or frames. 2018-09-04 23:33:38 +01:00
Richard Davey
203fb989c6
Merge pull request #4012 from jf908/master
Allow matter js bodies to render their debug graphics individually
2018-09-04 22:44:12 +01:00
Richard Davey
424a1e328e Merge branch 'master' of https://github.com/photonstorm/phaser 2018-09-04 22:43:28 +01:00
Richard Davey
5b98386677 Calling Text.setStyle would make the Text vanish if you didn't provide a resolution property in the style configuration object. Calling setStyle now only changes the properties given in the object, leaving any previously changed properties as-is. Fix #4011 2018-09-04 22:43:25 +01:00
Alexey Molchan
2aba731f4a fixed incorrect properties assignment in setTileScale method 2018-09-04 22:19:42 +03:00
jf908
4f5b43e0ed
Allow matter js bodies to render their debug graphics individually 2018-09-04 18:45:54 +01:00
Richard Davey
03aeaefe21 Preparing for 3.13 development 2018-09-04 16:01:42 +01:00
Richard Davey
cb1c6f614d Preparing for 3.12 release 2018-09-04 15:42:10 +01:00
Richard Davey
2df27a4db8 Resolution adjust 2018-09-04 15:13:48 +01:00
Richard Davey
ecf952ef77 Removed component code 2018-09-04 15:13:32 +01:00
Richard Davey
89967af66b Fixed Camera input resolution 2018-09-04 14:04:48 +01:00
Richard Davey
a103b0e6a6 Fixed FB Plugin paths to avoid build errors if plugin is enabled. 2018-09-04 12:35:23 +01:00
Richard Davey
a6e650f26f
Merge pull request #4006 from samme/docs/arcade-image-body
Correct types for ArcadeImage#body, ArcadeSprite#body
2018-09-04 12:23:26 +01:00
Richard Davey
7c55e65543 Arcade Physics Body deltaX and deltaY methods will now return the previous steps delta values, rather than zero. Fix #3987 2018-09-04 12:16:24 +01:00
Richard Davey
3d989e136f Arcade Physics World collideSpriteVsTilemapLayer now syncs the collision results back to the body, allowing you to call collide from within an update loop once again. Fix #3999 2018-09-04 12:12:51 +01:00
Richard Davey
b19449f518 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-09-03 13:12:41 +01:00
Richard Davey
78ffd41704 More specific includes 2018-09-03 13:12:37 +01:00
samme
c0e141513c Correct types for ArcadeImage#body, ArcadeSprite#body 2018-09-02 14:45:39 -07:00
Richard Davey
cc90c6756b
Merge pull request #4001 from khaleb85/master
Fixed animation playReverse with yoyo flag
2018-09-01 17:45:31 +01:00
Shukizu
96c7a4830c fixed playReverse with repeat bigger than 1 #3837 2018-09-01 12:40:26 -03:00
Shukizu
a1bb80997e fixed play in yoyo mode, bug found by @Ben-Millions #3837 2018-09-01 10:48:23 -03:00
Richard Davey
2c4f0d0d68 Added missing jsdocs for #3996 2018-09-01 10:19:38 +01:00
Richard Davey
ec412b2d89
Merge pull request #3996 from iamchristopher/feature-polygon-get-points
Adds Polygon.Perimeter and Polygon.GetPoints
2018-09-01 10:17:50 +01:00
Richard Davey
00a31d2d88 Updated docs. Close #3997 2018-09-01 10:14:22 +01:00
iamchristopher
0a96bf356b Added Polygon.GetPoints 2018-08-31 20:30:36 -04:00
iamchristopher
a1335d3cc0 Added Polygon.Perimeter 2018-08-31 20:21:34 -04:00
Richard Davey
0a4fc5b026 Calling setTimeScale on the Sprite's Animation component will now set the time scale value and keep it set until you change it again. Previously it would be reset to 1 when a new animation was loaded into the component, but this no longer happens - once the time scale is set it remains in effect, regardless of which animations are played on the Sprite. 2018-08-31 18:45:50 +01:00
Richard Davey
55003641d2 Clamp scissor 2018-08-31 18:19:31 +01:00
Richard Davey
b317dc3d30 Set autoResize to true for now. Fix #3928 2018-08-31 18:19:25 +01:00
Richard Davey
0b95ed0478 Fixed scissors when using a small cam with render texture 2018-08-31 16:25:04 +01:00
Richard Davey
79b4f07530 Fixed mask flush and sped-up the render loop slightly (removed 1 duplicate conditional) 2018-08-31 14:40:12 +01:00
Richard Davey
5270b463d0 Removed visible check as it's no longer needed 2018-08-31 14:39:38 +01:00
Richard Davey
4794909e44 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-31 13:27:28 +01:00
Richard Davey
ecae9d0503 The setTintFill method would ignore the alpha value of the Game Object in the shader. The alpha value is now blended with the tint fill, allowing you to properly alpha out tint-filled Game Objects. Fix #3992 2018-08-31 13:27:24 +01:00
Dhruv Yadav
0fd6d9d7dc Fixed a trailing spaces issue from the addKey(string) whitespace update 2018-08-30 21:58:54 +05:30
Dhruv Yadav
75319233f2 Styling updates for addKey(string) whitespace fix 2018-08-30 21:53:19 +05:30
Dhruv Yadav
f29892b73f Fixed addKeys(string) whitespace issue 2018-08-30 21:36:36 +05:30
Richard Davey
14d3f6b35c Calling Arcade Physics collide during an update method wouldn't inject the results back into the Body parent, causing the bodies to carry on moving. Using Colliders worked, but manually checking did not. Now, both methods work. Fix #3777 2018-08-29 16:35:13 +01:00
Richard Davey
e4a7977bb9 The Transform Matrix has a new method applyInverse which will take an x/y position and inverse translate it through the current matrix. 2018-08-29 16:11:59 +01:00
Richard Davey
91f7e27ae8 Transform.getWorldTransformMatrix has been recoded to iterate the transform parents correctly, applying the matrix multiplications as it goes. This (along with some changes in the Input Manager) fix the issue with Game Objects inside of Containers failing hit tests between certain angles. Fix #3920 2018-08-29 16:10:48 +01:00
Richard Davey
0c4de357cf The Input Manager has gained a new private property _tempMatrix2. This is used internally in the hitTest checks to avoid constant matrix creation. 2018-08-29 16:08:04 +01:00
Richard Davey
3469ff2cfd Arcade Physics World has gained two new private properties _tempMatrix and _tempMatrix2. These are used by all bodies in the simulation that need a temporal matrix for calculations, rather than having their own instances. 2018-08-29 16:07:07 +01:00
Richard Davey
2c525845be The Arcade Physics Body _tempMatrix property has been removed. It was only used if the Body's Game Object had a parent. The matrix has been moved to the World instance instead, shared by all bodies. 2018-08-29 16:06:13 +01:00
Richard Davey
5c091f4ff9 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-29 11:57:33 +01:00
Richard Davey
7041bd99ec The InputManager.inputCandidate method, which determines if a Game Object can be interacted with by a given Pointer and Camera combination, now takes the full camera status into consideration. This means if a Camera is set to ignore a Game Object you can now longer interact with it, or if the Camera is ignoring a Container with an interactive Game Object inside it, you cannot interact with the Container children any more. Previously they would interact regardless of the Camera state. Fix #3984 2018-08-29 11:57:30 +01:00
Richard Davey
2e421b4349
Merge pull request #3981 from hypertrifle/master
Updated @param notation that cause issues generating docs
2018-08-29 11:18:22 +01:00
spontoreau
e922f378f4
Add CursorKeys type to Phaser.Input.Keyboard namespace 2018-08-26 22:28:21 +02:00
hypertrifle
37da44f9c9
Updated @param notation that cause issues generating docs
there was a double pipe - now there isn't
2018-08-26 12:54:18 +01:00
Richard Davey
cb0eeb3d63 Added default blank frame for custom pipelines #3978 2018-08-24 23:58:27 +01:00
Richard Davey
5eaeb208f6 Preparing for beta4 2018-08-23 19:35:42 +01:00
Richard Davey
a585df3abf DOM Elements moved behind experimental flag for now 2018-08-23 18:11:10 +01:00
Richard Davey
eaeab041ee Added render to texture docs 2018-08-23 18:10:55 +01:00
Richard Davey
618754b411 Moved FB plugin to plugins folder 2018-08-23 18:10:46 +01:00
Richard Davey
7765496b19 Moved FB plugin behind build flag 2018-08-23 18:10:20 +01:00
Richard Davey
1d4b2ed01a Removed un-needed methods and fixed TileSprite and Tilemap Lights. Fix #3949 2018-08-23 17:30:27 +01:00
Richard Davey
b25ff9e065 Moved Camera3D to optional plugin
Also included build flag to allow it to be compiled into the standard lib if required (saves a bunch of KB in duplicated classes)
2018-08-23 15:30:21 +01:00
Richard Davey
beb286297c Camera3D Plugin moved out of the main src folder to optional plugin 2018-08-23 13:18:25 +01:00
Richard Davey
f24204ee03 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-23 12:31:59 +01:00
Richard Davey
5443f9cf5a Fixed the way the arc overshoot works. 2018-08-23 12:31:55 +01:00
Richard Davey
51cc10bcb5
Merge pull request #3968 from samme/fix/arcade-world-disable
Fix Arcade.World#disable
2018-08-23 11:40:35 +01:00
Richard Davey
b7c74a0ddf
Merge pull request #3970 from samme/docs/addLight
Correct LightsManager#addLight docs
2018-08-23 11:39:53 +01:00
samme
fb23367c63 Fix Arcade.World#disable
It was passing the wrong argument to disableBody, so failing.
2018-08-22 13:23:58 -07:00
samme
408b2df350 Correct LightsManager#addLight docs
All arguments are optional
2018-08-22 13:07:41 -07:00
samme
b241315fa1 Correct Structs.Set#iterate docs
callbackScope argument is optional
2018-08-22 13:06:50 -07:00
Richard Davey
57758942d1 Account for trim in pixel perfect hit tests. Fix #3938 2018-08-22 17:11:20 +01:00
Richard Davey
144cfaff8f Previously the Input Manager would create a Touch handler unless the Game Config had input.touch set to false (the default was true). If no such property is set, it no longer defaults to true and instead is set to whatever Device.input.touch returns. On non-touchscreen desktops this means it will now only create one single Pointer, rather than two. 2018-08-22 17:01:21 +01:00
Richard Davey
f3b35f0466 lint fix 2018-08-22 16:14:40 +01:00
Richard Davey
da64e41b2f Fixed Matter require call freaking out webpack 2018-08-22 15:54:00 +01:00
Richard Davey
5bf8fba1de Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-22 15:43:13 +01:00
Richard Davey
dc868f8368 You can now resize SVG files during load, before they are rendered to textures.
Also added scale support and fixed some viewBox settings (#3941)
2018-08-22 15:43:09 +01:00
Richard Davey
e99dfef136 Docs fixes 2018-08-22 15:42:39 +01:00
TadejZupancic
1fa16f00df
RenderTexture: Texture is always destroyed (canvas)
Forgot to check the flag for canvas renderer.
2018-08-22 15:57:57 +02:00
Richard Davey
bd40360dbc
Merge pull request #3941 from ysraelJMM/master
Resizing of the SVG in the preload
2018-08-22 14:18:40 +01:00
Richard Davey
65fb366ecd Matter updated to 0.14.2. Fix #3929 2018-08-22 14:01:35 +01:00
YsraelJMM
b8371eba7b
SVG rezise preload. svgConfig object
svgConfig, 
contains the width and height. Change zise.
2018-08-21 20:01:38 -05:00
Richard Davey
0dccc3a510 Updated jsdocs. Fix #3849 2018-08-21 23:48:03 +01:00
Richard Davey
2dfe321d67 The getPixelAlpha and getPixel methods in the Texture Manager would allow x/y coordinates from outside the cut area of a frame. It now tests to ensure they're within the frame. Fix #3937 2018-08-21 23:25:08 +01:00
Richard Davey
198f353c9a The default Container Blend Mode is now SKIP_TEST. This allows you to either set a blend mode for a Container, in which case all children use that blend mode. Or, you can set a blend mode on the children and the children will render using their own blend modes, as the Container doesn't have one set. The WebGL and Canvas Renderer functions have also been updated to support this change. Fix #3684 2018-08-21 22:07:35 +01:00
Richard Davey
01290afda9 A Game Object couldn't have a blend mode of SKIP_TEST set by using the getter or the setBlendMode method. 2018-08-21 21:54:38 +01:00
Richard Davey
502b66bcac lint fix 2018-08-21 18:13:53 +01:00
Richard Davey
f8b3fcf539 Cull Tiles now needs a render order for the layer data. 2018-08-21 18:02:00 +01:00
Richard Davey
838cdfc418 Added renderOrder property, setRenderOrder method and updated upload to use the setting. 2018-08-21 18:01:47 +01:00
Richard Davey
cc5bf41b25 Added renderOrder property and setRenderOrder method. 2018-08-21 18:01:33 +01:00
Richard Davey
b0888d2762 Added renderOrder property, setRenderOrder and apply them during layer creation. 2018-08-21 17:59:28 +01:00
Richard Davey
a7847e9cb9 Added renderOrder property. 2018-08-21 17:55:40 +01:00
Richard Davey
a462250cd9 Now extracts the renderorder property from the Tiled JSON 2018-08-21 17:54:49 +01:00
Richard Davey
a98b3c3b15 In Matter.js if you scaled a Body it would only scale correctly once, due to the way Matter handles scaling internally. We now automatically reset the Matter scale before applying the new value, which allows you to keep the Phaser and Matter object scales in sync. Fix #3785 #3951 2018-08-21 15:55:39 +01:00
Richard Davey
36dd7ae405
Merge pull request #3819 from samme/feature/createFromObjects
Copy custom properties in createFromObjects()
2018-08-21 15:38:48 +01:00
TadejZupancic
bff7f99fe1
Update RenderTexture.js 2018-08-21 15:40:10 +02:00
TadejZupancic
50a3555cad
RenderTexture: Texture is always destroyed
Texture is now destroyed only if it was not saved to the TextureManager, so it can be reused.
2018-08-21 15:32:10 +02:00
Richard Davey
3cc17f5c97 The RandomDataGenerator will now create a default random seed if you instantiate your own version of the class (instead of using Phaser.Math.RND) and don't provide a seed for it 2018-08-21 14:06:41 +01:00
Richard Davey
8d1caff0a4 Updated argument name 2018-08-21 02:29:54 +01:00
Richard Davey
0eef6f1bb9 Updated scroll factor docs to clarify impact on physics bodies #3810 2018-08-20 19:19:53 +01:00
Richard Davey
f6e25ebfd1
Merge pull request #3850 from polarstoat/animation-docs-fix
Add AnimationManager.generateFrameNumbers documentation
2018-08-20 18:31:35 +01:00
Richard Davey
6efb88b24b
Merge pull request #3900 from thejonanshow/upgrade_konami_code
Correct Konami code in createCombo documentation.
2018-08-20 18:30:18 +01:00
Richard Davey
817dd94d73
Merge pull request #3916 from ampled/gameconfig-jsdoc
Typedefs for nested GameConfig-objects
2018-08-20 18:27:06 +01:00
Richard Davey
28b1f0cfe6
Merge pull request #3926 from Mursaat/arcade-squared-dist
Replace DistanceBetween with DistanceSquared in closest() and furthest() functions (ArcadePhysics.js)
2018-08-20 18:26:21 +01:00
Richard Davey
4faa0ed228
Merge pull request #3942 from goldfire/small-pre-render-optimize
Don't set gl.clearColor when no clearBeforeRender
2018-08-20 18:22:21 +01:00
Richard Davey
e71d72ec66
Merge pull request #3927 from TadejZupancic/patch-11
Wrong bounds/displayOrigin on BitmapText text change
2018-08-20 18:21:15 +01:00
Richard Davey
27c3cc30ac Previously, changing a Text object by setting its text property directly wouldn't change the text being rendered as using setText was the expected way to change what was being displayed. Internally the text property has been renamed to _text and flagged as private, and a new getter / setter for text has been added, which hands over to the setText method, meaning you can now use both ways of setting the text. Fix #3919 2018-08-20 17:41:05 +01:00
Richard Davey
54dbdce1c7 Now calls the correct frame resize method. Fix #3913 2018-08-20 17:06:06 +01:00
Richard Davey
5da3c811f2 Updated beta 2018-08-20 17:04:59 +01:00
rootasjey
e2c505554a Fix JSDoc in Tilemap 2018-08-20 13:20:23 +02:00
Richard Davey
224d587928
Merge pull request #3907 from iamchristopher/feature-data-manager-changedata-prev-val
Emit previous value with DataManager's `changedata` event
2018-08-18 16:06:47 +01:00
Richard Davey
eb220df3f6
Merge pull request #3947 from padme-amidala/bugfix/3946-fix-export-for-canvas
Fixed an issue where module exports are not named correct for CanvasInterpolation and CanvasPool
2018-08-18 16:04:37 +01:00
Richard Davey
7918f0991d
Merge pull request #3937 from goldfire/goldfire-patch-1
Use correct frame name in pixel perfect hit test
2018-08-18 16:03:07 +01:00
Andre Hofmeister
68900651bf Fixed an issue where module exports are not named correct for CanvasInterpolation and CanvasPool #3946. 2018-08-18 13:30:16 +02:00
YsraelJMM
081f4188df
Resize SVG in the preload.
The third time's the charm.
this.load.svg (key, src, {width: number, height: number}).
2018-08-17 14:24:31 -05:00
James Simpson
1ac7c969ea
Don't set gl.clearColor when no clearBeforeRender
Unless I'm missing something, the `gl.clearColor` command is unnecessary when you have `this.config.clearBeforeRender` set to `false`. This simply moves that into the config check to eliminate an unused command in those situations.
2018-08-17 14:03:17 -05:00
YsraelJMM
fb414129f8
Resizing SVG in the preload (2)
this.load.svg(key, src, {width: number, height: number});
example: https://www.youtube.com/watch?v=Kd7pNjY-FLk
2018-08-17 13:50:23 -05:00
YsraelJMM
1816e529e1
Resizing of the SVG in the preload
One of the main qualities of SVG images, is its scalability, not being able to use this, is to reduce it to be a bit more image. An SVG file has an XML format, so it can be modified with the DOM.
In order to collaborate, I have put the option to modify the parameters of the SVG and in this way make it adaptable.
The modification gives the option of being able to choose the size in the preload to which you want to have the image before rasterizing it; And so avoid the subsequent scaling that will not have the same quality.
You can see the example here: 
https://www.youtube.com/watch?v=Kd7pNjY-FLk
tested in version 3.11 It does not interfere with the original code.
2018-08-17 12:37:35 -05:00
Chris Andrew
f46bd2cacd Fixed documentation for a Vector2 constructor parameter and its ZERO constant. 2018-08-17 00:18:26 +01:00
James Simpson
e4ccc8ec2d
Use correct frame name in pixel perfect hit test
`gameObject.frame.key` doesn't exist and was passing an undefined value to `getPixelAlpha`. This just changes it to the correct `gameObject.frame.name` value.
2018-08-16 12:23:10 -05:00
TadejZupancic
7992924aae
Wrong bounds/displayTextOrigin on BitmapText text change
updateDisplayOrigin needs current width and height, which are not recalculated if the _dirty is not set to true.
2018-08-14 12:15:59 +02:00
Aurélien DUSSAUGE
b14d920581 Replace DistanceBetween with DistanceSquared in closest() and furthest() functions (ArcadePhysics.js) 2018-08-13 21:59:58 +02:00
Eirik S Korsnes
fe748e9dc7 - wrote dot-notated config properties as seperate typedefs
- add some missing properties
2018-08-12 12:19:48 +02:00
iamchristopher
9ef5fde70e Added previous value when changing value 2018-08-09 15:28:56 -04:00
Richard Davey
4bdb0de312 The Arcade Physics Body.speed property is now set whenever you set the velocity via setVelocity or setVelocityX or setVelocityY which stops the body velocity being reset to zero if useDamping is enabled. Fix #3888 2018-08-08 17:31:22 +01:00
Richard Davey
fe2ddcf934 Updated jsdocs 2018-08-08 17:03:08 +01:00
Richard Davey
764de08ff4 Camera.ignore can now take nested-arrays of Game Objects and also supports both Groups and Containers. 2018-08-08 16:46:14 +01:00
Richard Davey
84ef115c67 Remove un-used code 2018-08-08 15:01:41 +01:00
Richard Davey
25268d2a40 Recalc size on content change. 2018-08-08 15:01:29 +01:00
Richard Davey
353b7b5edd RenderTexture destroy working. Fix #3901 2018-08-08 13:56:43 +01:00
Richard Davey
66afe973af Trying mixins 2018-08-08 01:33:55 +01:00
Jonan Scheffler
7c525b00fa Correct Konami code in createCombo documentation. 2018-08-07 14:25:48 -07:00
Christian Freitag
1909d73a0e - Added initial type definitions for plugins property within game object 2018-08-07 21:38:28 +02:00
Richard Davey
3a4bfa679b Added experimental Camera to Render Texture 2018-08-07 16:27:21 +01:00
Richard Davey
65d81ec426 Formatting 2018-08-07 16:26:22 +01:00
Richard Davey
50baa268e3 addBase64 will return intance for chaining 2018-08-07 16:26:15 +01:00
Richard Davey
8573e60273 No config, no update 2018-08-07 16:25:55 +01:00
Richard Davey
8a9cfdf83b Added properties and methods to Scale Manager ready for integration 2018-08-07 16:25:45 +01:00
Richard Davey
9f98b4c438 Moved to beta 2 2018-08-07 11:20:00 +01:00
Richard Davey
2d91d4a26b You can now access the Game instance directly from a Scene using this.game 2018-08-07 11:19:20 +01:00
Richard Davey
80dcb601c7 Added bots methods 2018-08-07 04:32:26 +01:00
Richard Davey
9399f32de0 FB API calls complete 2018-08-07 03:16:48 +01:00
Richard Davey
a499345369 Leaderboard objects added 2018-08-07 01:25:32 +01:00
Richard Davey
d415e2ff7f Updated FB Plugin 2018-08-07 00:54:34 +01:00
Richard Davey
fcf5d20d7b Disable culling if layer has non-1 scroll factor #3893 2018-08-06 22:22:32 +01:00
Richard Davey
d45c1c9d97 Updating FB API 2018-08-06 17:48:58 +01:00
Richard Davey
f9e498353d Fixed lack of TempMatrix for Graphics generateTexture 2018-08-06 16:19:30 +01:00
Richard Davey
faeed47b5e eslint fixes 2018-08-06 15:32:08 +01:00
Richard Davey
e3f5590fc3 Use var to cut down on bytes 2018-08-06 15:29:36 +01:00
Richard Davey
26cc84522d The CanvasRenderer.BlitImage function has been removed, as has the associated blitImage property from the Canvas Renderer as they're no longer used. 2018-08-06 15:29:27 +01:00
Richard Davey
fbb67ac201 The CanvasRenderer.DrawImage function has been removed, as has the associated drawImage property from the Canvas Renderer as they're no longer used. 2018-08-06 15:24:51 +01:00
Richard Davey
702e738ffc When a Static Tilemap Layer is generated in WebGL it will use the Cameras roundPixels value to clamp the tile coordinates. 2018-08-06 14:16:36 +01:00
Richard Davey
50821c29ac Updated jsdocs 2018-08-06 13:45:56 +01:00
Richard Davey
cb6a6d2394 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-06 13:31:31 +01:00
Richard Davey
86965c28e4 The Tilemap Culling function now uses the Tilemap tile dimensions for its bounds calculations, instead of the layer tile sizes, as they two don't have to match and it's the underlying grid size that takes precedence when calculating visible tiles. Fix #3893 2018-08-06 13:31:27 +01:00
Richard Davey
e1f554b119
Merge pull request #3894 from mikewesthad/fix-collision-end-triggering-multiple-times
Fix `collisionEnd` triggering many times in Phaser's Matter.js copy
2018-08-06 11:48:31 +01:00
Richard Davey
7eda747230
Merge pull request #3891 from FelixNemis/retrofont-line-spacing
Add lineSpacing option to RetroFont Config
2018-08-06 11:46:05 +01:00
Michael Hadley
7675615b70 Update matter copy with bug fix from liabru/matter-js@4e04043fe0 2018-08-05 21:29:49 -05:00
Richard Davey
41c9f8b1e1 Docs update 2018-08-06 00:41:34 +01:00
Charles Burnham
6a1c677677 Add lineSpacing option to RetroFont Config 2018-08-04 12:52:27 -05:00
Richard Davey
9675c269e6 Split Camera up into BaseCamera, which Camera now extends. 2018-08-04 13:05:41 +01:00
Richard Davey
4deb8e49ad eslint fixes 2018-08-03 19:37:42 +01:00
Richard Davey
6027e9ca5a Render Textures can now be cropped. Added missing jsdocs. 2018-08-03 19:30:55 +01:00
Richard Davey
d5c558b8e4 Render Texture now uses unified drawing functions 2018-08-03 19:17:39 +01:00
Richard Davey
82251cd85b Removed Matrix Stack. No longer needed. 2018-08-03 19:17:12 +01:00
Richard Davey
2ab24c49c4 Tile Sprites updated to use new internal canvas and support crop 2018-08-03 19:14:06 +01:00
Richard Davey
e91d95e107 Text updated to use proper texture frame and now supports crop 2018-08-03 19:07:12 +01:00
Richard Davey
177e47cb84 The Texture Manager has a new method called renameTexture which will let you rename a texture, changing the key to the new one given. All existing Game Objects will still maintain their reference, even after a rename. 2018-08-03 19:03:52 +01:00
Richard Davey
708a857a26 SetTransform is a new Canvas Renderer function that consolidates the process of preparing a Game Object for rendering, without actually rendering it. This is used internally by the Graphics and Bitmap Text classes. 2018-08-03 19:02:43 +01:00
Richard Davey
8ed749bcb1 Removed old scissor code 2018-08-03 18:57:03 +01:00
Richard Davey
ae46e11e35 Skip processing if no tiles 2018-08-03 18:56:52 +01:00
Richard Davey
e8e32ecf2c Swap look-up for direct reference 2018-08-03 18:56:12 +01:00
Richard Davey
0a35275c1a TransformMatrix.setToContext is a new method that will set the values from the Matrix to the given Canvas Rendering Context using setTransform rather than transform. 2018-08-03 18:55:33 +01:00
Richard Davey
22bc6d2a86 The batchTexture method in the Texture Tint Pipeline now supports cropped Game Objects and will adjust the drawn texture frame accordingly. 2018-08-03 18:54:48 +01:00
Richard Davey
ca68904953 The Canvas Renderer has a new batchSprite method that consolidates the process of drawing a texture-based Game Object to the canvas. It processes the alpha, blend mode and matrix calculations in a single function and now is used by nearly all Game Object canvas renderers. 2018-08-03 18:53:50 +01:00
Richard Davey
921cc738d9 Render Textures now use the frame source to store the glTexture in, not locally. 2018-08-03 18:51:07 +01:00
Richard Davey
c98f5edc23 Added resetCropObject method to cut down on duplicate code. 2018-08-03 18:50:36 +01:00
Richard Davey
b65cf0647b New Crop Game Object component. 2018-08-03 18:49:10 +01:00
Richard Davey
8c842f67de Phaser.Utils.String.UUID will return an RFC4122 complaint UUID as a string. This is used internally to avoid cache key conflicts, but is exposed for your own use as well. 2018-08-03 18:47:27 +01:00
Richard Davey
fc0dc13930 Removed use of currentBlendMode and currentAlpha 2018-08-03 01:53:51 +01:00
Richard Davey
9f44896a3f The Blend Mode is now set directly in all Canvas Renderers without comparing it to what's stored in the Canvas Renderer. This fixes problems where the blend mode would be lost between two different Game Objects because they restored the context, but didn't update the renderer flag. Game Objects in Canvas can now mix and match blend modes across the display list. 2018-08-03 01:29:18 +01:00
Richard Davey
e0918df6b0 Canvas particle renderer now using same matrix math as webgl 2018-08-03 01:04:46 +01:00
Richard Davey
0a035353fa lint fix 2018-08-03 01:04:25 +01:00
Richard Davey
70b234952a Updated the canvas tilemap layer renderers to support parent matrix and tidied up the internal flow 2018-08-03 00:50:45 +01:00
Richard Davey
6ef7033b44 Added in parent matrix support and refactored the drawing 2018-08-03 00:42:27 +01:00
Richard Davey
31421ee00a The CullTiles updates from 3.11 didn't factor in the position of the Tilemap Layer to its bounds calculations, causing Static layers displayed out of the Camera viewport to never render in Canvas mode. The method has also been optimized further, with less divisions and less checks if culling is disabled. 2018-08-03 00:40:56 +01:00
Richard Davey
1b5f084640 Added jsdoc 2018-08-03 00:34:21 +01:00
Richard Davey
eff01adbc9 Added divide argument to the Snap methods. 2018-08-03 00:34:11 +01:00
Richard Davey
318cc87e59 Use proper matrix for static layer, so we can do fun things with Render Textures 2018-08-02 22:15:08 +01:00
Richard Davey
8135b687fb Added all the missing cull methods and properties into the Static Tilemap Layer, which is used by the Canvas Renderer 2018-08-02 22:14:51 +01:00
Richard Davey
f1d3412c38 Corrected data types 2018-08-02 22:14:32 +01:00
Richard Davey
66f6f9abc1 Removed un-used matrix 2018-08-02 22:14:23 +01:00
Richard Davey
0967bfcab4 Should use currentContext, not gameContext 2018-08-02 17:59:30 +01:00
Richard Davey
217bfd2343 Sorting out frame access 2018-08-02 17:59:19 +01:00
Richard Davey
96509e4ca4 Tidying p 2018-08-02 17:59:11 +01:00
Richard Davey
2a8dbb0c42 Removed un-used vars 2018-08-02 17:33:01 +01:00
Richard Davey
9ccb594958 Fixed Graphics Canvas Renderer so it uses the matrix values properly. 2018-08-02 17:24:29 +01:00
Richard Davey
c4c8b9e6ea Added copyToContext method 2018-08-02 17:23:52 +01:00
Richard Davey
674fc487ec Added missing commands 2018-08-02 17:03:41 +01:00
Richard Davey
20b74e746a Fixed parent order 2018-08-02 16:19:14 +01:00
Richard Davey
2a66e01577 Added source property so we can purge TSs based on origin 2018-08-02 16:16:46 +01:00
Richard Davey
7965c7aae4 Removed un-needed files. 2018-08-02 15:59:29 +01:00
Richard Davey
51163e6d4e If you set window.FORCE_WEBGL or window.FORCE_CANVAS in the window in which the Phaser game is loaded it will over-ride the renderer type setting in your game config, and force either WebGL or Canvas. This is handy for quickly testing the differences between renderers without having to do a new build each time. 2018-08-02 15:58:36 +01:00
Richard Davey
b83c8cf513 Merged all the functions into the single class and tidied up the naming. 2018-08-02 14:58:09 +01:00
Richard Davey
286f36cd1e Added ability for the Canvas Renderer to change context. 2018-08-02 14:57:37 +01:00
Richard Davey
122e6cab8a Fixed frame var 2018-08-02 12:35:26 +01:00
Richard Davey
affe47714f Render Textures can now save themselves to the Texture Manager. 2018-08-02 12:35:17 +01:00
Richard Davey
7566236d9b Added isRenderTexture property. 2018-08-02 12:34:57 +01:00
Richard Davey
261cb79d0d Added addRenderTexture method. 2018-08-02 12:34:01 +01:00
Richard Davey
3efc800bf7 Use global string to cut down on size a little. 2018-08-02 12:33:48 +01:00
Richard Davey
72d54dd1ac Only clear if dirty. Only render children is visible. 2018-08-01 20:25:55 +01:00
Richard Davey
c9e0963696 Added dirty fag 2018-08-01 20:25:40 +01:00
Richard Davey
a11b059531 Draw a whole Scene now! 2018-08-01 18:28:14 +01:00
Richard Davey
c9efa21cfd Added getChildren to keep inline with Group 2018-08-01 18:28:06 +01:00
Richard Davey
9bc71dc676 New handler so RenderTextures can draw any game object, group or container 2018-08-01 18:02:21 +01:00
Richard Davey
56a0b3b3bf Expose more functions (until we tidy this up) 2018-08-01 18:02:05 +01:00
Richard Davey
86b829efa6 Blank the texture after drawing 2018-08-01 18:01:54 +01:00
Richard Davey
d50b72dd14 Fixed Group creation arguments 2018-08-01 18:01:36 +01:00
Richard Davey
46552c8f2e Remove strict check 2018-08-01 16:04:08 +01:00
Richard Davey
f540d03346 Removed un-needed checks (willRender handles it now) 2018-08-01 16:03:58 +01:00
Richard Davey
2220faba49 Removed un-used method 2018-08-01 15:20:10 +01:00
Richard Davey
9977497137 Fixed Group config / children detection 2018-08-01 15:19:56 +01:00
Richard Davey
7ebf5766e8 Added docs for blankTexture and setBlankTexture. 2018-08-01 13:23:03 +01:00
Richard Davey
73524df816 The Game boot event flow has changed slightly. The Game will now listen for a texturesready event, which is dispatched by the Texture Manager when the default textures have finished processing. Upon receiving this, the Game will emit the ready event, which all the other systems listen for and respond to. The difference is that the Renderer uses the texturesready event to ensure that it is the first thing to be activated, before any other system. 2018-08-01 13:18:28 +01:00
Richard Davey
94e4411ac1 Testing RenderTexture updates to allow any GameObject to be drawn to it 2018-08-01 00:01:16 +01:00
Richard Davey
a4db967b19 Added 4 temp matrices to the Canvas renderer. 2018-07-31 23:23:04 +01:00
Richard Davey
7313573161 The ParticleEmitterManager now has the Transform component. This means you can now set the position, rotation or scale of the Emitter Manager, and it will influence every Emitter it is rendering. The Managers transform is mixed with that of the Camera. This works in both Canvas and WebGL. 2018-07-31 23:21:07 +01:00
Richard Davey
c3cc4317dd Particle.color has been removed as it's now calculated during rendering to allow for Camera alpha support. 2018-07-31 23:18:49 +01:00
Polar stoat
beaedc12e8 Fix documentation formatting
Add fullstops to end of each line
Fix JSDoc formatting for properties that take multiple types
2018-07-31 20:36:54 +01:00
Richard Davey
9d7ec132a4 Refactoring RenderTexture to remove the matrix stack and add in support for drawing Game Objects and arrays of them 2018-07-31 17:10:26 +01:00
Richard Davey
be379fd3a1 Added batchTextureFrame method 2018-07-31 17:10:02 +01:00
Richard Davey
a3fc263360 Binding a framebuffer sets the viewport size 2018-07-31 17:09:47 +01:00
Richard Davey
8cb812bbec Merged jsdocs (re: #3823) 2018-07-31 15:13:21 +01:00
Richard Davey
84ae027665 lint fix 2018-07-31 12:59:11 +01:00
Richard Davey
718d72b4c8 Container child willRender check. Fix #3881 2018-07-31 12:57:31 +01:00
Richard Davey
a29aba0a11
Merge pull request #3859 from samme/feature/plugin-data
Pass `data` value to global plugins
2018-07-31 11:39:36 +01:00
Richard Davey
eb30a2118b
Merge pull request #3872 from ampled/master
add typedef for SpriteConfig and allowed GameObject#update signature override
2018-07-31 11:38:06 +01:00
Richard Davey
fa2b78192c The CameraManager was accidentally adding extra destroy event calls when a Scene was restarted, causing an Uncaught TypeError: Cannot read property 'events' of null when trying to destroy a game instance having swapped from a Scene to another, and back again. Fix #3878 2018-07-31 11:34:59 +01:00
Richard Davey
d0f3d85cbd Iterate from front to back for destroy 2018-07-31 11:33:38 +01:00
Richard Davey
5aafad5f88 Don't process events if the manager has been removed 2018-07-31 11:33:18 +01:00
Richard Davey
7e73024d83 Added new noReturn destroy boolean for when you absolutely want to nuke the site from orbit. 2018-07-31 10:29:11 +01:00
Richard Davey
063a432ec9 Destroy will now clear out all custom plugins. Fix #3856 2018-07-31 10:28:36 +01:00
Richard Davey
75db482ec6 Added destroyCustomPlugin and destroyCorePlugin 2018-07-31 10:28:09 +01:00
Richard Davey
3d23013b86 Body setSize changes to fix #3863 PR 2018-07-31 09:39:22 +01:00
Richard Davey
16234491f2
Merge pull request #3863 from tarsupin/patch-2
Empty params reset to current texture size
2018-07-31 09:31:05 +01:00
Chris Andrew
1ceec99306 Added missing property documentation to FixedKeyControlConfig (#3874, thanks @guzmonne). 2018-07-31 00:36:04 +01:00
Chris Andrew
634edcf538 Fixed Graphics.generateTexture() causing a runtime error (#3879).
The Graphics object had new dependencies (1a62a356) that were not provided when the static Graphics.TargetCamera object was used by the Graphics.generateTexture() method. Providing a Graphics instances scene object to the TargetCamera at texture rendering time resolved the issue.
2018-07-30 23:02:40 +01:00
Chris Andrew
157dc59999 Fixed invalid syntax in the HTMLFile's loader file type documentation example (#3873). 2018-07-30 19:01:53 +01:00
Chris Andrew
3141510fdf Fixed invalid syntax in some loader file type documentation examples (#3873). 2018-07-30 18:52:53 +01:00
Richard Davey
a8b605f42d Zone now calls updateDisplayOrigin in its constructor, causing the displayOriginX and displayOriginY values to now be correct if you create a Zone and then don't resize it. Fix #3865 2018-07-29 12:34:21 +01:00
Richard Davey
189c2c7e0f Merge branch 'master' of https://github.com/photonstorm/phaser 2018-07-29 12:24:17 +01:00
Richard Davey
7fe9167657 The alpha value is now always set for Render Textures in canvas mode, regardless of the previous alpha value in the renderer 2018-07-29 12:23:52 +01:00
Richard Davey
a1ae1744ac RenderTexture.preDestroy will now release the canvas back to the CanvasPool if running in canvas mode
Also removed un-used `drawFrame` references.
2018-07-29 12:20:09 +01:00
Richard Davey
34b27fd57a ParticleEmitter would fail to draw a textured particle in Canvas mode 2018-07-29 12:16:42 +01:00
Richard Davey
56e1e04da3 RenderTexture.draw would fail to draw the frame in Canvas mode 2018-07-29 12:10:28 +01:00
Richard Davey
7e55d5adac BlitterCanvasRenderer would fail to render a Bob in Canvas mode if it was flipped 2018-07-29 12:09:03 +01:00
Eirik Slinning Korsnes
09113cb7a3
wrap ({number|string)} 2018-07-29 12:47:33 +02:00
Richard Davey
27d0bd8a9b
Merge pull request #3844 from samme/fix/closest-furthest
Fix ArcadePhysics#closest, furthest
2018-07-29 11:45:22 +01:00
ampled
50c787a9c8 - add typedef for SpriteConfig extends GameObjectConfig
- allow update-function signature to be overriden by GameObject subclasses
2018-07-29 12:19:04 +02:00
Richard Davey
72dbfcd9f4 jsdoc path fix 2018-07-28 21:37:51 +01:00
Richard Davey
162e910d18 Added intent methods and leaderboard score class 2018-07-27 11:19:41 +01:00
Richard Davey
6749417ef3 lint fix 2018-07-27 11:19:19 +01:00
Richard Davey
08b7d00ce9 Fixed base64 method 2018-07-27 11:19:12 +01:00
Richard Davey
939fc24088 Added lots of new API calls 2018-07-27 09:43:21 +01:00
Richard Davey
c1111753f0 Added getBase64 method 2018-07-27 09:43:12 +01:00
Richard Davey
c65e3c7428 Added FB Instant Games Plugin to core (will prepare for moving to unique build once feature complete) 2018-07-27 08:33:51 +01:00
Richard Davey
1abe90433f Updated log and docs 2018-07-27 02:49:05 +01:00
Richard Davey
a63acd0427 Updated docs. 2018-07-27 02:40:56 +01:00
Richard Davey
9331c15c48 Updated to use tint object. 2018-07-27 02:14:08 +01:00
Richard Davey
6027b65500 Added fill gradient and line gradient methods 2018-07-27 02:13:58 +01:00
Richard Davey
0c50b0eba8 Typo 2018-07-27 02:13:41 +01:00
Richard Davey
4481795d32 Swapped to using getX / getY 2018-07-27 00:53:00 +01:00
Richard Davey
8873bdcbf6 Fixed pipeline method call 2018-07-26 23:50:54 +01:00
Richard Davey
6877582531 Removed un-used pipeline and shaders 2018-07-26 23:43:49 +01:00
Richard Davey
4bdecf488b jsdocs tweaks 2018-07-26 23:41:52 +01:00
Richard Davey
a09c2a4958 Now uses customViewports counter to avoid scissor setting and skips box check 2018-07-26 23:05:25 +01:00
Richard Davey
f2290abf9b Added new customViewports counter 2018-07-26 23:05:08 +01:00
Richard Davey
1a62a3563e Added refs to config and Scene Manager and new customViewport bool 2018-07-26 23:04:53 +01:00
Richard Davey
1777e16227 Sorting out the scissor stack 2018-07-26 17:50:07 +01:00
Richard Davey
d093f35e5c Merged all of the required FTP methods into TTP. 2018-07-26 16:34:04 +01:00
Richard Davey
cc3ed1659e Lint fix. 2018-07-26 16:33:51 +01:00
Richard Davey
e0c0db5f8e Final bit of tidying up before merging this with the TTP. 2018-07-26 16:33:43 +01:00
Richard Davey
90219d46b3 Removed all references to the FlatTintPipeline. 2018-07-26 16:33:29 +01:00
Richard Davey
5dbd7591cd Graphics now using the TextureTintPipe. Farewell draw calls! 2018-07-26 16:33:02 +01:00
Richard Davey
e851209b41 Camera effects using the new drawFillRect method. 2018-07-26 16:32:31 +01:00
Richard Davey
947d301f42 Removed the unit batch from TTP and put it into FDLP 2018-07-26 15:31:44 +01:00
Richard Davey
bda9159cb0 Textures now use the frame UV values. 2018-07-26 15:05:10 +01:00
Richard Davey
d3e07b519a Added setBlankTexture method 2018-07-26 15:04:46 +01:00
Richard Davey
1cc0e7d5e5 Moved the rendering code from the pipeline to the Graphics object 2018-07-26 15:04:35 +01:00
Richard Davey
620c5a3360 Added Graphics.setTexture and a clear texture command 2018-07-26 15:04:19 +01:00
Richard Davey
7acbbcf58a Fixed linejoin, added arc and triangle, tidying up code 2018-07-26 13:49:05 +01:00
Richard Davey
39a6622623 Working on joints 2018-07-26 09:58:33 +01:00
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
Ithamar R. Adema
7d84b54239 Only allow XHR status 0 for local file:// URLs
Since 0 can also be an error situation, limit the amount we okay it.
2018-07-25 15:00:07 +02:00
Richard Davey
9d11b93b05 Updated shader 2018-07-25 13:06:22 +01:00
Ithamar R. Adema
44f9b10e8c
Allow XHR status 0 as success too
Normally only status 200 would be accepted as success, but 0 is returned when a file is loaded from the local filesystem (file://). This happens for example when opening the index.html of a (Phaser) game in a browser directly, or, as it turns out, when using Cordova on iOS.

This fixes #3464
2018-07-25 09:54:50 +02: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
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
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
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
Richard Davey
d6fb66789f Added getCSSMatrix 2018-07-19 00:22:10 +01:00
Richard Davey
ab35dfab95 The setCrop method stored its crop object on the prototype chain by mistake, causing all Images or Sprites that were cropped to display the same frame. The crop data has been moved to the Game Object instance, where it should be, fixing this issue 2018-07-19 00:18:09 +01:00
Richard Davey
0ed4766fe3 Added start of the new DOM Element Game Object 2018-07-18 17:23:04 +01:00
Richard Davey
c741469894 Added optional DOM Container parent and config values 2018-07-18 17:22:52 +01:00
Richard Davey
20f1b37256 eslint fix and log update 2018-07-18 15:06:56 +01:00
Richard Davey
b6a1033dbd Fixed Camera FX for scaled camera sizes 2018-07-18 15:03:06 +01:00
Richard Davey
14ba51d928 Added Text.setResolution methods. 2018-07-18 14:45:10 +01:00
Richard Davey
25e4993e6f Added x and y getters and new scaled viewport values 2018-07-18 14:32:47 +01:00
Richard Davey
0db16889e6 Use new Camera viewport values 2018-07-18 14:32:06 +01:00
Richard Davey
3bc6eba718 Removed incorrect resolution multiplication and used updated camera viewport 2018-07-18 14:31:45 +01:00
Richard Davey
fb4f28bb01 Testing resolution input 2018-07-17 23:26:40 +01:00
Richard Davey
1c473afa84 Cameras draw their backgrounds correctly at higher resolutions 2018-07-17 23:26:30 +01:00
Richard Davey
e0fdc33928 SM mock 2018-07-17 22:44:21 +01:00
Richard Davey
94540e112e Text supports high dpi resolution for its internal canvas 2018-07-17 22:44:12 +01:00
Richard Davey
6ddd1644f2 Canvas now uses game config resolution 2018-07-17 22:43:52 +01:00
Richard Davey
16d597c983 Fixed jsdoc references 2018-07-17 11:43:09 +01:00
Richard Davey
5ada70409e Modified tile sizes. 2018-07-16 15:20:46 +01:00
Richard Davey
7ec36752dc
Merge pull request #3830 from kelostrada/master
Update AudioFile.js
2018-07-16 14:57:36 +01:00
Richard Davey
0cc52f6002 Swapped 4 ternaries for a single conditional #3834 2018-07-16 14:55:51 +01:00
Richard Davey
f723d0e18a
Merge pull request #3834 from tarsupin/patch-2
Major Optimization for Culling Tilemaps
2018-07-16 14:44:35 +01:00
Richard Davey
c8b058c26a Renamed object to avoid TS defs conflict 2018-07-16 10:28:28 +01:00
tarsupin
ad24a0b8ec
Removed repetative code. 2018-07-14 20:09:36 -05:00
tarsupin
00a38f744a
Switching tabs to spaces 2018-07-14 14:41:13 -05:00
tarsupin
9ac505d5cc
Build is requiring me to pre-declare x, y, tile. 2018-07-14 14:38:19 -05:00
tarsupin
4fa3dc7159
Update CullTiles.js 2018-07-14 14:30:15 -05:00
tarsupin
e3d64c63b3
Major Optimization for Culling Tilemaps
Refine the loop to only scan through the drawn boundaries that are being tested against (except when skipping cull). This eliminates a huge bottleneck / lookup time from the original loop each frame.

The update should affect tilemaps exponentially based on their size. It reduced my culling time to 1/70th for 1000x1000 tilemaps, and by about 1/20th on 250x250 tilemaps. It also reduced my requestAnimationFrame time from over 16ms per frame to ~1ms for the larger map.
2018-07-14 14:14:55 -05:00
samme
b7ca32eb40 Copy custom properties in createFromObjects()
Closes #3808
2018-07-14 09:43:21 -07:00
Edwin222
a137883628 Merge remote-tracking branch 'upstream/master' 2018-07-14 17:00:38 +09:00
Bartosz Kalinowski
264c82fbcb
Update AudioFile.js
fix error
2018-07-14 07:50:00 +02:00
Richard Davey
41f9277803 Preparing for 3.12 development 2018-07-13 17:28:08 +01:00
Richard Davey
05e6f65d51 3.11 Release 2018-07-13 11:37:57 +01:00
Richard Davey
42c3fc5f6b Better normal map handling 2018-07-13 11:14:22 +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
4843d7eefe Pipelines have a boot handler now. 2018-07-13 11:13:46 +01:00
Richard Davey
61954dedcb Added checkDown method and related properties. 2018-07-13 11:13:32 +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
b4ddd44105 Added cullCallback support - the final step in culling. Don't like ours? Roll your own! 2018-07-12 17:06:36 +01:00
Richard Davey
8981cf4a03 Swapped from vec2 to explicit values for cullPadding 2018-07-12 16:51:54 +01:00
Richard Davey
b03d3ff783 Added support for cull padding 2018-07-12 16:44:36 +01:00
Richard Davey
e66cf4e00b Adjusted bounds +- 1 tile 2018-07-12 16:32:25 +01:00
Richard Davey
4b607a3cca Removed cull tests 2018-07-12 16:32:12 +01:00
Richard Davey
12c6736c67 Stats recorded in tilesDrawn and tilesTotal. 2018-07-12 16:12:55 +01:00
Richard Davey
89db84377e Added skipCull property and setSkipCull method 2018-07-12 15:31:25 +01:00
Richard Davey
a8fa98e39b Skip all rendering if alpha <= 0 2018-07-12 15:31:00 +01:00
Richard Davey
646861425f Added Camera.worldView property and adjusted it to the correct values each frame. 2018-07-12 15:08:29 +01:00
Richard Davey
a447d85401 CullTiles recoded to use Camera worldView - finally, properly culling, regardless of layer scale or camera zoom! Fix #3818 2018-07-12 15:07:45 +01:00
Richard Davey
869087044b Starting work on proper tile culling 2018-07-12 01:14:34 +01:00
Richard Davey
d9ac16bcb0 Shorter texture path 2018-07-12 01:14:02 +01:00
Richard Davey
2924874236 Added docs 2018-07-12 01:13:47 +01:00
Richard Davey
072cc0e21b Added dirty Camera support and updated internal properties to set the flag 2018-07-12 01:13:34 +01:00
Richard Davey
a0bf5b6ad2 Removed all the batch functions and consolidated into a single function and callback 2018-07-11 16:55:18 +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
efb5eb09c5 Starting refactor 2018-07-11 16:24:58 +01:00
Richard Davey
05985417b3 Allow config setting values. Gets custom pipelines working again. 2018-07-11 16:24:45 +01:00
Richard Davey
5a5bea1ce5 Allow GO to be passed to onBind 2018-07-11 16:24:20 +01:00
Richard Davey
e388b7dae5 Tidy up 2018-07-11 16:23:57 +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
853281fe56 Double flusher 2018-07-11 13:22:07 +01:00
Richard Davey
373d01c602 Fixed emitter batch. Now to optimize it. 2018-07-11 13:20:02 +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
e2efa469ae Removed drawTexture and added drawTextureFrame - fixed Render Texture flip Y issue 2018-07-11 12:34:53 +01:00
Richard Davey
cced09bad6 Added Pointer.prevPosition and getInterpolatedPosition method 2018-07-11 12:34:00 +01:00
Richard Davey
1a7d726a4b jsdoc udpate 2018-07-11 12:33:40 +01:00
Richard Davey
5b3a5e115b Started consolidating drawTexture method 2018-07-10 17:18:00 +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
340c53875c Added new temp matrix, fixed typo, removed old function 2018-07-10 16:32:44 +01:00
Richard Davey
5128eecbeb Cached the drawing buffer height 2018-07-10 16:32:28 +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
85a32d54be Typo 2018-07-09 17:06:27 +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
17653fcf7d BitmapMask.destroy will now remove the textures and framebuffers that it created from the WebGL Renderer as part of the destroy process. Fix #3771 2018-07-09 14:26:45 +01:00
Richard Davey
cd508ab3f1 The ScenePlugin will now queue all of the following ops with the Scene Manager: start, run, pause, resume, sleep, wake, switch and stop. This means for all of these calls the Scene Manager will add the call into its queue and process it at the start of the next frame. 2018-07-09 14:08:55 +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
93d177e560
Merge pull request #3821 from andygroff/master
Adding console warning to notify users of invalid frame config
2018-07-08 23:16:28 +01:00
Andrew Groff
5c853c640f Fixing code style and making console warning more concise 2018-07-08 15:12:02 -07:00
Richard Davey
63ae8a5728 Swapped to gl.KEEP for further testing 2018-07-08 22:44:55 +01:00
Richard Davey
9e84c9f082 Fixed slice method 2018-07-08 22:44:40 +01:00
Andrew Groff
cca6dd605c Adding console warning to notify users when their frame config does not create any frames 2018-07-08 03:22:04 -07: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
c1bc928a73 Removed un-used vars 2018-07-06 17:29:49 +01:00
Richard Davey
a6ff0d54bb Removed angle calculations from renderer as we only need do it when the arc is first defined 2018-07-06 17:16:09 +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
fdd4a8f8f3 Tidied up DrawImage to re-use vars and cut down code 2018-07-06 15:55:20 +01:00
Richard Davey
45208202ae Added canvas props 2018-07-06 15:55:05 +01:00
Richard Davey
e620f3e308 Updated to use matrix and support crop 2018-07-06 15:34:25 +01:00
Richard Davey
6483cdacb5 Added canvas crop data 2018-07-06 15:34:12 +01:00
Richard Davey
901a75d053 setCrop will accept numbers or a Rectangle object 2018-07-06 12:57:42 +01:00
Richard Davey
dfebd940c2 Trim flip fixed and function tidied up 2018-07-06 12:33:39 +01:00
Richard Davey
4e1cbc01d8 Removed object creation 2018-07-06 12:22:05 +01:00
Richard Davey
cca6cd0b83 Fixed trimmed frame crop 2018-07-06 12:14:25 +01:00
Richard Davey
9ead9705c4 Preparing for trim crop support 2018-07-05 23:55:12 +01:00
Richard Davey
325fb4681e Tidying up 2018-07-05 23:55:00 +01:00
Richard Davey
f195a09530 Rectangle.Intersection will take two Rectangle objects and return the area of intersection between them. If there is no intersection, an empty Rectangle is returned. 2018-07-05 23:54:51 +01:00
Richard Davey
5063fe30e5 Fixed cropping when texture frame is flipped 2018-07-05 23:01:26 +01:00
Richard Davey
f3a446797d Added new TextureCrop component 2018-07-05 13:06:28 +01:00
Richard Davey
341ecf42cd Testing flip + atlas frame + trim cropping 2018-07-04 17:01:45 +01:00
Richard Davey
9bd8fb34a4 Changed canvasData to remove duplicate properties. 2018-07-04 17:01:29 +01:00
Richard Davey
08564e861b Merge branch 'master' of https://github.com/photonstorm/phaser 2018-07-04 15:18:12 +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
e6fc6db0ee
Merge pull request #3804 from AleBles/patch-2
Fixed dataManager redefining previously (re)set property
2018-07-04 11:03:47 +01:00
Richard Davey
d44c54e5ed batchSprite supports cropping (flipXY todo) 2018-07-03 16:48:14 +01:00
Richard Davey
744e161d22 Added setCrop support 2018-07-03 16:48:01 +01:00
Richard Davey
436d92831c Added getCropUVs method 2018-07-03 16:47:53 +01:00
Richard Davey
d328f14be0 Fixed vertex calculation 2018-07-03 12:38:45 +01:00
Richard Davey
187328ea1a UVs are passed directly now 2018-07-03 00:14:23 +01:00
Richard Davey
afec945c94 Pass in the UV values 2018-07-02 23:52:00 +01:00
Richard Davey
c82c09914e Updated UV values 2018-07-02 23:51:42 +01:00
Richard Davey
265852fc75 Removed test code 2018-07-02 17:09:21 +01:00
Richard Davey
35686657ce Tidied up the batchVertices method and removed old stuff 2018-07-02 17:06:49 +01:00
Richard Davey
89bf09d19d Swapped to unified batchVertices method 2018-07-02 17:06:34 +01:00
Richard Davey
c1020c6dbb Refactoring TTP to remove so much redundant stuff 2018-07-02 16:44:24 +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
8a7ead03a8 Frame.glTexture is a new property that maps to the WebGL Texture for the Frames Texture Source image. It's used internally by the renderer to avoid expensive object look-ups and is set automatically in the Frame constructor. 2018-07-02 13:43:35 +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
Richard Davey
17112ecd20 Tileset.glTexture is a new property that maps to the WebGL Texture for the Tileset image. It's used internally by the renderer to avoid expensive object look-ups and is set automatically in the Tileset.setImage method. 2018-07-02 13:32:35 +01:00
Richard Davey
0ac0bc18d3 Set tint on setters 2018-07-02 13:32:27 +01:00
Richard Davey
fe61cfe2d1 You can now set the WebGL batch size in the Game Config via the property batchSize. The default is 2000 before the batch will flush, which is a happy average between desktop and mobile. If targeting desktop specifically, you may wish to increase this value to reduce draw calls. 2018-07-02 12:33:46 +01:00
Richard Davey
1941d8a494 Removed drawStaticTilemapLayer method and updated layer vertex code 2018-07-02 12:07:39 +01:00
Richard Davey
4d30de536e Merge branch 'master' of https://github.com/photonstorm/phaser 2018-07-02 11:02:47 +01:00
Ale Bles
e85a542e09
Fixed dataManager redefining previously (re)set property
Added Configurable:true to Object.defineProperty in dataManager to fix #3803
2018-07-02 10:08:10 +02:00
tarsupin
6613bc28e9
Fixing removeTileAt, removeTileAtWorldXY docs
The 'tile' parameter was not included in the actual code, so it's removed here from the documentation.
2018-06-30 15:09:41 -05:00
Richard Davey
fdead2af16 Added the tint effect attribute and merged with all the various batches 2018-06-30 11:33:52 +01:00
Richard Davey
11ef2c824b Updated shader to support tint effect attribute 2018-06-30 11:33:28 +01:00
Richard Davey
52b24e2879 Added tintFill property and more detailed documentation 2018-06-30 11:33:06 +01:00
Richard Davey
e22b1a7b9c Removed stubs from pipelines 2018-06-29 12:33:44 +01:00
Richard Davey
f97ce72e16 Added the Mask compontent to Container. It worked without it, but this brings it in-line with the documentation and other Game Objects. Fix #3797 2018-06-28 14:17:04 +01:00
Richard Davey
39c3866179 lint fix 2018-06-28 13:07:59 +01:00
Richard Davey
217779604c Added tileScaleX and tileScaleY support for Tile Sprites 2018-06-28 12:59:27 +01:00
Richard Davey
8c312090da Solidified use of pixelArt mode 2018-06-27 15:27:16 +01:00
Richard Davey
7a23378015 Unified use of roundPixels, antialias and pixelArt modes 2018-06-27 15:15:00 +01:00
Richard Davey
a6ab61dd99 Fixed id use 2018-06-27 13:16:11 +01:00
Richard Davey
ee8e264d5e Return removed total 2018-06-27 13:16:01 +01:00
Richard Davey
2888fe94bd Tweak 2018-06-27 13:05:06 +01:00
Richard Davey
1bfe58ab55 remove can take an array of cameras and also no longer needs total to be > 0 2018-06-27 13:03:40 +01:00
Richard Davey
183f5c4260 CameraManager.getTotal is a new method that will return the total number of Cameras being managed, with an optional isVisible argument, that only counts visible cameras if set. 2018-06-27 12:45:54 +01:00
Richard Davey
88eb4f4ce9 The Pointer.camera property would only be set if there was a viable Game Object in the camera view. Now it is set regardless, to always be the Camera the Pointer interacted with. 2018-06-27 12:45:03 +01:00
Richard Davey
f2b7fd0a32 Removed the cameraX properties because they fall out of sync on camera remove 2018-06-27 12:13:37 +01:00
Richard Davey
da2b91b460 ArrayUtils.AddAt didn't calculate the array offset correctly if you passed an array in to be merged with an existing array. This also caused Container.addAt to fail if an array was passed to it. Fix #3788 2018-06-27 11:31:51 +01:00
Richard Davey
6cc7939870 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-27 11:20:28 +01:00
Richard Davey
d02d6532fd TileSprite was using the Size compontent instead of ComputedSize, meaning its getBounds and displayWidth and displayHeight results were incorrect. Fix #3789 2018-06-27 11:20:21 +01:00
Richard Davey
391dd4ca8c
Merge pull request #3790 from samme/fix/array-each
Fix extra argument passing in Array.Each
2018-06-27 11:13:22 +01:00
Richard Davey
c5f28f18f3
Merge pull request #3791 from photonstorm/mikewesthad-line-doc-fix
Line#getPointB documentation typo fix: "start" is used where "end" was intended
2018-06-27 11:12:28 +01:00
Andre van Tonder
32ff6df5b3 fixed JsDoc for Phaser.Tilemaps.Tilemap#createBlankDynamicLayer
x, y, width, height, tileWidth, tileHeight are all optional params

I also add x, y params to jsdoc  as they were missing
2018-06-27 10:33:35 +08:00
Michael Hadley
bf995c7000
Line#getPointB documentation typo fix: "start" is used where "end" was intended 2018-06-26 20:30:01 -05:00
samme
703f338348 args description 2018-06-26 15:58:51 -07:00
samme
bb29f0cdfc Fix context argument wrongly passed to callback 2018-06-26 15:57:49 -07:00
Richard Davey
7aa46657c2 Tidying up jsdocs and changing float to number 2018-06-26 23:19:14 +01:00
Richard Davey
c2fbad8356 Added jsdocs. Now 100% complete! 2018-06-26 17:24:51 +01:00
Richard Davey
ba9890e9f1 lint fix 2018-06-26 16:41:37 +01:00
Richard Davey
f1190529d2 ScenePlugin.start and ScenePlugin.restart will now always queue the op with the Scene Manager, regardless of the state of the Scene, in order to avoid issues where plugins carry on running for a frame before closing down. Fix #3776 2018-06-26 16:35:45 +01:00
Richard Davey
b95f980023 Added in data object passing to all relevant methods #3748 2018-06-26 16:08:14 +01:00
Richard Davey
1d4a15f297
Merge pull request #3748 from rook2pawn/wake-resume-data-from-run
[feat] scene.run can now pass data to .wake and .resume if it needs
2018-06-26 15:28:50 +01:00
Richard Davey
39a838fccc Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-25 22:53:44 +01:00
Richard Davey
bb7b99a4db Updated log and formatting 2018-06-25 22:53:42 +01:00
Richard Davey
dade336b29
Merge pull request #3782 from Upperfoot/hotfix/tile-culling
Account for position of tilemapLayer when culling tiles
2018-06-25 22:46:36 +01:00
Richard Davey
8391042ff9
Merge pull request #3783 from samme/feature/particle-emitter-stop
Add ParticleEmitter#stop()
2018-06-25 22:42:00 +01:00
Richard Davey
8af70d02d1
Merge pull request #3780 from TadejZupancic/patch-9
disableInteractive
2018-06-25 22:39:54 +01:00
Richard Davey
c6c9b25fdc Camera.alpha (and its related method Camera.setAlpha) allows you to get an alpha level for the entire camera. This impacts everything it is rendering, even if those objects also have their own alpha values too. You can tween the property to make the camera contents fade in / out, or you can set it as needed in your game. 2018-06-25 17:35:36 +01:00
Richard Davey
237368161b Added Camera.setAlpha method 2018-06-25 16:31:54 +01:00
Richard Davey
51468fdefc Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-25 16:25:42 +01:00
Richard Davey
90ba2608fa Added in Camera alpha support to all canvas renderers 2018-06-25 16:24:08 +01:00
Richard Davey
6dff47b71d Added Camera.alpha property 2018-06-25 16:11:09 +01:00
Richard Davey
d20188b75d Removed camera pool, renamed current ID and added accessor properties 2018-06-25 16:10:50 +01:00
Richard Davey
98b1cc2dbc Although the Blitter object had the Alpha component, setting it made no difference. Setting Blitter alpha now impacts the rendering of all children, in both Canvas and WebGL, and you can also specify an alpha per Bob as well. 2018-06-25 16:06:22 +01:00
Richard Davey
bcacfeb87c Bob.alpha was ignored by the canvas renderer, only working in WebGL. This has now been fixed. 2018-06-25 15:59:01 +01:00
Richard Davey
9a96785cf6 If the Blitter object has no Bob's to render it will now abort immediately, avoiding several context calls in Canvas mode. 2018-06-25 15:38:06 +01:00
Craig Whiteside
375b1f8f18
Pulled out calculation for tile pixel position amended with tilemapLayer position 2018-06-23 21:20:54 +01:00
samme
bc2212c87d Add ParticleEmitter#stop() 2018-06-23 12:51:16 -07:00
Craig Whiteside
ac82e39314
Fix whitespace 2018-06-23 16:40:19 +01:00
Craig Whiteside
86f1cbcabf
Made it more specific to the tile offset. 2018-06-23 16:34:45 +01:00
Craig Whiteside
a73e47e508
Account for position of tilemapLayer when culling tiles 2018-06-23 16:28:45 +01:00
Richard Davey
6df877cfa3 Docs update 2018-06-23 12:33:20 +01:00
Richard Davey
e53f61d068 CameraManager.resetAll now destroys all current Cameras, resets the camera ID marker to 1 and adds a single new Camera. 2018-06-23 12:33:10 +01:00
Richard Davey
5a0fe89a7e Swap _id to id 2018-06-23 12:26:39 +01:00
Richard Davey
932737343b Added centerOn argument to setBounds and bumped Camera id to be public 2018-06-23 12:18:44 +01:00
Edwin222
57f159c64b Add description comments to TextureManager.js 2018-06-23 17:20:49 +09:00
rook2pawn
b040146b4a simplified logic on queueOp starting an unready scene 2018-06-22 03:55:21 -07:00
rook2pawn
dd53268a23 removed superfluous queue stop 2018-06-22 03:37:14 -07:00
rook2pawn
c09b4baf16 [fix] sceneManager run will queueOp if scene not ready
fixed linting
2018-06-22 03:37:14 -07:00
rook2pawn
44a0813591 [feat] scene.run can now pass data to .wake and .resume if it needs to invoke those methods
update javadoc for scene and scene systems
2018-06-22 03:32:17 -07:00
Chris Andrew
734c0115f9 Documented Geom CopyFrom functions and some Point functions.
Documented one remaining Ellipse ContainsRect parameter.
2018-06-21 18:42:40 +01:00
Chris Andrew
2388707379 Fixed lint error. Minor documentation fix in 2D camera. 2018-06-21 18:17:00 +01:00
Chris Andrew
c2bfc52987 Documented the majority of the Geom Line functions. 2018-06-21 18:13:56 +01:00
Richard Davey
53cf7d847b Fixed Pan so it updates constantly, allowing Pan + Zoom together 2018-06-21 17:56:27 +01:00
Richard Davey
f4f9a98ac1 Added Camera Zoom Effect 2018-06-21 17:48:11 +01:00
Richard Davey
ec168c4b9b Removed dead code and added jsdocs 2018-06-21 17:19:58 +01:00
Richard Davey
3ece90ad75 Added Camera.getScroll and the new Pan Effect 2018-06-21 17:15:43 +01:00
Richard Davey
53c093ec00 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-21 15:55:00 +01:00
Richard Davey
472df6a7be Camera.centerOn is a new method that will move the camera so its viewport is centered on the given coordinates. A handy way of jumping to different points around a map without needing to calculate the scroll offsets. 2018-06-21 15:54:54 +01:00
Chris Andrew
6854ccb764 Cleaned up some remaining GameObject descriptions. 2018-06-21 14:18:28 +01:00
Chris Andrew
978f982c26 Documented the remaining ParticleEmitter Zone classes. 2018-06-21 14:12:47 +01:00
Richard Davey
583d464230 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-21 14:03:35 +01:00
Richard Davey
2ff6845360 Camera.centerToBounds didn't take the bounds offset into account, so bounds at non-zero positions wouldn't center properly. All bounds now center correctly. Fix #3706 2018-06-21 14:03:31 +01:00
Chris Andrew
4b5ab4e217 Documented most of the remaining PathFollower descriptions. 2018-06-21 13:19:52 +01:00
TadejZupancic
5859979c96
Update GameObject.js 2018-06-21 14:07:18 +02:00
Chris Andrew
df88218534 Finished up EmitterOp method descriptions.
Finally!
2018-06-21 12:47:29 +01:00
Richard Davey
3e3b0d6397 Fixed issue where negative camera bounds wouldn't clamp properly 2018-06-21 12:33:20 +01:00
Richard Davey
c02c9cf2da Fixed camera bounds when bounds are smaller than the viewport 2018-06-21 02:32:24 +01:00
Richard Davey
0b3392fab4 Fixed Camera roundPixels stuttering 2018-06-21 01:59:12 +01:00
Richard Davey
2c8c4c7a16 Bob.setFrame didn't actually set the frame on the Bob, now it does. Fix #3774 2018-06-20 19:33:59 +01:00
Richard Davey
f8ca5e1f6f Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-20 17:42:23 +01:00
Richard Davey
99eb565520 Fixed camera bounds with zoom issue and added new displayWidth / displayHeight properties 2018-06-20 17:42:20 +01:00
Chris Andrew
7f232b6bed Further EmitterOp documentation. 2018-06-20 17:18:03 +01:00
Chris Andrew
584e8f9919 Started documenting the EmitterOp class. 2018-06-20 16:18:00 +01:00
Richard Davey
92d06d4742 Removed incorrect application of zoom 2018-06-20 14:52:22 +01:00
Richard Davey
e1151fe436 Removed merge conflicts 2018-06-20 14:29:36 +01:00
Richard Davey
3c79a92ea4 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-20 14:27:56 +01:00
Richard Davey
7d573a35eb Added Camera.setDeadzone method, updated startFollow and added jsdocs. 2018-06-20 14:26:36 +01:00
Chris Andrew
d6a13eb8db Finished up TileSprite property descriptions, started on its class description. 2018-06-20 08:33:55 +01:00
Chris Andrew
2d67342ae5 Fixed lint errors. 2018-06-20 07:29:42 +01:00
Chris Andrew
9f23818c40 Documented various missing descriptions for GameObject classes and functions. 2018-06-20 07:28:02 +01:00
samme
b3ac91df5a Fix blocked.none after separation 2018-06-19 14:48:07 -07:00
Richard Davey
b832247a35 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-19 14:14:40 +01:00
Richard Davey
f1fe131e56 Tidying up Render Texture to make it more useful 2018-06-19 14:14:37 +01:00
Richard Davey
3a6f093579
Merge pull request #3761 from DannyT/fix/buildgameobjectanimation
Fix setter calls in BuildGameObjectAnimation
2018-06-19 13:22:13 +01:00
Richard Davey
30276cd4c2
Merge pull request #3765 from DrevanTonder/master
change ParticleEmitter.startFollow to fix issue 3764
2018-06-19 13:20:19 +01:00
Richard Davey
622fd7c34a
Merge pull request #3745 from cyantree/feature/update-graphics-jsdoc
Changed options and sub options of `Graphics` constructor in docs to …
2018-06-19 13:19:12 +01:00
Richard Davey
62661b46fb Updated rounded rect functions 2018-06-19 13:17:38 +01:00
Richard Davey
cc5f1bb91e
Merge pull request #3755 from TadejZupancic/patch-8
Add rounded rectangle to Graphics
2018-06-19 12:47:58 +01:00
Richard Davey
95f923bcad
Merge pull request #3762 from dvdbrink/patch-1
Fix GameObject typings when returning itself
2018-06-19 12:30:57 +01:00
Richard Davey
d6db01cd82 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-19 12:29:09 +01:00
Richard Davey
2b9be45741 Starting Camera.deadzone support 2018-06-19 12:29:04 +01:00
Richard Davey
e5fbcd5574 Calling Tween.play on a tween created via TweenManager.create wouldn't actually start playback until the tween was first added to the Tween Manager. Now, calling play will have it automatically add itself to the Tween Manager if it's not already in there. Fix #3763 2018-06-19 12:28:29 +01:00
Hua
821504a893 Skip drag checking on a draging Game Object
Skip drag checking on a draging Game Object to prevent multi-drag issue.
2018-06-19 10:33:22 +08:00
TadejZupancic
c1d0c11b30
Update Graphics.js 2018-06-18 10:52:49 +02:00
Andre van Tonder
b2f8a139cc change ParticleEmitter.startFollow to fix issue 3764 2018-06-18 14:25:12 +08:00
Chris Andrew
a480232d87 Documented Graphics.save() and Graphics.restore().
Adapted from Mozilla's descriptions of the corresponding Canvas methods.
2018-06-17 19:43:05 +01:00
Daniel van den Brink
9a2c110c44
Fix GameObject typings for returning this 2018-06-17 08:54:28 +02:00
DannyT
1eb60e09a3 changed animation api calls to include updated set verb (e.g. .setDelay() vs .delay()) 2018-06-16 18:15:29 +01:00
TadejZupancic
caef54a34e
Update Graphics.js 2018-06-15 14:36:24 +02:00
TadejZupancic
321aba14c3
Update Graphics.js 2018-06-15 14:31:44 +02:00
TadejZupancic
9affc60037
Update Graphics.js 2018-06-15 14:23:40 +02:00
Chris Andrew
e140640583 Minor punctuation fix for Vector distanceSq() method descriptions. 2018-06-14 15:12:10 +01:00
Chris Andrew
47fdf779d3 Switched to example annotations for the setStyle() examples. 2018-06-14 14:49:29 +01:00
Chris Andrew
885b404b98 Fixed the indentation of setStyle() examples. 2018-06-14 14:41:17 +01:00
Chris Andrew
a6b8b8ed31 Documented the Text game object and its TextStyle companion.
Minor update to JSON representation descriptions.
2018-06-14 14:27:58 +01:00
Richard Davey
28851ff69b Use hyphens instead of underscores. Fix #3751 2018-06-14 13:30:33 +01:00
Richard Davey
52d04ee5f9 The LoaderPlugin didn't emit the filecomplete event if any of files failed to load, causing it to fail to run the Scene create function as well. Fix #3750 2018-06-14 13:23:15 +01:00
Richard Davey
307a937eea
Merge pull request #3749 from iamchristopher/fix-changedata-event-value
Fixed DataManager changedata event emits original value instead of new value
2018-06-14 12:33:19 +01:00
Richard Davey
d66daa6795
Merge pull request #3744 from rexrainbow/master
Pass `this.parent` instead of `this` in callback of removedata event
2018-06-14 12:29:38 +01:00
iamchristopher
321ab9bc91 Fixed DataManager changedata event emits original value instead of new value 2018-06-13 21:58:05 -04:00
cyantree
a727437304 Changed options and sub options of Graphics constructor in docs to be optional 2018-06-13 20:01:26 +02:00
Chris Andrew
468b61da6f Tweaked the LightsPlugin example in its class description. 2018-06-13 18:56:57 +01:00
Chris Andrew
124b0ff773 Documented Light, LightsManager and LightsPlugin.
Documented class description for TransformMatrix.

Added a missing description from Container's EachContainerCallback.
2018-06-13 18:44:32 +01:00
Rex
ae9ca0840d Pass this.parent instead of this
Pass this.parent at 1st argument of event callback, to consistent with other events, i.e. `setdata`
2018-06-14 00:41:49 +08:00
Richard Davey
19eb363a84 Only set Scene status to running if still in creating 2018-06-13 17:27:30 +01:00
Richard Davey
91b3c7a92d Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-13 15:51:12 +01:00
Richard Davey
62deef81d8 Preparing for 3.11.0 development 2018-06-13 15:51:07 +01:00
Chris Andrew
566fdaca0e Documented the TransformMatrix component. 2018-06-13 14:36:07 +01:00
Richard Davey
0329b8dfb7 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-13 13:51:13 +01:00
Richard Davey
6456ef10a6 Touch pointer total fix
The InputManager would only create 1 Pointer, even if Touch input was enabled in the config, which meant you couldn't use touch events unless you first called `addPointer` or specified one in the config. Now, it Touch is enabled in the config, it'll always create 2 pointers by default.
2018-06-13 13:51:04 +01:00
Chris Andrew
eb84ad58df Documented the MatrixStack component. 2018-06-13 13:48:33 +01:00