Richard Davey
ffb604c502
Added new setVelocity, setVelocityX, setVelocityY, setAngularVelocity, applyForce and applyForceFromAngle methods.
2020-01-04 12:31:27 +00:00
Richard Davey
ba4c82e140
Added jsdocs
2020-01-04 12:27:04 +00:00
Richard Haddad
2d0edf2a2f
Merge branch 'master' into master
2020-01-04 05:23:43 +01:00
Richard Davey
a7ebd6b1b5
Merge pull request #4938 from javigaralva/fix-spline-doc
...
Added some documentation for Spline curves.
2020-01-03 23:15:17 +00:00
samme
974ffd93ee
Docs for Phaser.Sound.BaseSoundManager#play
...
Always adds a new sound
2020-01-03 13:44:07 -08:00
samme
b28f45b609
Docs for Phaser.Scenes.ScenePlugin
...
- Note operations are queued
- https://github.com/photonstorm/phaser/issues/4403#issuecomment-481264025
2020-01-03 13:44:07 -08:00
samme
bee0a96542
Docs for Phaser.Curves.Curve and Phaser.Curves.Path
...
And whitespace
2020-01-03 13:44:07 -08:00
Chnapy
9bb02d57ef
improve typings: getPoints functions
2020-01-03 13:21:50 +01:00
Chnapy
265bfc76fb
improve typings: EventEmitter
2020-01-03 13:00:42 +01:00
Chnapy
094e322ace
Revert "add generics for Scene and its config key"
...
This reverts commit a1cf6e4456
.
2020-01-03 12:37:50 +01:00
Javier García Álvarez
6e05e0252f
Added some documentation for Spline curves.
2020-01-03 09:37:59 +01:00
Chnapy
a1cf6e4456
add generics for Scene and its config key
2020-01-02 21:54:45 +01:00
Chnapy
a794c16361
improve typings: GenerateFrameNames
2020-01-02 20:23:10 +01:00
Chnapy
3dfec6fbc3
improve typings: BresenhamPoints function
2020-01-02 20:18:14 +01:00
Richard Davey
5e027f7031
Added JSDocs
2020-01-02 16:45:28 +00:00
Richard Davey
1e6e350f7f
Typo fix
2020-01-02 01:57:26 +00:00
Richard Davey
7fdcfd540c
Remove render.opacity as it's not valid for constraints
2020-01-01 20:02:15 +00:00
Richard Davey
58c8efc2e5
Added jsdocs
2020-01-01 17:33:45 +00:00
Adam Beswick
cf4a4e2107
Remove requestedFullscreenChange and replace with checking the document's fullscreen element
2019-12-30 10:34:43 +00:00
Alex
77dc14ee2f
Changed tile getTint function to use getTintAppendFloatAlphaAndSwap
2019-12-29 21:46:50 -05:00
Richard Davey
4892cc7feb
The Graphics
Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the element, rather than a quad alpha, which never worked for these objects.
2019-12-28 17:37:13 +00:00
Richard Davey
6ffdacc959
The DOMElement
Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the element, rather than a quad alpha, which never worked for these objects.
2019-12-28 17:37:04 +00:00
Richard Davey
e6464f6ad3
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-12-28 17:29:11 +00:00
Richard Davey
5a3d124583
lint fix
2019-12-28 17:28:50 +00:00
Richard Davey
f0e7a9bcf9
The Container
Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the container, rather than a quad alpha, which never worked consistently across Container children. Fix #4916
2019-12-28 17:27:31 +00:00
Richard Davey
949d882788
The Shape
Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the shape, rather than a quad alpha, which never worked for Shape objects.
2019-12-28 17:27:15 +00:00
Richard Davey
695cb7e4e2
AlphaSingle
is a new Game Object Component that allows a Game Object to set its alpha values, but only as a single uniform value, not on a per-quad basis.
2019-12-28 17:27:01 +00:00
Richard Davey
56179c3887
Merge pull request #4920 from samme/feature/error-for-missing-audio-source
...
Throw an error when adding a sound from a missing asset
2019-12-28 16:37:52 +00:00
Richard Davey
5130fccbf5
Merge pull request #4921 from samme/feature/emitter-remove
...
Add ParticleEmitter.remove() and ParticleEmitterManager#removeEmitter()
2019-12-28 16:35:07 +00:00
Richard Davey
5adf6382ff
Merge pull request #4922 from samme/feature/emitter-setTint
...
Add ParticleEmitter#setTint()
2019-12-28 16:33:39 +00:00
Richard Davey
e7852b5384
Merge pull request #4923 from samme/patch-2
...
Correct type for Phaser.Tilemaps.LayerData.data
2019-12-28 16:22:59 +00:00
Richard Davey
b01c4b400f
Merge pull request #4930 from jcyuan/path-missing-crop
...
Crop component is missing from `RenderTexture` class
2019-12-28 16:22:20 +00:00
Richard Davey
b0c101a1cc
Merge pull request #4926 from samme/feature/distances
...
Add Phaser.Math.Distance methods
2019-12-28 16:14:12 +00:00
J.C
936563df11
Crop component is missing from RenderTexture
class
2019-12-27 17:01:14 +08:00
samme
148e907b71
Add Math.Distance methods
...
- BetweenPoints()
- BetweenPointsSquared()
- Chebyshev()
- Snake()
2019-12-23 17:20:43 -08:00
samme
e752b5dc92
Add Phaser.Actions.AlignTo() and Phaser.Display.Align.To.QuickSet()
2019-12-23 16:37:43 -08:00
samme
f1001578c5
Bracket notation for type
...
Phaser.Tilemaps.LayerData#data
2019-12-23 12:57:58 -08:00
samme
15506e0faf
Add ParticleEmitter.remove() and ParticleEmitterManager#removeEmitter()
2019-12-23 10:36:35 -08:00
samme
56cd59c537
Throw error for a bad audio asset key
2019-12-23 09:46:45 -08:00
samme
559c89eaf2
Add ParticleEmitter#setTint()
2019-12-23 09:25:35 -08:00
Richard Davey
64690cf987
Body.gravityScale
is a new vector property that allows you to scale the effect of world gravity on a specific Body.
2019-12-21 08:29:57 +00:00
Richard Davey
66a25e2117
Setting lineSpacing
in the Text Game Object style config would set the value but not apply it to the Text, leaving you to call updateText
yourself. If set, it's now applied on instantiation. Fix #4901
2019-12-18 14:55:12 +00:00
Richard Davey
752999c92b
The Mesh
and Quad
Game Objects have had the GetBounds
component removed as it cannot operate on a Mesh as they don't have origins. Fix #4902
2019-12-18 14:43:23 +00:00
Richard Davey
9379f3ce17
Merge pull request #4877 from rexrainbow/curve-improvement
...
Add arguments step and out in curve.getSpacedPoints() method
2019-12-18 14:40:49 +00:00
Richard Davey
a4fb73fe38
Merge pull request #4879 from rexrainbow/curve-improvement2
...
Override default Curve.getUtoTmapping method
2019-12-18 14:37:36 +00:00
Richard Davey
55212dc2fb
Merge pull request #4892 from BeLi4L/master
...
TypeScript: Improve `Phaser.Math.RND` types
2019-12-18 14:36:52 +00:00
Richard Davey
d995cff36f
Merge pull request #4885 from rexrainbow/bug/game.destroy()
...
Fix bug of game.destroy()
2019-12-18 14:33:03 +00:00
Richard Davey
205bbab268
Merge pull request #4886 from rexrainbow/text-wrap
...
Don't add white space at last word of a line
2019-12-18 14:31:11 +00:00
Richard Davey
65efb6bcb7
Merge pull request #4900 from samme/patch-1
...
Correct docs for Phaser.Math.GetSpeed()
2019-12-18 14:30:31 +00:00
Richard Davey
29b0e96407
Merge pull request #4909 from samme/docs/arcade-physics-3
...
Docs for Arcade Physics
2019-12-18 14:29:51 +00:00
Richard Davey
e5ab24ec8c
Merge pull request #4912 from javigaralva/add-gameobjectfactory-docs
...
Added doc for `GameObjectFactory.register` and `GameObjectFactory.remove`
2019-12-18 14:29:25 +00:00
Richard Davey
427d88ed79
Merge pull request #4913 from javigaralva/fix-doc-static-functions
...
Fix doc static functions
2019-12-18 14:28:51 +00:00
Javier García Álvarez
9d418eae73
Fixed jsdoc types to get TS definition intellisense.
2019-12-18 12:25:14 +01:00
Javier García Álvarez
e1d288a834
Add optional params to ParseFromAtlas doc
2019-12-18 12:22:30 +01:00
Javier García Álvarez
dbaf6f1f75
Fixed jsdocs @name to @method
2019-12-18 11:48:30 +01:00
Javier García Álvarez
718db273c2
Added doc for GameObjectFactory.register
and GameObjectFactory.remove
2019-12-18 11:32:29 +01:00
Javier García Álvarez
7576c824af
Fixed semicolon in updateList doc
2019-12-18 10:38:44 +01:00
Richard Davey
5cb7d8484f
Added Game Object level collision events
2019-12-18 02:22:37 +00:00
Richard Davey
a7c644454f
Update PhysicsEditorParser.js
2019-12-17 18:04:10 +00:00
Richard Davey
e6b43a2f48
Improves jsdocs
2019-12-17 18:03:23 +00:00
Richard Davey
efcbd1e4e5
Added helper methods for setting body collision callbacks
2019-12-17 16:42:46 +00:00
Richard Davey
f64d3e59d0
Per-body collision callbacks
2019-12-17 16:42:30 +00:00
Richard Davey
0d62f60f60
Removed un-used properties, functions and docs
2019-12-17 16:42:16 +00:00
Richard Davey
21a6458608
Added new collision pair type defs
2019-12-17 16:41:58 +00:00
Richard Davey
ac124b8e20
Better handling of the runner config
2019-12-17 13:52:57 +00:00
Richard Davey
1412e1f4f9
Added typedef for Matter Runner config
2019-12-17 13:52:46 +00:00
Richard Davey
a158b14228
Matter.World.has
is a new method that will take a Matter Body, or Game Object, and search the world for it. If found, it will return true
.
2019-12-17 13:15:15 +00:00
Richard Davey
67a6fa81f9
Added jsdocs and property
2019-12-17 13:08:32 +00:00
Richard Davey
d260643c61
Stricter checks against body removal and addition
2019-12-17 13:07:16 +00:00
Richard Davey
29525868ff
Added jsdocs
2019-12-17 13:06:11 +00:00
Richard Davey
43b111dc3e
Removed unused code and tidied up the Phaser specific additions
2019-12-17 13:06:01 +00:00
Richard Davey
9c43681b79
Added jsdocs and off handler
2019-12-17 13:05:37 +00:00
Richard Davey
37b2fbd044
Removed calcOffset
2019-12-17 13:05:16 +00:00
Richard Davey
32b46b8e20
TimeStep.smoothStep
is a new boolean property that controls if any delta smoothing takes place during the game step. Delta smoothing has been enabled in Phaser since the first version and helps avoid delta spikes and dips, especially after loss of focus. However, you can now easily toggle if this happens via this property and the corresponding FPSConfig
property.
2019-12-17 13:04:50 +00:00
Richard Davey
1a50665ce1
Function not triggering properly. Adding to Body directly.
2019-12-17 02:14:54 +00:00
Richard Davey
819a6b20ae
Walking through Matter compare merge
2019-12-16 17:12:12 +00:00
Richard Davey
f9e5246af0
Refactored so ops are done when the engine udates, not when the dom updates
2019-12-13 19:41:47 +00:00
Richard Davey
87a8af35c5
Added in Matter Runner
2019-12-13 19:41:27 +00:00
Richard Davey
604531d70a
Disable sync verts for now
2019-12-13 19:41:18 +00:00
Richard Davey
e117a679d2
Still fix sleeping
2019-12-13 01:16:54 +00:00
Richard Davey
63083882d3
MatterGameObject
has a new optional boolean parameter addToWorld
which lets you control if the Body should be added to the world or not. Useful for toggling off should you be merging pre-existing bodies with Game Objects.
2019-12-12 17:15:00 +00:00
samme
fa57f74b8f
Docs for Arcade Physics
2019-12-12 08:14:53 -08:00
Richard Davey
7ba6e9fe6b
Added setCompositeRenderStyle method
2019-12-12 13:31:47 +00:00
Richard Davey
093557a6ea
Removed worldConstraint changes
2019-12-12 13:31:36 +00:00
Richard Davey
03e67e2c50
Added docs and Body level syncVerts property
2019-12-12 12:41:11 +00:00
Richard Davey
01fa4d2c54
Fix handling of centerOfMass
2019-12-11 16:06:15 +00:00
Richard Davey
7a2c434ffc
Remove deprecated code
2019-12-11 16:06:01 +00:00
Richard Davey
4032f87368
Fixed handling deeply nested bodies
2019-12-11 16:05:52 +00:00
Richard Davey
4b14e489af
Added start of fromJSON
2019-12-11 15:01:05 +00:00
Richard Davey
69eec0add9
Fixed overlap method
2019-12-11 15:00:51 +00:00
Richard Davey
c267662259
Update World.js
2019-12-11 15:00:41 +00:00
Richard Davey
30750d1208
Update PhysicsEditorParser.js
2019-12-11 13:07:04 +00:00
Richard Davey
826431c7fa
Tidying up
2019-12-11 13:06:07 +00:00
Richard Davey
19fc914a5b
PhysicsEditorParser.parseVertices
now uses Bodies.flagCoincidentParts
to avoid duplicating code.
2019-12-11 13:05:58 +00:00
Richard Davey
f5908fee8f
Matter.Bodies.flagCoincidentParts
is a new function that will flags all internal edges (coincident parts) on an array of body parts. This was previously part of the fromVertices
function, but has been made external for outside use.
2019-12-11 13:05:49 +00:00
Richard Davey
bf00d63cc6
Body.syncVerts
is a new function that will re-sync the vert positions with the body position. Called if Engine.syncVerts
is set (which is now the default)
2019-12-10 17:53:44 +00:00
Richard Davey
a910a27349
Engine.syncVerts
is a new Engine config property that allows you to run a vert re-sync at the end of the Engine step. This can help massively if you find you've got verts drifting out of alignment with the body position when using pointer contraints, or high velocity environments. Uses the new Engine._bodiesSync
function.
2019-12-10 17:52:37 +00:00
Richard Davey
444bdf116f
Debug tweaks
2019-12-10 17:50:04 +00:00
Richard Davey
c6bfaa8e4a
Vertices.calcOffset
is a new function that calculates the vert body position offset, used for keeping data in sync.
2019-12-10 17:49:41 +00:00
Richard Davey
4f3a524114
Update World.js
2019-12-10 14:02:50 +00:00
Richard Davey
b7343f3424
Bumped Matter Plugin versions to avoid console logs from Common.info and Common.warn.
2019-12-10 14:02:10 +00:00
Richard Davey
56929fb8c6
Removed use of Common.indexOf (no need for it)
2019-12-10 12:07:03 +00:00
Richard Davey
118aa3a941
Format fix
2019-12-10 12:05:12 +00:00
Richard Davey
0e95c1ad19
Merged Body.setCentre
2019-12-10 12:03:27 +00:00
Richard Davey
dc127081eb
Merged new pointAWorld and pointBWorld functions
2019-12-10 12:01:58 +00:00
Richard Davey
257c00228b
Removed un-used _requireGlobal function
2019-12-10 12:01:42 +00:00
Richard Davey
f22c3ad17d
New fromPath reg exp
2019-12-10 12:01:24 +00:00
Richard Davey
5b17e35a87
Format tidy-up
2019-12-10 12:01:14 +00:00
Richard Davey
7bdcb5a892
Temp bounds debug
2019-12-10 02:42:16 +00:00
Richard Davey
b92e8e9a60
Moved position update to earlier (was too soon)
2019-12-09 17:13:10 +00:00
Chris Andrew
15ac5e736a
#4903 Clarified z position documentation by linking to depth GO component.
2019-12-09 16:57:05 +00:00
Richard Davey
eb254f0c5c
If the Matter.Body
config doesn't contain a position
property, it will now default to using Vertices.centre(body.vertices)
as the position. In most cases, this is what you need, so it saves having to pass it in the config object.
2019-12-09 13:22:55 +00:00
Richard Davey
c9adc01111
The Matter.PhysicsEditorParser
has been updated so it no longer needs to set the render offsets, and instead uses the center of mass values.
2019-12-09 12:52:05 +00:00
Richard Davey
8f67dad4a5
Matter.setExistingBody
, which is called interally whenever a Body is set on a Game Object, now uses the new centerOffset
values to ensure that the texture frame is correctly centered based on the center of mass, not the Body bounds, allowing for much more accurate body to texture mapping with complex multi-part compound bodies.
2019-12-09 12:51:26 +00:00
Richard Davey
53314ca435
The Matter.Mass.centerOfMass
component property now returns the pre-calculated Body centerOfMass
property, which is much more accurate than the previous bounds offset value.
2019-12-09 12:49:55 +00:00
Richard Davey
9f012ebf86
Matter.Transform.centerOffsetX
is a new read-only property available on all Matter Game Objects that returns the horizontal offset between the center of the frame and the center of mass. This can be used to allow for accurately mapping texture centers to the body center.
2019-12-09 12:48:51 +00:00
Richard Davey
50b511e872
Matter.Body.centerOfMass
is a new property added to the Matter Body object that retains the center of mass coordinates when the Body is first created.
2019-12-09 12:45:44 +00:00
Richard Davey
7ae124ff6e
Docs fix.
2019-12-09 08:57:24 +00:00
Richard Davey
44ff20d07e
Added deltaXFinal
and deltaYFinal
methods.
2019-12-09 08:55:37 +00:00
samme
77ad6c66fe
Correct type for Phaser.Tilemaps.LayerData#data
...
Fixes #4904 ?
2019-12-08 15:23:15 -08:00
samme
da2a0233a6
Correct docs for Phaser.Math.GetSpeed()
...
Fixes #4895
2019-12-04 12:34:09 -08:00
Richard Davey
a123faafdc
Added new intersects, overlap and collision filter methods.
2019-12-04 03:52:00 +00:00
Richard Davey
e7cac4ebe9
Removed old config values and now handles opacity properly
2019-12-04 03:14:06 +00:00
Richard Davey
aeb3d5af06
Removed old properties and added new ones
2019-12-04 03:13:44 +00:00
Richard Davey
22baba0749
Updated custom render properties
2019-12-04 03:13:02 +00:00
Richard Davey
59749ab519
Skip matching a body against itself
2019-12-04 03:12:46 +00:00
Richard Davey
9b8ce1b8e3
Adjust Resolver properties from matter config
2019-12-03 16:56:29 +00:00
Richard Davey
75e2f76f8f
Update Collision.js
2019-12-03 16:56:16 +00:00
Richard Davey
76c81e19c3
Moved the render style methods to World and use them as part of the event proxy
2019-12-03 14:48:04 +00:00
Richard Davey
7d2f3b33b5
Added setBodyRenderStyle and setConstraintRenderStyle methods.
2019-12-03 14:06:32 +00:00
Richard Davey
c299b02542
Update MatterCollisionEvents.js
2019-12-03 14:06:15 +00:00
Richard Davey
9a0218b3da
Fixed line style and updated parameter names.
2019-12-03 14:06:10 +00:00
Richard Davey
f050b148ec
Rewrote plugin to tidy it up.
2019-12-03 10:43:35 +00:00
Richard Davey
e0ae756f0d
Add the new collision events plugin.
2019-12-02 19:21:04 +00:00
Richard Davey
ca293d710f
Proxy the add and remove events and better handle debug draw injection.
2019-12-02 19:20:54 +00:00
Richard Davey
bdbd74917a
Added missing plugin configs.
2019-12-02 19:20:24 +00:00
Richard Davey
b38668eb5f
Finished all the JSDocs, exposed all Matter modules and added the new point checking methods.
2019-12-02 19:20:13 +00:00
Richard Davey
d75fb5b918
Removed un-used render properties and added new ones
2019-12-02 19:19:42 +00:00
Richard Davey
c32368e03e
Added the new ADD and REMOVE Matter World events
2019-12-02 19:19:21 +00:00
Richard Davey
b71d4059a7
100% JSDoc'd!
2019-12-02 15:07:44 +00:00
Valentin Vetter
f3350ce5a8
TypeScript: improve pick/shuffle types
2019-12-01 22:36:47 +01:00
Richard Davey
4f8dd24df2
Handle legacy configs for now.
2019-11-28 16:19:03 +00:00
Richard Davey
2a4dadf3a7
Update MatterWorldConfig.js
2019-11-28 16:18:53 +00:00
Richard Davey
8a844fc4d3
Create MatterDebugConfig.js
2019-11-28 16:18:49 +00:00
Richard Davey
f126f28121
Split out the debug rendering process into single methods, so they can be called externally if required
2019-11-28 10:43:26 +00:00
Richard Davey
352863d664
Bump to 3.22
2019-11-28 10:43:02 +00:00
Richard Davey
65008266d6
Fixed worldConstraint
2019-11-27 17:49:38 +00:00
Richard Davey
4a1b9691c8
Custom render values set?
2019-11-27 17:49:30 +00:00
Richard Davey
3d46304b6a
Final new debug config added
2019-11-27 17:49:21 +00:00
Hua
3c4cf8834e
Don't add white space at last word of a line
2019-11-27 13:09:07 +08:00
Hua
3010c005dc
Fix bug of game.destroy()
2019-11-27 11:09:12 +08:00
Hua
a2a6124ee5
Mark arguments as optional
2019-11-27 10:05:54 +08:00
Richard Davey
7b280e4fb2
Redoing debug config
2019-11-26 16:39:34 +00:00
Richard Davey
7e4577556c
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-11-26 14:31:37 +00:00
Richard Davey
7650c5535f
BitmapText with a maxWidth
set wouldn't update the text correctly if it was modified post-creation. You can now update the text and/or width independantly and it'll update correctly. Fix #4881
2019-11-26 14:31:27 +00:00
Richard Davey
2386d4d98c
Merge pull request #4882 from fselcukcan/patch-1
...
changed L12 `"pointerup"` to `"pointerout"`
2019-11-26 14:05:09 +00:00
Richard Davey
409a5eb592
3.21.1
2019-11-26 14:04:52 +00:00
F. Selçuk Can
4354255602
changed L12 "pointerup"
to "pointerout"
2019-11-26 13:33:29 +03:00
Hua
155995ce45
Remove il variable
2019-11-26 10:15:23 +08:00
Hua
73c919995a
Override default Curve.getUtoTmapping method
...
Since `u` is equal to `t` in LineCurve, `Line.getUtoTmapping` could return `u` directly.
2019-11-26 10:08:25 +08:00
Hua
2ec969e718
Add arguments step and out
...
Take an optional array as the 3rd parameter in which to store the points results
2019-11-25 11:51:21 +08:00
Richard Davey
467aac2308
JSDoc fix
2019-11-22 17:46:26 +00:00
Richard Davey
4a33c7b5c8
Don't reset text
2019-11-22 16:43:13 +00:00
Richard Davey
a7b3cd585d
Tidying up
2019-11-22 16:42:53 +00:00
Richard Davey
0d46c7107a
Fixed issue with carriage-returns not reflowing text
2019-11-22 16:42:43 +00:00
Richard Davey
4435791cc1
Updated to use current null approach
2019-11-22 13:54:07 +00:00
Richard Davey
28982fb7fc
Fixed word wrapping
2019-11-22 13:48:10 +00:00
Richard Davey
b297950875
Added wordWrapCharCode
2019-11-22 13:48:01 +00:00
Richard Davey
5b1401153c
Working through BitmapText wrapping
2019-11-21 17:11:43 +00:00
Richard Davey
dc6b080091
Merge pull request #4874 from samme/feature/overlapCirc
...
Add ArcadePhysics#overlapCirc()
2019-11-20 22:02:15 +00:00
Richard Davey
e5421c4ebf
Fixed namespace #4873
2019-11-20 22:00:17 +00:00
Richard Davey
ce2dbb7095
Merge pull request #4873 from samme/feature/group-type
...
Add `type` for Group, Arcade.Group, Arcade.StaticGroup
2019-11-20 21:54:10 +00:00
samme
b0f99db47d
Add ArcadePhysics#overlapCirc()
2019-11-20 12:21:53 -08:00
samme
8585541e15
Add type
for Group, PhysicsGroup, StaticPhysicsGroup
2019-11-20 11:53:38 -08:00
Richard Davey
72cbc89817
Fixes Rollup freaking out over an eval
2019-11-20 17:19:20 +00:00
Richard Davey
0bfebb29ed
The requestAnimationFrame
polyfill no longer expects a Browserify environment and uses window
through-out.
2019-11-20 17:10:11 +00:00
Richard Davey
5e1d86b75b
WebAudioSoundManager.setAudioContext
is a new method that allows you to set the Sound Manager Audio Context to a different context instance. It will also disconnect and re-create the gain nodes on the new context.
2019-11-20 14:50:28 +00:00
Richard Davey
77ca0d0bbd
The WebAudioSoundManager.unlock
method will now listen for keydown
events in order to unlock the Audio Context, as well as touch and pointer events, making it more accessible
2019-11-20 13:50:55 +00:00
Richard Davey
a5d494f9d2
JSDoc fix. Fix #4871
2019-11-20 13:02:56 +00:00
samme
482757c1a8
Fix bad parameter in Timeline callbacks and events
...
Fixes #4810
2019-11-19 15:37:25 -08:00
Richard Davey
3eafac9f4f
lint fixes
2019-11-19 13:02:05 +00:00
Richard Davey
7d53dc3447
Added support for mipmap texture generation and filter levels
2019-11-19 13:00:54 +00:00
Richard Davey
ffabf069e0
Added mipmapFilter to game config
2019-11-19 13:00:37 +00:00
Richard Davey
c37058ef4b
When calling TileSprite.setTexture
or setFrame
, if the new frame size didn't match the old one, the new fill pattern would become distorted and the potWidth
and potHeight
values would be incorrect.
2019-11-19 11:49:54 +00:00
Richard Davey
b95a6a45bd
Fixed some JSDocs resulting from #4850
2019-11-19 11:23:19 +00:00
Richard Davey
4606f0b443
Merge pull request #4850 from rexrainbow/group-improvement
...
Add some action methods
2019-11-19 11:04:17 +00:00
Richard Davey
e09a687955
Correct version number
2019-11-19 11:00:42 +00:00
Richard Davey
171ca39544
Merge pull request #4847 from rexrainbow/Action-of-scrollFactor
...
Add SetScrollFactor into Action and Group's createFromConfig
2019-11-19 10:55:16 +00:00
Richard Davey
e5f93738ca
Merge pull request #4807 from jcyuan/master
...
fix TS issues and fix the condition to check video support.
2019-11-19 10:49:09 +00:00
Richard Davey
1091d09d93
Video.destroy
has been renamed to Video.preDestroy
, so that it now destroys properly like all other Game Objects. Fix #4821
2019-11-18 22:20:08 +00:00
Richard Davey
9ff331e10e
Merge pull request #4829 from jsoref/spelling
...
Spelling
2019-11-18 21:47:26 +00:00
Richard Davey
1e20ad706e
ADD and SUBTRACT added
2019-11-18 17:09:30 +00:00
Richard Davey
50d9931c11
Added cached MIN/MAX SAFE INT for IE support #4833
2019-11-18 17:01:55 +00:00
Richard Davey
922cbaa8ea
3.21 version and audit fix
2019-11-18 16:36:52 +00:00
Richard Davey
4a32318185
eslint fixes
2019-11-18 16:36:52 +00:00
Richard Davey
2a7e7157bd
Merge pull request #4831 from apasov/patch-1
...
Fix: enable loading video file as data URI (fixes #4830 )
2019-11-18 16:26:06 +00:00
Richard Davey
cc6cec5c83
Added in forceSetTimeout fps value ( #4179 )
2019-11-18 16:23:29 +00:00
Richard Davey
7b530ee699
Code format fixes
2019-11-18 16:08:36 +00:00
Richard Davey
0ba697ee4a
JSDoc updates
2019-11-18 16:02:34 +00:00
Richard Davey
9863eafc00
Merge pull request #4820 from Olliebrown/tiled-layer-groups
...
Support for Tiled layer groups
2019-11-18 16:01:04 +00:00
Richard Davey
f36235319f
Merge pull request #4836 from Olliebrown/tilemap_remove_bug
...
Fix for bug related to Issue #4737
2019-11-18 15:58:51 +00:00
Richard Davey
55a4146726
Merge pull request #4826 from Olliebrown/input-drag-thresholds
...
Fixes for malfunctioning Drag Threshold properties (Issue #4667 )
2019-11-18 15:51:26 +00:00
Richard Davey
82e4490a07
Merge pull request #4827 from koljakutschera/master
...
fix light2d using tileset from dynamictilemaplayer (#4167,#4079)
2019-11-18 15:48:34 +00:00
Richard Davey
8528e414f0
Merge pull request #4828 from Olliebrown/input-debugHitbox-fixes
...
Fixes for drawing offset hitboxes in input.enableDebug (fixes #4722 )
2019-11-18 15:44:31 +00:00
Richard Davey
6b1cdc80a3
Merge pull request #4858 from samme/feature/closest-furthest-targets
...
Add `targets` argument to ArcadePhysics#closest() and ArcadePhysics#furthest()
2019-11-18 13:44:23 +00:00
Hua
4c6cac514c
Typo
2019-11-18 11:21:31 +08:00
Hua
a8516d70c9
Typo
2019-11-18 11:17:15 +08:00
Hua
f0d2394c6f
Typo
2019-11-18 11:11:25 +08:00
Hua
c198c4e2b3
Override default Curve.arcLengthDivisions to 1
2019-11-18 11:01:35 +08:00
Hua
5f53466d0e
Add stepRate argument in getPoints method
2019-11-18 11:01:22 +08:00
samme
e572921f38
Add targets
argument to closest(), furthest()
...
And exclude `source` from targets
2019-11-13 09:56:37 -08:00
Hua
a02ce69329
Fix typo
2019-11-06 14:22:56 +08:00
Hua
f0c1d8f846
Add some action methods
2019-11-06 14:22:47 +08:00
Hua
53e9fd1465
Add SetScrollFactor into Action and Group's createFromConfig
2019-11-05 14:39:56 +08:00
samme
c46ab84fd9
Use body center in closest, furthest
2019-11-04 16:11:38 -08:00
Seth Berrier
13b6d6d5ae
Fix for bug related to Issue #4737
...
- When removing a layer from a tilemap, layerIndex can become invalid
- Added loop to fix any existing tilemapLayer.layerIndex vales
2019-10-31 16:03:48 -05:00
Ilya Apasov
abe3247e47
Enable loading video file as data URI ( fixes #4830 )
2019-10-29 19:02:56 +02:00
Josh Soref
f21c3f4e07
spelling: yoyo'ing
2019-10-29 02:43:09 -04:00
Josh Soref
c0d92a56a7
spelling: will
2019-10-29 02:42:27 -04:00
Josh Soref
02a7169129
spelling: vertex
2019-10-29 02:41:21 -04:00
Josh Soref
e57d5fcf2f
spelling: repeated
2019-10-29 02:33:37 -04:00
Josh Soref
94e96b3fd2
spelling: renderered
2019-10-29 02:33:23 -04:00
Josh Soref
315d43f893
spelling: receive
2019-10-29 02:33:06 -04:00
Josh Soref
0be8286887
spelling: intersection
2019-10-29 02:24:28 -04:00
Josh Soref
013ece9373
spelling: indices
2019-10-29 02:22:43 -04:00
Josh Soref
0526276e68
spelling: in case
2019-10-29 02:21:46 -04:00
Josh Soref
3abbb13de5
spelling: formula
2019-10-29 02:19:05 -04:00
Josh Soref
d9acb432c6
spelling: falsey
2019-10-29 02:18:26 -04:00
Josh Soref
d6820e6da8
spelling: envelope
2019-10-29 01:53:22 -04:00
Josh Soref
4a322dc7be
spelling: dynamic
2019-10-29 01:52:45 -04:00
Josh Soref
0b4a951cf5
spelling: discrepancies
2019-10-29 01:52:04 -04:00
Josh Soref
4670619f6c
spelling: dependencies
2019-10-29 01:51:28 -04:00
Josh Soref
22fb1f785f
spelling: delimiter
2019-10-29 01:51:13 -04:00
Josh Soref
9fb412bb07
spelling: coordinates
2019-10-29 01:50:33 -04:00
Josh Soref
1731360a6d
spelling: constituent
2019-10-29 01:50:10 -04:00
Josh Soref
4d1683c9ee
spelling: component
2019-10-29 01:49:23 -04:00
Josh Soref
b394e7d777
spelling: collinear
2019-10-29 01:49:07 -04:00
Josh Soref
b7d0f9e309
spelling: browserify
2019-10-29 01:45:05 -04:00
Seth Berrier
174dcfdada
Fixes for drawing of hitboxes in input.debug
...
- Offset hitboxes now draw properly when debug enabled for all shapes
- Addresses issue #4722
2019-10-28 09:43:25 -05:00
Kolja Kutschera
c893ca6186
fix light2d using tileset from dynamictilemaplayer (#4167,#4079)
2019-10-26 00:56:43 +02:00
Seth Berrier
7b711bd11b
Fixes for malfunctioning Drag Threshold properties
...
- According to issue #4667 drag thresholds have been broken since 3.18
- Changed processDragMove event to check thresholds if set
- Fixed use of '||' when it should be '&&' for skipping threshold checks
- Adding missing 'time' parameter when calling threshold check function
2019-10-25 14:03:43 -05:00
Seth Berrier
61479c5188
Remove debugging output
2019-10-25 11:32:24 -05:00
Seth Berrier
13625a5f8c
Updates for Supporting Group Layers
...
- Updated documentation to mention support for groups and naming layers
- Added more verbose output when an unknown layer name is specified
> Error output now lists the valid layer names
- Added functions to return array of tile, object, or image layer names
2019-10-23 15:56:35 -05:00
Seth Berrier
a9e897370a
Support for Tiled Groups and Infinite Map Fixes
...
- Added support for Tiled group layers (issue #4099 )
- Fixed some layer offset bugs for infinite maps
2019-10-23 12:35:25 -05:00
J.C
67ea9c627e
fix bug: CONST
does not have PORTRAIT
and LANDSCAPE
member, they are in CONST.ORIENTATION object.
2019-10-23 17:48:43 +08:00
J.C
6c880c7976
fix wrong function name of TS def (the correct names are in index.js
)
2019-10-23 17:47:19 +08:00
J.C
8d259cd6c2
add missing parameters for addGLTexture
method for TS def
2019-10-23 17:45:48 +08:00
J.C
d56deef62b
undo brackets removal
2019-10-18 12:03:11 +08:00
Richard Davey
fb05e1de49
Merge pull request #4805 from samme/fix/headless-destroy
...
Fix headless game failing to destroy
2019-10-17 13:27:52 +01:00
Richard Davey
5352390811
3.20.2 version
2019-10-17 13:26:10 +01:00