Commit graph

7520 commits

Author SHA1 Message Date
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
Richard Davey
16f61b402b 3.10 Release 2018-06-13 09:00:40 +01:00
Richard Davey
15b544fc46 jsdoc fixes 2018-06-13 08:37:40 +01:00
Richard Davey
9d52b6ac91 Fixed jsdoc errors 2018-06-12 17:05:39 +01:00
Richard Davey
7eac419d3c Fixed namespace 2018-06-12 16:52:57 +01:00
Richard Davey
579f5bf4a1 Added the new sceneUpdate reference property. 2018-06-12 16:21:37 +01:00
Richard Davey
eb8d3ccdf1 No longer injects update into a Scene, and now calls step from init onwards. 2018-06-12 16:21:17 +01:00
Richard Davey
f0348834c6 The Loader now uses an update loop to release new files to the queue, rather than doing it during the async hell-hole that was the inflight iterator. Fix #3705. 2018-06-12 16:20:55 +01:00
TadejZupancic
3c96ca73ec
Update Zone.js 2018-06-12 15:49:02 +02:00
Richard Davey
d6c2b1104b Replace KeyboardManager with KeyboardPlugin 2018-06-12 14:44:51 +01:00
Richard Davey
c7c104bc2b Tidied up the formatting and jsdocs for Physics Editor parser 2018-06-12 13:07:19 +01:00
Richard Davey
9a53daa068
Merge pull request #3729 from CodeAndWeb/matterjs-pe-loader
Matterjs pe loader
2018-06-12 11:54:18 +01:00
Joachim Grill
ff7f614a8e renamed to PhysicsEditorParser, added jsdocs 2018-06-11 16:37:32 +02:00
Richard Davey
d058674a39 eslint fix 2018-06-11 14:42:50 +01:00
Richard Davey
f26bd913e9 Disable Camera.cull because #3679 excludes everything in view (and reverting it includes everything, so no point even culling atm) 2018-06-11 14:04:15 +01:00
Richard Davey
5313343730 Pointers capped at 10 max. 2018-06-11 13:39:28 +01:00
Richard Davey
e6e33f5e21 Added Game.isOver and mouseover and mouseout events. 2018-06-11 12:32:25 +01:00
Richard Davey
dfce514024 Fixed docs and added useHandCursor helper. 2018-06-11 11:50:37 +01:00
Richard Davey
c74c1cbb32 Added setDefaultCursor method and custom css cursor handling. 2018-06-11 11:36:02 +01:00
Richard Davey
da436b0ce7 Added custom cursor property 2018-06-11 11:35:40 +01:00
Richard Davey
5c7e624260 setInteractive will now take a configuration object as the only argument, allowing for easier setting of more complex input values 2018-06-11 11:35:31 +01:00
Richard Davey
57bf16685a Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-11 09:05:57 +01:00
Richard Davey
0b8915520b Added eslint rules. Fixed incorrect ES6 use. 2018-06-11 09:05:52 +01:00
Richard Davey
bf3e490967
Merge pull request #3734 from AleBles/master
Fixed device.os incorrectly reporting Linux as os on Android devices
2018-06-11 08:27:09 +01:00
Richard Davey
5889737183 Preparing for cursor change support 2018-06-08 19:04:12 +01:00
Richard Davey
44569fe20c Added useHandCursor boolean 2018-06-08 19:04:01 +01:00
Richard Davey
140e743a8d Added docs and fixed lint issue 2018-06-08 18:24:08 +01:00
Richard Davey
a8105ae0b0 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-08 17:50:52 +01:00
Richard Davey
4304811dde Added new Pixel Perfect input handler and makePixelPerfect method. 2018-06-08 17:50:47 +01:00
Richard Davey
a49e770f89 Added getPixelAlpha method 2018-06-08 17:50:26 +01:00
Chris Andrew
c08dde33b1 Documented some remaining TileSprite descriptions. 2018-06-08 17:07:35 +01:00
Richard Davey
ed97d1594a Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-08 16:18:44 +01:00
Richard Davey
87c950a5ea Fixed jsdocs 2018-06-08 16:18:39 +01:00
Richard Davey
529442f134 Only install the plugin if set in Scene settings / Game Config 2018-06-08 16:18:32 +01:00
Richard Davey
8148b14cc3 Removed references to the Gamepad 2018-06-08 16:18:20 +01:00
Richard Davey
680d34b3c4 Convert Gamepad Manager to an Input Plugin 2018-06-08 16:17:58 +01:00
Chris Andrew
469c34feee Documented the remaining descriptions in the Quad and Sprite game objects. 2018-06-08 15:50:44 +01:00
Chris Andrew
ae214a8664 Documented the missing descriptions for the Mesh game object. 2018-06-08 15:42:55 +01:00
Chris Andrew
07e9878166 Documented the Light game object. 2018-06-08 15:40:39 +01:00
Richard Davey
02554984fe Removed KeyboardManager and replaced with KeyboardPlugin
The `KeyboardManager` class has been removed. It has been replaced with `KeyboardPlugin` which is now an Input level plugin, that registers itself with the new `InputPluginCache`. The Input Plugin class (which belongs to a Scene) will now automatically inject registered plugins into itself on boot. Every Scene has its own instance of the Input Plugin (if enabled in the scene plugins), which in turn has its own instance of the KeyboardPlugin. The `InputManager` no longer has any reference to the Keyboard class at all. The benefits of this are two-fold: First, it allows you to now entirely exclude all of the keyboard classes from a custom build, saving a lot of space if not required. Secondly, it means that the Scenes themselves are now responsible for keyboard events, where-as before they were entirely global. This means a Scene can be paused and stop processing keyboard events, and stop having its Key objects updated, while another Scene can still carry on doing this. It also prevents key related callbacks in sleeping Scenes from being fired (which resolves issue #3733, thanks @JoeMoov2)
2018-06-08 15:16:35 +01:00
Richard Davey
bf46135d84 Allow for Scene level input settings 2018-06-08 15:16:09 +01:00
Richard Davey
11c5c35149 The new Input Plugin cache 2018-06-08 15:15:36 +01:00
Richard Davey
fc0069d9da Removed all references to keyboard 2018-06-08 15:15:21 +01:00
Richard Davey
43fd10bbc1 ScenePlugin.run is a new method that will run the given Scene and not change the state of the current Scene at all. If the scene is asleep, it will be woken. If it's paused, it will be resumed. If not running at all, it will be started. 2018-06-08 15:07:00 +01:00
Richard Davey
a6e26ba6c0 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-08 00:23:59 +01:00
Richard Davey
1777c47a23 Added missing check 2018-06-08 00:22:58 +01:00
Chris Andrew
f8ee35d46a Fixed Gamepad lint errors, tweaked some Graphics docs. 2018-06-07 18:36:27 +01:00
Chris Andrew
62d6496dfb Adapted Graphics class description from Phaser CE.
Documented the remaining properties and a few more methods.
2018-06-07 16:47:27 +01:00
Richard Davey
5f1fff6d48 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-07 16:36:36 +01:00
Richard Davey
cfa436f158 Added new methods 2018-06-07 16:36:32 +01:00
Chris Andrew
8d926754cb Fixed lint issues in Gamepad and GamepadManager. 2018-06-07 16:04:27 +01:00
Chris Andrew
786d2068a3 Documented most of the Graphics Game Object methods. 2018-06-07 16:01:40 +01:00
Chris Andrew
69ec32a2fe Documented initial Graphics options and Graphics style settings types. 2018-06-07 16:01:40 +01:00
Richard Davey
0180a684ca Added leftStick and rightStick properties and shoulder buttons 2018-06-07 14:30:16 +01:00
AleBles
7fc1fbbb4c Put Android device check before Linux, because Android useragent always includes 'Linux' and Linux ua doesn't include Android 2018-06-07 10:15:44 +02:00
Richard Davey
ada4656601 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-06 23:05:48 +01:00
Richard Davey
aa8d207485 Recoded gamepad event flow, moved to direct handlers, exposed first 4 pads, added full docs 2018-06-06 23:05:10 +01:00
Richard Davey
4c4a415dc3 Added docs, axis and button getters 2018-06-06 23:04:38 +01:00
Richard Davey
1518551c43 Added docs, destroy method, and updated update 2018-06-06 23:04:11 +01:00
Richard Davey
12b6825854 Added docs and destroy method 2018-06-06 23:03:59 +01:00
Richard Davey
b18183fb9f Added docs 2018-06-06 23:03:44 +01:00
Richard Davey
fa2e274f8d New gamepad target config property 2018-06-06 23:03:27 +01:00
Chris Andrew
ab5853f65e Started documenting the Graphics game object.
Added a couple of missing descriptions for the Container game object.
2018-06-06 17:52:31 +01:00
Chris Andrew
39ace6c9e9 Finished all BitmapText descriptions, other than GameObject class descriptions. 2018-06-06 17:34:18 +01:00
Chris Andrew
fb33fd045d Documented DynamicBitmapText display callbacks.
Finished up some DynamicBitmapText related descriptions.

Removed the align property from BitmapTextConfig, as it's not used.
2018-06-06 17:26:55 +01:00
Chris Andrew
79c3242c68 Tweaked and filled in a few more BitmapText related descriptions. 2018-06-06 16:58:48 +01:00
Chris Andrew
c9d4ff9f83 Fixed case of @readOnly annotations in BitmapText and DynamicBitmapText. 2018-06-06 16:34:49 +01:00
Chris Andrew
96d750bb60 Documented BitmapText and DynamicBitmapText.
Moved BitmapFontData typedefs to the BitmapText class file.
2018-06-06 16:32:58 +01:00
Chris Andrew
25f1dedb74 Started documenting Bitmap Font data structures. 2018-06-06 15:12:12 +01:00
Chris Andrew
a90e78d0a9 Finished UpdateList and RetroFont.Config documentation. 2018-06-06 15:11:40 +01:00
Chris Andrew
4aaf071ad3 Cleaned up some previous documentation, finished the RenderTexture GameObject documentation. 2018-06-06 14:23:39 +01:00
Andreas Loew
bcef469e1c Trivial change to trigger travis ci build.
The last build failed because of lint issues outside of our code.
2018-06-05 07:45:56 +02:00
Richard Davey
a2c20a9aa7 lint fixes 2018-06-05 01:08:32 +01:00
Richard Davey
c0ac1259ea Significant Data Manager overhaul.
Adds in values property, removes redundant functions, streamlines the event flow, adds features to the get and set handlers.
2018-06-05 01:01:13 +01:00
Richard Davey
a0e4a07920 In TimeStep.step the rawDelta and delta values are checked to make sure they are non-negative, which can happen in Chrome when the delta is reset and out of sync with the value passed to Request Animation Frame. Fix #3088 2018-06-04 22:29:58 +01:00
Richard Davey
8b7256cb86 Pointers now iterate the full camera list, starting at the top. Fix #3631. 2018-06-04 22:14:58 +01:00
Richard Davey
ccf50ff8dc Added Camera.visible property and setter. 2018-06-04 22:12:20 +01:00
Richard Davey
bf2af95930 CameraManager.getCameraBelowPointer has been renamed to getCamerasBelowPointer and it now returns an array of all the cameras below the given pointer, not just the top-most one. The array is sorted so that the top-most camera is at the start of the array. 2018-06-04 22:10:13 +01:00
Andreas Loew
fea754f1f9 Converted code to ES5 2018-06-04 22:44:36 +02:00
Richard Davey
719a2eedca Interactive Objects inside of Containers would still fire their input events even if the Container (or any ancestor) was set to be invisible. Objects now check their ancestor tree during the input cull and now properly skip input events if not visible. Fix #3620 2018-06-04 21:04:27 +01:00
Richard Davey
f411edf987 Added jsdocs. 2018-06-04 17:11:53 +01:00
Richard Davey
c847f3459e addKey and removeKey can take Key objects now. Plus finished the docs. 2018-06-04 17:03:31 +01:00
Richard Davey
7a01354a8a Added to the docs 2018-06-04 16:49:11 +01:00
Richard Davey
97fa3ab2c0 KeyboardManager.addKeys can now take either an object or key codes, or a comma-separated string, as its input. 2018-06-04 16:49:03 +01:00
Richard Davey
9eec66654f Keyboard Manager updates
* KeyboardManager.handler has been removed as it's no longer used internally.
* The KeyboardManager.captures property has been removed as it can be more effectively handled by polling the `keys` object instead.
* The Keyboard Manager will no longer process key down or up events if its `enabled` property is set to false.
* The Keyboard Manager will now call `event.preventDefault` on the native DOM event as long as the Key exists in the keys array and has its `preventDefault` property set to `true` (which is the default). This means you can now control specifically which key prevents default on the browser, where-as before every key added did so.
2018-06-04 15:57:52 +01:00
Richard Davey
f280fb118b Typo fix 2018-06-04 15:57:41 +01:00
Richard Davey
6906e6bd15 Hundreds more jsdocs completed. 2018-06-04 15:19:25 +01:00
Richard Davey
61c5f76d63 Added transformPointer method which Pointer now uses. 2018-06-04 15:19:11 +01:00
Richard Davey
3b30fcff89 Added jsdocs 2018-06-04 13:24:47 +01:00
Richard Davey
7c0c3cd5a8 Updated hitTest call and added jsdocs 2018-06-04 13:23:51 +01:00
Richard Davey
4115b10c80 Added jsdocs 2018-06-04 13:23:34 +01:00
Richard Davey
285b811625 Pointer has two new properties worldX and worldY which contain the position of the Pointer, translated into the coordinate space of the most recent Camera it interacted with. 2018-06-04 13:23:27 +01:00
Joachim Grill
6c58bd9029 fixed lint issues 2018-06-04 11:12:02 +02:00
Richard Davey
15af7c6d0c Added jsdocs 2018-06-04 01:38:45 +01:00
Richard Davey
996ba89e4b Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-03 21:17:45 +01:00
Richard Davey
e7fec396e1 If a Body collides with a Static Body it will now set the blocked properties accordingly 2018-06-03 21:17:33 +01:00
Richard Davey
df7651a892
Merge pull request #3712 from cyantree/bugfix/endless-loop-in-TweenManager-getTweensOf
Fixed endless loop in `TweenManager.getTweensOf()`
2018-06-03 21:04:06 +01:00
Richard Davey
e8964dc789
Merge pull request #3727 from samme/feature/camera-centerXY
Add Camera#centerX, Camera#centerY
2018-06-03 21:02:51 +01:00
Richard Davey
a67e5dbbd5
Merge pull request #3726 from samme/feature/updatelist-length
Add Phaser.GameObjects.UpdateList#length
2018-06-03 21:01:07 +01:00
Richard Davey
d01758ea92
Merge pull request #3723 from NQNStudios/canvas-dom-fix
Don't re-add a user-specified Canvas to DOM
2018-06-03 20:58:54 +01:00
Richard Davey
579c6ba607 Body.useDamping is a new boolean property that allows you to use a damping effect for drag, rather than the default linear deceleration. 2018-06-03 17:08:08 +01:00
Richard Davey
9aa80b2b49 World.computeVelocity now uses the Body.useDamping property to perform either linear deceleration or damping on the Body.
updateMotion has been stream lined.
computeVelocity has been rewritten, takes new arguments, performs better internally.
2018-06-03 17:07:41 +01:00
samme
68ebce077e Add Camera#centerX, Camera#centerY 2018-06-02 21:04:56 -07:00
samme
5be5ea8024 Add Phaser.GameObjects.UpdateList#length 2018-06-02 20:59:01 -07:00
Richard Davey
bbf6211107 Refactored enable and disable flow and added lots of jsdocs. 2018-06-02 12:45:25 +01:00
Richard Davey
9875318f20 Added missing dx/dy properties 2018-06-01 19:52:52 +01:00
Richard Davey
95826aa95f Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-01 19:19:21 +01:00
Richard Davey
40a3896962 Added more jsdocs, setFPS and optimized group vs. sprite and RTree use 2018-06-01 19:19:07 +01:00
Richard Davey
586d1827e0 Removed dirty property, optimized update loop, refactored postUpdate for fixed time step 2018-06-01 19:18:40 +01:00
Richard Davey
329c9266b4 GetOverlapX/Y now use the calculated delta values, not the deltaX/Y methods 2018-06-01 15:41:40 +01:00
Chris Andrew
9e49b30d31 Fixed @return annotation spacing for GetBitmapTextSize. 2018-06-01 15:32:03 +01:00
Chris Andrew
085efa3190 Fixed a couple of BitmapTextSize descriptions. 2018-06-01 15:28:00 +01:00
Chris Andrew
8a7f381a28 Improved some GetBitmapTextSize descriptions. 2018-06-01 15:25:16 +01:00
Chris Andrew
efaff363aa Documented XML Bitmap Font parsing and the GetBitmapTextSize function. 2018-06-01 15:21:10 +01:00
Chris Andrew
4750e92be4 Fixed a method signature issue with the Animation component's 'remove' event handler.
This prevented removed animations from stopping correctly, when they were removed from the AnimationManager.
2018-06-01 14:37:15 +01:00
Chris Andrew
007ac01f10 Documented the Animation, Pipeline and ToJSON Game Object components. 2018-06-01 14:08:35 +01:00
Joachim Grill
bc4186061c added getter for center of mass 2018-06-01 14:42:59 +02:00
Joachim Grill
4719694f33 matter-js physics: added loader for shapes created and exported with PhysicsEditor 2018-06-01 14:42:28 +02:00
Chris Andrew
cb6077f231 Documented most of the Animation component class and some of the Animation class. 2018-06-01 13:11:25 +01:00
Chris Andrew
544daa8d4a Documented the DisplayList and UpdateList plugins, and the BuildGameObject function. 2018-06-01 11:36:12 +01:00
Richard Davey
4ad7993b78 Added fixed timestep logic to Arcade Physics World 2018-06-01 03:25:33 +01:00
cyantree
e578cd55fa Fixed endless loop in TweenManager.getTweensOf() 2018-06-01 01:25:46 +02:00
Richard Davey
7df02a4447 Added 2 NOOPs instead of merging the whole mixins. 2018-06-01 00:03:45 +01:00
Richard Davey
5dffd80420
Merge pull request #3718 from TadejZupancic/patch-3
Particle Emitter Manager in Container
2018-05-31 23:39:20 +01:00
Nat Quayle Nelson
507901cbb1 More comprehensive AddToDom logic
I realized I hadn't looked closely enough at the AddToDom logic, and created an error if a canvas was passed to GameConfig without being added to the DOM first. This commit should fix that scenario and move the logic back into AddToDom() where it really belongs
2018-05-31 16:40:46 -04:00
Nat Quayle Nelson
d43bff04e1 Should now be lint-compliant 2018-05-31 16:12:52 -04:00
Nat Quayle Nelson
29710ec9db Don't re-add a user-specified Canvas to DOM 2018-05-31 14:53:13 -04:00
Chris Andrew
ee6f48b10c Fixed an incorrect usage of Math.abs() in Quaternion.calculateW() (thanks @qxzkjp). 2018-05-31 18:05:31 +01:00
Chris Andrew
40ba9a2ddf Improved descriptions for Quaternion.conjugate() and Quaternion.calculateW(). 2018-05-31 17:55:07 +01:00
Chris Andrew
56b43c5cc0 Improved Quaternion.conjugate() description. 2018-05-31 17:42:57 +01:00
Chris Andrew
e52e9ff8ec Documented a few more Matrix descriptions. Fixed Matrix4.makeRotationAxis(). 2018-05-31 17:32:25 +01:00
Richard Davey
f45ab89f8d The ForwardDiffuseLightPipeline, used by the Lights system, now sets a flag if the Scene doesn't contain any lights. All of the Game Objects now check this flag and don't even bother adding themselves to the batch if there are no lights in the Scene, as they'd never render anyway. This also avoids the ghost-image problem if you swap Scenes to a new Scene with the Light Manager enabled, but no actual lights defined. Fix #3707 2018-05-31 16:57:30 +01:00
Chris Andrew
0fdb7fcab6 Documented SinCosTableGenerator and a few more easing parameters. 2018-05-31 16:29:42 +01:00
Richard Davey
652b7b04ba Huge new ArcadeColliderType def. Fix #3714. 2018-05-31 15:52:45 +01:00
Chris Andrew
fd715f9a34 Fixed lint error in InputManager.update(). 2018-05-31 15:19:35 +01:00
Chris Andrew
dad6b78c9b Documented almost all of Math.Quaternion. Fixed lint error in RandomOutside. 2018-05-31 15:17:59 +01:00
Richard Davey
20e21ff5ac Rectangle.RandomOutside is a new function that takes two Rectangles, outer and inner, and returns a random point that falls within the outer rectangle but is always outside of the inner rectangle. 2018-05-31 14:07:39 +01:00
TadejZupancic
6f7463f4f7
Particle Emitter Manager in Container
Added Alpha and ScrollFactor Mixin to Particle Emitter Manager otherwise it crashes when added to the Container.
2018-05-30 10:44:49 +02:00
Richard Davey
594fc3e27b Added new dom callback support, streamlined the event flow, moved to consts 2018-05-30 00:33:51 +01:00
Richard Davey
f79ee26945 Proxy to the dom callback methods 2018-05-30 00:33:28 +01:00
Richard Davey
bdc95217ae Calls new manager queue methods 2018-05-30 00:33:16 +01:00
Richard Davey
521ea10db9 Moved active pointers total to game config 2018-05-30 00:33:01 +01:00
Richard Davey
5db2bf5cbd Moved the event switch block from strings to consts 2018-05-30 00:32:45 +01:00
Richard Davey
45c373f9f4 Multi-touch support working properly up to 10 pointers and mouse re-enabled. 2018-05-29 16:55:52 +01:00
Richard Davey
a739be27a1 RenderTexture.resize will allow you to resize the underlying Render Texture to the new dimensions given. Doing this also clears the Render Texture at the same time 2018-05-29 12:07:40 +01:00
Richard Davey
a11a34d287 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-05-29 11:50:32 +01:00
Richard Davey
a7da8dc28f The Canvas RenderTexture drawImage method incorrectly set the values of the frame, causing them to appear wrongly scaled in the canvas renderer. Fix #3710 2018-05-29 11:50:23 +01:00
Rafael Barbosa Lopes
904b6c13da Delete console.log call on PluginManager. 2018-05-26 14:01:07 -03:00
Richard Davey
57e32761df Started work on multi-touch support. 2018-05-25 19:28:18 +01:00
Richard Davey
20d702c011 Added identifier properties for multi-touch 2018-05-25 19:28:02 +01:00
Richard Davey
700a26a196 Input systems listen to Input Manager events rathern than being directly hooked in 2018-05-25 19:27:26 +01:00
Richard Davey
a8f1b23b73 Fixed jsdoc errors 2018-05-25 17:20:50 +01:00
Richard Davey
d2981a8576 Preparing for 3.10 dev work 2018-05-25 00:21:01 +01:00
Richard Davey
23d3fe3774 3.9.0 Release 2018-05-24 23:42:40 +01:00
Richard Davey
6cfc5d49e7 The AudioContextMonkeyPatch has been updated to use an iife. Fix #3437 2018-05-24 23:17:33 +01:00
Richard Davey
3d9da060c5 Camera.shake would not effect dynamic tilemap layers. Fix #3669 2018-05-24 23:02:59 +01:00
Chris Andrew
05f55dc5ed Minor parameter renaming for SmoothStep interpolation functions. 2018-05-24 19:06:57 +01:00
Chris Andrew
2e0b50ee90 Simplified implementations of SmoothStepInterpolation and SmootherStepInterpolation. 2018-05-24 18:55:24 +01:00
Chris Andrew
2f3c35c5b5 Fixed SmoothStepInterpolation and SmootherStepInterpolation implementations.
Improved documentation consistency of SmoothStep, SmootherStep, SmoothStepInterpolation and SmootherStepInterpolation.
2018-05-24 18:48:12 +01:00
Chris Andrew
f38a0683ff Updated SmoothStep and SmootherStep documentation. Fixed lint errors. 2018-05-24 18:11:18 +01:00
Chris Andrew
424b5d72cd Added SmootherStep interpolation function. 2018-05-24 18:02:53 +01:00
Richard Davey
603483ee69 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-05-24 17:30:31 +01:00
Richard Davey
7d692bc7dc Added Camera.followOffset property and helper methods setLerp and setFollowOffset. 2018-05-24 17:30:28 +01:00
Richard Davey
9834e9d30b Added followOffset property to Camera target 2018-05-24 17:04:20 +01:00
Richard Davey
bed3968ff7 Added SmoothStep interpolation function 2018-05-24 17:04:02 +01:00
Richard Davey
2684e7d988 Updated docs and added native clamping 2018-05-24 17:03:42 +01:00
Chris Andrew
e6d1df56cd Started documenting Matrix3 and Matrix4. 2018-05-24 16:41:59 +01:00
Chris Andrew
3a56fc32f7 Described all easing functions. 2018-05-24 15:44:49 +01:00
Richard Davey
9a76f40f55 No such property as target, swap to _follow. 2018-05-24 15:33:49 +01:00
Richard Davey
f8cda698e4 Added Camera.lerp and implemented linear interpolation when following targets 2018-05-24 15:29:38 +01:00
Richard Davey
57c2ccbf5e Formatting fix and doc update 2018-05-24 14:03:29 +01:00
Richard Davey
37f75fd233
Merge pull request #3675 from tjb295/master
Bug: #3645 issue with clearing GameObjects from this._list. Called qu…
2018-05-24 13:51:55 +01:00
Richard Davey
6ab124c591
Merge pull request #3687 from thomastanck/thomastanck-typedefupdates
Update type definitions
2018-05-24 13:49:30 +01:00
Chris Andrew
1aeb8327e7 Started documenting Math.Easing functions. 2018-05-24 13:33:47 +01:00
Chris Andrew
313ae38bb1 Improved Math.Angle function documentation. 2018-05-24 13:14:04 +01:00
Chris Andrew
1c94c3d4d6 Documented a few more Phaser.Math functions. 2018-05-24 12:59:27 +01:00
Chris Andrew
c9d82c9ebd Documented Math.Snap functions.
Adapted from Phaser CE documentation.
2018-05-24 12:15:37 +01:00
Chris Andrew
5e374b29dc Elaborated fuzzy math function descriptions.
Finished up pow2 and RandomDataGenerator descriptions.
2018-05-24 12:06:44 +01:00
Chris Andrew
0f9bfc62f8 Documented Math.Distance, Math.Fuzzy and Math.Interpolation. 2018-05-24 11:40:53 +01:00
Richard Davey
d6d9b69897 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-05-23 23:14:56 +01:00
Richard Davey
30678b44ff Updated method names 2018-05-23 23:09:31 +01:00
Chris Andrew
4726b8f2eb
Merge pull request #3696 from hexus/documentation
Phaser.Math Documentation
2018-05-23 18:49:29 +01:00
Chris Andrew
03fee98511 Reverted Vector3.setTo() implementation. Fixed an ESLint issue in RenderTexture. 2018-05-23 18:37:32 +01:00
Chris Andrew
8c3a9ea42b Documented Math.Angle functions and Math.Wrap. 2018-05-23 17:42:54 +01:00
Richard Davey
182015bdbc
Merge pull request #3695 from wtravO/master
Fixed JSDoc error in RND.shuffle param
2018-05-23 15:30:42 +01:00
Richard Davey
68303622f2 Setting an existing Game Object as a static Arcade Physics body would sometimes incorrectly pick-up the dimensions of the object, such as with TileSprites. Fix #3690 2018-05-23 15:17:26 +01:00
Travis O'Neal
87d1621bfc Fixed JSDoc error in shuffle param 2018-05-23 10:17:07 -04:00
Richard Davey
6eea9db9b2 jsdoc fixes. FIx #3694 2018-05-23 15:04:54 +01:00
Chris Andrew
01d45f5d83 Documented most of Vector4. Improved documentation consistency between Vector classes. 2018-05-23 15:00:03 +01:00
Richard Davey
1a1dbe2dd7 lint fix 2018-05-23 14:55:51 +01:00
Chris Andrew
c9d17fb9c7 Implemented Vector3.setTo() (alias for set()).
Fixed some documentation mistakes. Removed appropriate TODO.
2018-05-23 12:19:31 +01:00
Chris Andrew
d8163439a1 Documented most of Vector3. Improved Vector2 documentation. 2018-05-23 12:15:16 +01:00
Chris Andrew
dca9f11f0f Started documenting top-level Phaser.Math functions and classes. 2018-05-23 10:46:16 +01:00
Chris Andrew
5f3767f43d Polished some DataManagerPlugin and EachActiveSoundCallback descriptions. 2018-05-23 08:18:49 +01:00
Chris Andrew
f95b35eae7 Finished off descriptions for Data, Plugins and Sound. 2018-05-23 08:09:24 +01:00
Richard Davey
8aa116ca4b The dragend event would be broadcast even if the drag distance or drag time thresholds were not met. Fix #3686 2018-05-22 21:24:50 +01:00
Richard Davey
de8462efed Added default values and tidied up docs a little 2018-05-22 16:19:18 +01:00
Richard Davey
1485f34cbe
Merge pull request #3682 from samme/feature/arcade-body-setters
Add `allowDrag`, `allowGravity`, `allowRotation` to Arcade.PhysicsGroup config
2018-05-22 16:12:39 +01:00
Richard Davey
65172a69a0
Merge pull request #3679 from KingCosmic/master
fixed #3646
2018-05-22 16:04:38 +01:00
Richard Davey
457ab68ef4 Container updated to use preDestroy and remove event hooks 2018-05-22 16:02:28 +01:00
Richard Davey
d629923e54 Blitter preDestroy will now clear the children List and renderList. 2018-05-22 16:02:13 +01:00