Commit graph

5768 commits

Author SHA1 Message Date
Richard Davey
2037cf468b More clarity. #3622 2018-04-27 12:42:37 +01:00
iamchristopher
68687162b5 Fixed JSONFile loader doesn't pass loader to JSONFile 2018-04-26 20:31:32 -04:00
Richard Davey
ef136f684d Polygon.setTo would fail if given an array of arrays as a list of points. Fix #3619 2018-04-26 15:55:27 +01:00
Richard Davey
65c54f4b8d Array.AddAt would fail if it branched to the fast-path within a Container due to an invalid property. Fix #3617 2018-04-26 15:44:56 +01:00
Richard Davey
dbdd5a8d04
Merge pull request #3514 from iamchristopher/feature-multi-image-loader
Fixed loading normals with multi image load
2018-04-26 13:04:49 +01:00
Richard Davey
b2b631534c
Merge pull request #3616 from samme/fix/particles
Fix ParticleEmitter#toJSON() output
2018-04-26 13:03:30 +01:00
Richard Davey
103e0c8727 Updated RandomDataGenerator.shuffle to remove several internal calls as min is always zero 2018-04-26 13:02:13 +01:00
Richard Davey
44314845f5
Merge pull request #3564 from wtravO/master
Added array shuffle method to RDG
2018-04-26 12:38:19 +01:00
Richard Davey
6934d79747
Merge pull request #3613 from samme/fix/3612
Fix no children created from GroupCreateConfig[] (multiple adds)
2018-04-26 12:36:23 +01:00
Richard Davey
17341d3727
Merge pull request #3614 from Fabadiculous/docs
Docs for DegToRad, RadToDeg, Rotate, Within, RoundAwayFromZero and IsEven
2018-04-26 12:34:39 +01:00
Chris Wright
ed51affded
Merge branch 'master' into feature-multi-image-loader 2018-04-25 20:48:06 -04:00
Felipe Alfonso
cf8e2cfd60 added jsdoc comments to WebGLRenderer 2018-04-25 20:30:41 -03:00
Felipe Alfonso
0c90f068fc Added jsdoc comments to WebGLPipeline 2018-04-25 19:52:20 -03:00
Richard Davey
038bbcc7bc Fixed the remaining file types. 2018-04-25 23:16:17 +01:00
Felipe Alfonso
de7568acbb Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-25 13:18:36 -03:00
Richard Davey
0f0f099326 eslint fixes 2018-04-25 17:18:16 +01:00
Felipe Alfonso
e85c66a2fd Added jsdocs comments to WebGL utils 2018-04-25 13:17:33 -03:00
Richard Davey
074fcbcf2b null references 2018-04-25 17:16:39 +01:00
Richard Davey
9843da1053 Check file cache and pass processing of the file off to the file itself 2018-04-25 17:16:09 +01:00
Richard Davey
a07cc81806 Fixed passing of data for freshly added Scenes 2018-04-25 17:14:10 +01:00
Richard Davey
83a1965cb8 Files types updated to support new cache config value 2018-04-25 17:13:43 +01:00
Richard Davey
75a49d284c Added hasCacheConflict and addToCache methods/ 2018-04-25 17:13:06 +01:00
Richard Davey
1b25755419 The BaseCache has a new method exists that will return a boolean if an entry for the given key exists in the cache or not. 2018-04-25 17:07:39 +01:00
Felipe Alfonso
d2da10c1a9 Added jsdoc comments to TextureTintPipeline 2018-04-25 13:06:19 -03:00
Daniel
78d1c566ef Fix comment alignment 2018-04-25 20:25:29 +10:00
Daniel
9f8d87c23f Fill some description tags in Vector2.js. Fixed some descriptions.
Filled for:
setFromObject
constructor
2018-04-25 20:10:49 +10:00
samme
bd9831912c Don't stringify emitter ops twice 2018-04-24 14:20:23 -07:00
samme
0de5340201 Add 'angle' to configOpMap
It was missing from toJSON() output
2018-04-24 14:20:23 -07:00
Felipe Alfonso
f64b4b9b20 added jsdoc comments to ForwardDiffuseLightPipeline 2018-04-24 16:52:57 -03:00
Felipe Alfonso
7e90dab82f FlatTintPipeline jsdoc comments 2018-04-24 16:30:00 -03:00
Felipe Alfonso
e385d018c5 added comments to ModelViewProjection pipeline component 2018-04-24 16:00:35 -03:00
Felipe Alfonso
426bc4ffd4 BitmapMaskPipeline jsdoc descriptions 2018-04-24 13:53:10 -03:00
Richard Davey
ef24982301 Pending dos 2018-04-24 15:34:55 +01:00
Richard Davey
741d1f5793 Doc pending tags 2018-04-24 15:32:08 +01:00
Daniel
1f50bbd221 Filled many description tags for methods in Vector2.
These include:
reset,dot, normalize, lengthSq, length, distance, distanceSq, negate,
divide, multiply, add, subtract, scale, angle, equals, setTo, set, copy,
clone
2018-04-24 17:40:51 +10:00
Daniel
f347af853f Fix grammar in return statement description DegToRad.js 2018-04-24 16:29:51 +10:00
Daniel
529c35adda Update return statement description in RadToDeg 2018-04-24 16:27:19 +10:00
Daniel
516c8cb29d Update return statement description in DegToRad 2018-04-24 16:26:47 +10:00
Daniel
bad01055e1 Fill description tags in IsEven.js 2018-04-24 16:23:42 +10:00
Daniel
ce4702cbc2 Fill all description tags in RoundAwayFromZero.js 2018-04-24 16:23:26 +10:00
Daniel
bea966f646 Fill in remaining description tags for Within.js 2018-04-24 16:22:52 +10:00
Daniel
2fbb29f79a Fill all description tags in Rotate.js 2018-04-24 16:22:05 +10:00
Daniel
31ed7f7673 Fill all description tags in TadToDeg.js 2018-04-24 13:48:11 +10:00
Daniel
c119d570ee Fill all description tags in DegToRad.js 2018-04-24 13:47:55 +10:00
samme
66f1ff848e Fix no children created from GroupCreateConfig[] (multiple adds)
Fixes #3612
2018-04-23 18:14:36 -07:00
Richard Davey
cd288b33c2 eslint fixes 2018-04-23 23:52:57 +01:00
Richard Davey
84007cd9a4 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-23 23:47:18 +01:00
Richard Davey
6ff2cc6ba9 The new CanvasTexture class now working and linked to examples. 2018-04-23 23:46:59 +01:00
Richard Davey
152c68eca3 TextureManager.checkKey will check if a texture key is in-use and log a console warning if it is and then return a boolean. 2018-04-23 23:42:42 +01:00
Richard Davey
649adb51d3 When a TextureSource is destroyed if it's got a canvas texture it's removed from the CanvasPool. 2018-04-23 23:41:05 +01:00
Richard Davey
dd954def9d Updated jsdoc 2018-04-23 23:40:23 +01:00
Richard Davey
0aa071f734 Frame has a new method setSize which allows you to set the frame x, y, width and height and have it update all of the internal properties automatically. 2018-04-23 23:40:12 +01:00
Richard Davey
6d958c5157 jsdoc udpate 2018-04-23 23:39:24 +01:00
Richard Davey
8f2c13f4c8 CanvasPool has a new argument selfParent which allows the canvas itself to be the parent key, used for later removal. 2018-04-23 23:39:12 +01:00
Richard Davey
006d501fbe Added remove method 2018-04-23 19:11:47 +01:00
Richard Davey
54a5bb41c7 Tidying up 2018-04-23 19:11:16 +01:00
Richard Davey
4a58ed3935 The start of a new CanvasTexture class 2018-04-23 18:37:44 +01:00
Richard Davey
d96d677bea TextureSource will automatically create a canvas texture if required and holds a reference to the renderer internally 2018-04-23 18:37:30 +01:00
Felipe Alfonso
1ce2311465 tile culling and clipping progress 2018-04-23 13:45:42 -03:00
Richard Davey
e685c50f8a Clear manager 2018-04-23 17:30:18 +01:00
Richard Davey
649378ed0a Tidied up canvas creation and texture deletion 2018-04-23 17:30:09 +01:00
Richard Davey
e3c28d3cd9 Removed un-needed arguments 2018-04-23 17:28:37 +01:00
Richard Davey
ed2eafb3b3 Code tidying 2018-04-23 00:13:11 +01:00
Richard Davey
ced2d34b34 BitmapMask and GeometryMask both have new destroy methods which clear their references, freeing them for gc. 2018-04-23 00:13:04 +01:00
Richard Davey
30a0ff02cb
Merge pull request #3600 from samme/docs/particles
Add docs for gameobjects/particles
2018-04-22 23:07:51 +01:00
Richard Davey
f34a507002
Merge pull request #3605 from zilbuz/master
Update GetBounds.getBounds() JSDoc
2018-04-22 23:06:25 +01:00
Daniel
96d1b691fa Add full stop to docs 2018-04-22 17:07:55 +10:00
Daniel
0e3c1064c9 Actually fill in the doc tags, instead of commiting the wrong thing 2018-04-22 17:04:11 +10:00
Daniel
0a422fce0c Add full stops at the end of doc sentences 2018-04-22 17:03:47 +10:00
Daniel
d67559debc Fill all description tags for Phaser.Math.Difference 2018-04-22 17:00:03 +10:00
Daniel
ea1d01b325 Fill all description tags for Phaser.Math.Factorial 2018-04-22 16:59:44 +10:00
Daniel
9701d68af2 Fill all description tags for Phaser.Math.FloatBetween 2018-04-22 16:59:25 +10:00
Daniel
d7c5d8951a Fill all description tags for Phaser.Math.Factorial 2018-04-22 16:53:35 +10:00
Daniel
2c584d3d0e Fill all description tags in GetPhysicsPlugins.js 2018-04-22 16:50:09 +10:00
iamchristopher
85a9014b28 Merge remote-tracking branch 'upstream/master' into feature-multi-image-loader 2018-04-21 16:15:19 -04:00
Pavle Goloskokovic
116e62fafe Setting locked lag only if there are locked audio tags 2018-04-21 20:09:18 +02:00
Pavle Goloskokovic
eec19e146a Removing locked actions from queue before performing it 2018-04-21 20:08:25 +02:00
Pavle Goloskokovic
923ac40d65 No need for resetting lockedActionsQueue 2018-04-21 20:06:14 +02:00
Pavle Goloskokovic
53b69f036c Removed assigning lockedActionsQueue to empty array since it is initialized in constructor 2018-04-21 20:02:48 +02:00
Pavle Goloskokovic
f89a11793f Initializing lockedActionsQueue in constructor 2018-04-21 19:58:52 +02:00
samme
711d2a6193 Minor additions and corrections to docs 2018-04-20 21:00:19 -07:00
Richard Davey
606ba6d8d7 Added new Mask component and added to all relevant Game Objects 2018-04-20 18:57:49 +01:00
Richard Davey
445439e253 The Texture Manager will now emit an addtexture event whenever you add a new texture to it, which includes when you load images files from the Loader (as it automatically populates the Texture Manager). Once you receive an addtexture event you know the image is loaded and the texture is safe to be applied to a Game Object. 2018-04-20 18:57:23 +01:00
Basile Desloges
a7fc306329 Update GetBounds.getBounds() JSDoc so that @generic matches with @param and @return 2018-04-20 17:55:32 +02:00
samme
8b939d7790 Omit EmitterOpEmitConfig, EmitterOpUpdateConfig 2018-04-20 06:51:31 -07:00
Richard Davey
84fa696f97 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-20 14:03:10 +01:00
Richard Davey
6626fae27d eslint fix 2018-04-20 14:03:06 +01:00
Richard Davey
1185586b23 Web Audio context.close now picks up the Promise. 2018-04-20 14:01:57 +01:00
Richard Davey
d50cb2505f
Merge pull request #3599 from wtravO/JSDocFix
Fixed bug in AnimationConfig jsdoc and filled in several empty descriptions
2018-04-20 13:55:43 +01:00
Richard Davey
e3aa437340 DataManagerPlugin would throw an error on Game.destroy if you had any Scenes in the Scene Manager had not been run. Fix #3596 2018-04-20 13:34:45 +01:00
Richard Davey
4018d6ab39 Added require.extensions and eslint rule. Fix #3598 2018-04-20 01:10:04 +01:00
Richard Davey
6299019838 Updated to use typeof DefinePlugin check. 2018-04-20 00:23:24 +01:00
Richard Davey
fc4fdc4e3c Preparing for 3.6.1 2018-04-19 22:47:10 +01:00
samme
0b881e9a4e Add particles docs 2018-04-19 14:05:21 -07:00
Travis O'Neal
67ea16e3b2 Fixed bug in AnimationConfig jsdoc and filled in several empty descriptions 2018-04-19 11:36:13 -04:00
Richard Davey
349a95bc4b Updating to 3.6.0 2018-04-19 14:45:45 +01:00
Richard Davey
cfc4528370 Containers no longer in beta. 2018-04-19 14:35:17 +01:00
Richard Davey
4cd2713bd8
Merge pull request #3597 from Fabadiculous/docs
Filling out some docs in for Line, Point, PlayAnimation and  Random
2018-04-19 14:27:26 +01:00
Richard Davey
8f54932f93 Remove canvas from parent node. 2018-04-19 14:23:55 +01:00
Richard Davey
3d0be3e20c Group.remove and clear have optional destroyChild arguments 2018-04-19 14:13:46 +01:00
Richard Davey
e14d0c5054 eslint fixes 2018-04-19 13:57:33 +01:00
Richard Davey
a6c430674a # not . 2018-04-19 13:31:21 +01:00
Richard Davey
eb1990d061 jsdoc fix 2018-04-19 13:30:19 +01:00
Richard Davey
176b085402 jsdoc fix 2018-04-19 13:28:10 +01:00
Richard Davey
cb4eb9e435 Rescoped RetroFont so it's no longer bound to BitmapText 2018-04-19 13:07:59 +01:00
Daniel
24afeded9b Add full stops at end of descriptions 2018-04-19 21:59:27 +10:00
Richard Davey
5b31a51dd5 Rescoped 2018-04-19 12:42:35 +01:00
Richard Davey
895c9f9694 Missing module fix 2018-04-19 12:39:28 +01:00
Richard Davey
32ce8d7947 jsdoc fixes and removed un-used ResetKey file. 2018-04-19 12:30:38 +01:00
Daniel
58964da286 Filled description tags for constructor, x1, x2, y1, y2, getPoint return statement, getRandomPoint and setTo methods 2018-04-19 16:33:14 +10:00
Daniel
29799f36d0 All description tags filled 2018-04-19 16:27:32 +10:00
Daniel
000fd9fd96 Completed all description tags 2018-04-19 16:18:48 +10:00
Daniel
f983f121d4 Add docs for PlayAnimation 2018-04-19 08:36:57 +10:00
Daniel
ead3537d45 Added docs for PlayAnimation 2018-04-19 08:31:21 +10:00
Felipe Alfonso
504ba9e133 Fixed eslint errors on TextureTintPipeline.js 2018-04-18 18:54:06 -03:00
Felipe Alfonso
4496e773a7 Removed particle scroll factor property and calculation from canvas rendering 2018-04-18 18:44:09 -03:00
Felipe Alfonso
c4afb51c1b Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-18 18:40:41 -03:00
Felipe Alfonso
aef538d61b Added parent transform matrix to Light2D pipieline to allow support for containers 2018-04-18 18:40:27 -03:00
Richard Davey
973d8ecac5
Merge pull request #3592 from samme/fix/group-get-handler
Fix incorrect `active` state selection in Group#getHandler
2018-04-18 22:37:22 +01:00
Felipe Alfonso
e25f420269 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-18 18:35:42 -03:00
Felipe Alfonso
47bee69b3b Fixed transformation matrix order for batchGraphics 2018-04-18 18:35:18 -03:00
Richard Davey
f57ab02fe6 Recoded how RTree generations its functions. Solves perf issue introduced in 3.4 Fix #3594 2018-04-18 22:32:52 +01:00
Felipe Alfonso
18e178a72f Fixed matrix transformation order for batchTexture 2018-04-18 18:30:54 -03:00
Felipe Alfonso
f3e0ae8d44 Fixed order of transformation for dynamic bitmap text 2018-04-18 18:28:08 -03:00
Felipe Alfonso
dbafd9a70c Fixed order of matrix transformation on:
-emitter
-blitter
-sprite
-mesh
-bitmap text
2018-04-18 18:15:43 -03:00
samme
1c0905a103 Fix incorrect active state selection 2018-04-18 08:44:10 -07:00
Richard Davey
23f353326c jsdoc fix 2018-04-18 13:48:25 +01:00
Richard Davey
af3273b2e6 jsdoc fixes 2018-04-18 13:39:55 +01:00
Richard Davey
f73e18043f jsdoc fix 2018-04-18 13:35:43 +01:00
Richard Davey
6e77557375 jsdoc fixes 2018-04-18 13:34:22 +01:00
Richard Davey
b0544c73b8 jsdoc fixes 2018-04-18 13:29:22 +01:00
Richard Davey
c391662faa Updated log and changed version 2018-04-18 13:29:15 +01:00
Richard Davey
d96382f94d Added getFirstNth and getLastNth 2018-04-18 13:28:57 +01:00
Richard Davey
55965c748f jsdoc fixes 2018-04-18 12:13:49 +01:00
Richard Davey
5b4feedcaf Added Group.GetLast 2018-04-18 04:01:06 +01:00
Richard Davey
6772a548dc Preparing for 3.6.0 2018-04-17 20:55:47 +01:00
Felipe Alfonso
eceb43584b Fixed issue on particle emitter rendering not writing directly to the vertex count property 2018-04-17 13:20:08 -03:00
Richard Davey
d3e6d60043 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-17 16:00:09 +01:00
Richard Davey
d3d21976d3 lint fix 2018-04-17 15:59:57 +01:00
Richard Davey
c3c39d85eb
Merge pull request #3584 from NemoStein/master
XHR parameters are optional in Phaser.Loader.FileTypes
2018-04-17 15:31:57 +01:00
Richard Davey
549976134d Only return 2d context 2018-04-17 15:24:07 +01:00
Richard Davey
529cdedc70 Re-enabled getScene. #3579 2018-04-17 15:07:54 +01:00
NemoStein
2c3f13246d Updated jsdocs (all XHR parameters are optional in Phaser.Loader.FileTypes) 2018-04-17 10:31:52 -03:00
Richard Davey
1be486fab4 destroy only called once, no matter how many times the Scene restarts. Fix #3581 2018-04-17 12:25:45 +01:00
Richard Davey
348aeec4ec
Merge pull request #3580 from jmcriat/patch-1
Delete Texture only applicable on renderer.gl
2018-04-17 02:36:17 +01:00
Richard Davey
07a55e5d1f Removed debug call and merged Scene Systems boot and start sequences. Fix #3579 2018-04-17 02:34:07 +01:00
José Maria
607ce3a9bb
Delete Texture only applicable on render.gl
There is no deleteTexture on this.renderer when running on canvas.
 Destroying tilesprite (scene shutting down) would throw error.
2018-04-16 21:50:04 -03:00
Felipe Alfonso
5cc2ebd6be Fixed issue when destroying WebGLRenderer 2018-04-16 15:16:23 -03:00
Richard Davey
1507dcf448 eslint fix 2018-04-16 17:16:07 +01:00
Richard Davey
5ccac599a6 Updated docs and destroy properties 2018-04-16 17:14:12 +01:00