Richard Davey
0aaa67957a
Tilemap Canvas Render functions now respect game pixel art settings
2019-10-01 16:10:29 +01:00
Richard Davey
b3ea5bddd2
SetTransform
will now set the imageSmoothingEnabled context value based on the renderer and texture source scale mode.
2019-10-01 16:10:05 +01:00
Richard Davey
8d5c097720
Removed un-used import
2019-10-01 16:05:18 +01:00
FengLi
217d1daa2f
add an optional textureData when initialize shader
2019-10-01 22:52:35 +08:00
Richard Davey
b1b95c066b
The BuildGameObject
function will no longer set scaleMode
because it's not a valid Game Object property.
2019-10-01 14:54:52 +01:00
Richard Davey
1cc5b1a66e
CanvasRenderer.antialias
is a new property, populated by the game config property of the same name (or via the pixelArt
property) that will tell the canvas renderer what to set image interpolation to during rendering of Sprites.
2019-10-01 14:54:40 +01:00
Richard Davey
38fb420cc4
CanvasInterpolation
has updated the order of the CSS properties so that crisp-edges
comes after the browser prefix versions.
2019-10-01 14:43:26 +01:00
Richard Davey
342ad984ac
TextureSource.setFilter
will now set the scaleMode
to the given filter.
2019-10-01 14:42:30 +01:00
Richard Davey
55c73d399b
GameObject.ToJSON
will no longer output the scaleMode
in the json because it's not a valid Game Object property.
2019-10-01 14:41:58 +01:00
Richard Davey
ea7691518b
Use public property for blend mode check #4771
2019-10-01 14:08:13 +01:00
Richard Davey
a0292b5685
TextureSource.isGLTexture
now checks if the browser supports WebGLTexture
before checking to see if source is an instance of one. This should fix issues with Phaser in HEADLESS mode running under node / jsdom, or where WebGLTexture isn't present. Fix #4711
2019-10-01 13:46:37 +01:00
Richard Davey
5b6d9895be
TileSprites will now throw a console warning if you try to use a RenderTexture or GLTexture as their frame source. Fix #4719
2019-10-01 13:37:37 +01:00
Richard Davey
2c5b552bd5
Formatting tweak
2019-10-01 13:29:05 +01:00
Richard Davey
b78dbd81ac
Moved author block and fixed Body reset issue
2019-10-01 13:28:59 +01:00
Richard Davey
f16a16ba7d
Merge pull request #4729 from Gamefroot/arcade-physics-fps-fixes
...
Arcade physics fps fixes
2019-10-01 13:17:41 +01:00
Hua
8a9e74ffe9
Add tint feature of bob
2019-10-01 10:17:14 +08:00
Richard Davey
487ec88529
RenderTexture.fill
wasn't setting the camera up before drawing the fill rect, causing it to appear in the wrong place and the wrong size. Fix #4390
2019-09-30 15:08:53 +01:00
Richard Davey
9616e8187a
MultiAtlasFiles
would incorrectly add the atlas JSON into the JSON cache, causing you to not be able to destroy and reload the texture using the same atlas key as before. Fix #4720
2019-09-30 14:24:16 +01:00
Richard Davey
2f976acb13
If more than one MultiAtlasFile
used the same internal file name for its images, subsequent multi-atlases would fail to load. Fix #4330
2019-09-30 14:11:29 +01:00
Richard Davey
2829d27e8a
Fixed return type. Fix #4772
2019-09-30 13:32:14 +01:00
Richard Davey
973bf76b14
MultiAtlasFiles
that loaded their own external images would obtain incorrect path and URL values if the path had been changed by another file in the queue. They now retain the loader state and apply it to all child files during load.
2019-09-27 16:11:30 +01:00
Richard Davey
999967c772
MultiFile
has three new internal properties: baseURL
, path
and prefix
which allow them to retain the state of the loader at the time of creation, to be passed on to all child-files. Fix #4679 .
2019-09-27 16:06:51 +01:00
Richard Davey
cde1210523
The Container WebGLRenderer will now handle child new type switching, allowing you to carry on with a batch of same-type Game Objects even if they're nested within Containers. Fix #4710
2019-09-27 15:41:51 +01:00
Richard Davey
107bccf105
Tween.updateTo
would break out of the TweenData iteration as soon as it adjusted the first matching key, causing tweens acting on multiple targets to only update the first target. It now updates them all. Fix #4763
2019-09-26 12:46:55 +01:00
Richard Davey
1d30497a8f
Merge pull request #4745 from yhwh/enhancement/WebGLPipeline
...
update vertexComponentCount in WebGLPipeline addAttribute
2019-09-26 12:41:35 +01:00
Richard Davey
f3e18000f2
Merge pull request #4760 from rexrainbow/blitter-enhancement
...
Set dirty flag only when render state of bob is changed
2019-09-26 12:32:34 +01:00
Richard Davey
7584b9b17f
Merge pull request #4752 from funnisimo/separateCircle
...
FIX #4751 - Physics.Arcade.World.separateCircle - weird effects when …
2019-09-26 12:30:18 +01:00
Richard Davey
800aac5820
Merge pull request #4749 from funnisimo/hitTest
...
Fix for Issue #4748 - Physics.Arcade.Body.hitTest - bug with circles
2019-09-26 12:27:14 +01:00
Richard Davey
8c18699e74
A hasOwnProperty
check has been applied to the SceneManager.createSceneFromObject
method when parsing additional properties in the extend
object
2019-09-26 12:24:59 +01:00
Richard Davey
ddc1a136ce
MatterPhysics.shutdown
could try to access properties that may have been previously removed during the Game.destroy process, causing a console error. It now checks properties before removing events from them
2019-09-26 12:17:16 +01:00
Richard Davey
4be4ba4823
Merge pull request #4707 from MatthewAlner/Bug#4706-ignored-attempt-to-cancel-a-touchstart
...
Bug#4706 add `event.cancelable` check
2019-09-26 12:09:06 +01:00
Richard Davey
1e8fcc0ee1
Merge pull request #4761 from rexrainbow/rendertexture-enhancement
...
Update display-origin when resizing
2019-09-26 12:05:24 +01:00
Richard Davey
b704fdd680
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-09-24 12:36:32 +01:00
Richard Davey
d875a59958
InteractiveObject.alwaysEnabled
is a new boolean that allows an interactive Game Object to always receive input events, even if it's invisible or won't render.
2019-09-24 12:36:28 +01:00
Rex
6deec2c44b
Also resize hit-area when resizing
2019-09-21 20:24:26 +08:00
Rex
08a2082d46
Update display-origin when resizing
2019-09-21 20:21:09 +08:00
Rex
7795713ab5
Set dirty flag only when render state of bob is changed
2019-09-21 20:15:56 +08:00
Richard Davey
5c04e20b20
The private Shader._savedKey
property has been removed as it wasn't used anywhere internally.
2019-09-20 14:48:41 +01:00
Richard Davey
bc5c7cf7ab
When calling Shader.setRenderToTexture()
it will now draw the shader just once, immediately to the texture, to avoid the texture being blank for a single frame (thanks Kyle)
2019-09-19 23:32:40 +01:00
Funnisimo
4455237967
need to do velocity based separation too
2019-09-19 14:13:07 -05:00
Richard Davey
9f8e9d2afc
InputPlugin.processDragMove
has been updated so that the resulting dragX
and dragY
values, sent to the event handler, now compensate for the scale of the Game Objects parent container, if inside of one. This means dragging a child of a scale Container will now still drag at 'full' speed.
2019-09-16 15:47:18 +01:00
Funnisimo
b7ff2c02ae
FIX #4751 - Physics.Arcade.World.separateCircle - weird effects when bounce=0
2019-09-13 11:34:11 -05:00
Funnisimo
4bffc5a341
updated for lint
2019-09-12 10:09:47 -05:00
Funnisimo
bfcfde52f9
FIX : #4748 Physics.Arcade.Body.hitTest - bug with circles
2019-09-12 10:02:01 -05:00
Nicolas Ferrero
a76e3c7cb6
update vertexComponentCount in WebGLPipeline
2019-09-10 18:55:30 +03:00
Nicolas Ferrero
18060a841e
RenderTexture would not update texture size on resize
2019-09-10 17:03:52 +03:00
Richard Davey
5b10c07d2e
ArcadePhysics.Body.checkWorldBounds
would incorrectly report as being on the World bounds if the blocked.none
flag had been toggled elsewhere in the Body. It now only sets if it toggles a new internal flag
2019-09-05 16:06:08 +01:00
Richard Davey
fc5630cb72
The displayWidth
and height should never be negative.
2019-08-30 19:35:52 +01:00
Richard Davey
67e28efd2e
Removed dead code
2019-08-30 03:47:58 +01:00
Richard Davey
e3039ffb64
Added antialiasGL
option
2019-08-29 11:46:58 +01:00
Ben Richards
95d413dc3f
Fix friction issues at low frame rates or repeated physics steps.
...
- Add `prevFrame` to hold previous frame positions (`prev` now holds
previous step positions explicitly).
- Reset `prev` per step, fixing physics that relies on it.
- Remove `_reset` in favour of `moves`, which was all it ever checked.
Ironically, `_reset` never reset itself.
- Remove some `postUpdate` property setting which is now unnecessary.
The `prev` values now update just before they're used, so if you check
them outside the physics step, they reflect the previous step.
- Reset `World#stepsLastFrame` per frame, so it won't get stuck on.
2019-08-29 10:06:10 +12:00
Ben Richards
fd0dd79417
Prevent objects from sinking into tilemaps at low frame rates.
...
Because `blocked` would be set by the first collision,
repeated steps would then skip it, and allow gravity or acceleration
to ignore tiles in that direction for those steps.
2019-08-29 10:06:10 +12:00
Richard Davey
24f0187028
Preparing for 3.20 dev
2019-08-28 12:03:38 +01:00
Richard Davey
6887e7b4f0
JSDoc fix
2019-08-28 12:00:19 +01:00
=
e7cce944dd
Container now can apply alpha quads
2019-08-19 13:26:14 -03:00
Matthew Alner
4b42bc426b
Bug#4706 add event.cancelable
check
2019-08-11 12:46:28 +01:00
Richard Davey
7d2eaae693
The Container renderer functions will now read the childs alpha
property, instead of _alpha
, allowing it to work with more variety of custom children.
2019-08-08 14:03:23 +01:00
Richard Davey
35c2f9c28a
Bumped version
2019-08-08 13:30:36 +01:00
Richard Davey
ca74b85b75
Better Sound Manager type
2019-08-07 18:20:19 +01:00
Richard Davey
5a255eceed
Fixed Tween Event defs. Fix #4666
2019-08-07 13:46:50 +01:00
Richard Davey
d5cd37a9ac
Texture.remove
is a new method that allows you to remove a Frame from a Texture based on its name. Fix #4460
2019-08-07 13:03:00 +01:00
Richard Davey
6c04d99039
Frame.destroy
will now null the Frames reference to its parent texture, glTexture and clear the data and customData objects.
2019-08-07 12:59:23 +01:00
Richard Davey
b5d9ba3891
Added namespace for TS
2019-08-07 12:47:51 +01:00
Richard Davey
bf3a424dfd
It was not possible to set the zoom value of the Scale Manager back to 1 again, having changed it to a different value. Fix #4633
2019-08-07 12:47:40 +01:00
Richard Davey
f872b1ece9
Updated docs
2019-08-07 12:20:17 +01:00
Richard Davey
5dd75b64fc
Pointer.updateWorldPoint
is a new method that takes a Camera and then updates the Pointers worldX
and worldY
values based on the cameras transform
2019-08-07 12:10:50 +01:00
Richard Davey
717258e3f1
Docs update
2019-08-05 14:07:36 +01:00
Richard Davey
9f15b5a96b
Removed scale abs, as deeper effects unknown
2019-08-03 11:08:22 +01:00
Richard Davey
cc85ec1d35
Fixed scaleX and scaleY
2019-08-02 17:28:46 +01:00
Richard Davey
95678284de
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-08-02 01:51:56 +01:00
Richard Davey
c1767e404f
Fixed scaleX and scaleY to handle negative scales and added rotation fix
2019-08-02 01:50:02 +01:00
Richard Davey
f5ead70206
Merge pull request #4685 from jcyuan/patch-1
...
fix `intensity` parameter type for typescript
2019-08-01 22:11:02 +01:00
Richard Davey
87a685dccc
Calling CanvasTexture.update
will now automatically call refresh
if running under WebGL. This happens for both draw
and drawFrame
, meaning you no longer need to remember to call refresh
after drawing to a Canvas Texture in WebGL, keeping it consistent with the Canvas renderer.
2019-08-01 19:27:47 +01:00
Richard Davey
6e2d22e5cb
jsdoc update
2019-08-01 17:44:20 +01:00
J.C
f3ce3c9359
fix intensity
type
2019-08-01 16:19:32 +08:00
J.C
ddae8f97fc
fix intensity
type
2019-08-01 16:15:52 +08:00
Richard Davey
0de2695b07
PhysicsEditorParser
has now been exposed under the Phaser.Physics.Matter
namespace, so you can call methods on it directly.
2019-07-26 18:15:26 +01:00
Richard Davey
718f75b797
TransformMatrix.rotation
now returns the properly normalized rotation value
2019-07-26 14:20:38 +01:00
Richard Davey
14faabcadf
Updated docs
2019-07-26 14:19:44 +01:00
Richard Davey
64b3e834d3
Testing rotation fix
2019-07-25 17:57:20 +01:00
Richard Davey
cf0b872636
CreateDOMContainer
will now use div.style.cssText
to set the inline styles of the container, so it now works on IE11. Fix #4674
2019-07-24 15:16:08 +01:00
Richard Davey
9e9d264973
getPixels defaults to 0x0
2019-07-21 16:18:21 +01:00
Richard Davey
08c09b539d
Added enableDebug
and removeDebug
from the Input Plugin, allowing you to create debug shapes to test where input hit areas are.
2019-07-19 15:16:10 +01:00
Richard Davey
aceecf0b95
InputManager.resetCursor
will now check if the canvas element still exists before resetting the cursor on it. Fix #4662
2019-07-19 14:32:07 +01:00
Richard Davey
3a85d8bdc8
Added the new Geometry type properties
2019-07-18 10:36:11 +01:00
Richard Davey
f4002471d7
Updated context lost / restored handlers
2019-07-17 16:38:00 +01:00
Richard Davey
80c0f59b09
GameObjectCreator.remove
is a new static function that will remove a custom Game Object creator type.
2019-07-17 14:36:10 +01:00
Richard Davey
4887696bfa
GameObjectFactory.remove
is a new static function that will remove a custom Game Object factory type.
2019-07-17 14:36:02 +01:00
Richard Davey
e710bec68b
The WebAudioSoundManager will now remove the document touch handlers even if the Promise fails, preventing it from throwing a rejection handler error.
2019-07-17 14:35:10 +01:00
Richard Davey
75968a1ab0
PluginManager.removeGameObject
is a new method that allows you to de-register custom Game Object types from the global Game Object Factory and/or Creator. Useful for when custom plugins are destroyed and need to clean-up after themselves.
2019-07-17 14:34:00 +01:00
Richard Davey
630382e88d
Added Game Object type look ahead and state for custom batching.
2019-07-16 17:41:08 +01:00
Richard Davey
907d0dd4f2
Render Texture snapshot methods now work across WebGL and Canvas
2019-07-15 17:03:04 +01:00
Richard Davey
2df5335991
Added snapshotCanvas method
2019-07-15 17:02:46 +01:00
Richard Davey
41d007fe67
Origin.updateDisplayOrigin
no longer applies a Math.floor to the display origins, allowing you to have a 0.x origin for a Game Object that only has a width or height of 1. This fixes issues with things like 1x1 rectangles displaying incorrectly during rendering.
2019-07-15 16:30:08 +01:00
Richard Davey
7d2b34f8ed
Warn if invalid texture source
2019-07-15 15:42:25 +01:00
Richard Davey
58865f2c34
The WebGL Lost and Restored Context callbacks were never removed, which could cause them to hold onto stale references. Fix #3610
2019-07-15 15:28:46 +01:00
Richard Davey
53076e09d1
Update ScaleManager.js
2019-07-15 15:28:31 +01:00
Richard Davey
b5662db113
New context lost / restored events
2019-07-15 15:28:23 +01:00
Richard Davey
ea2365a77d
The SmoothedKeyControl
minimum zoom a Camera can go to is now 0.001. Previously it was 0.1. This is to make it match the minimum zoom a Base Camera can go to. Fix #4649
2019-07-15 10:56:32 +01:00
Richard Davey
dfba4ae817
Extract pixel from correct location for a framebuffer
2019-07-14 16:00:35 +01:00
Richard Davey
15d7b9c6ef
Fixed jsdoc typos and added single pixel support
2019-07-14 13:56:44 +01:00
Richard Davey
99483f476c
Added new properties
2019-07-13 15:23:07 +01:00
Richard Davey
4d61aa8556
Added the new methods snapshot, snapshotArea and snapshotPixel
2019-07-13 15:21:13 +01:00
Richard Davey
285babaf8c
Added the new snapshotFramebuffer method
2019-07-13 15:20:57 +01:00
Richard Davey
d4b1a04beb
WebGLSnapshot can now grab from a framebuffer
2019-07-13 15:20:42 +01:00
Richard Davey
a737cf0de5
Corrected manager type.
2019-07-13 10:50:06 +01:00
Richard Davey
d432a64576
CanvasTexture
has been added to the Textures
namespace so it can be created without needing to import it. The correct way to create a CanvasTexture
is via the Texture Manager, but you can now do it directly if required. Fix #4651
2019-07-13 10:49:05 +01:00
Richard Davey
1fd4764e0e
Update Path.js
2019-07-11 15:17:43 +01:00
Richard Davey
c20ff295eb
Updated jsdocs
2019-07-11 15:14:40 +01:00
Hua
7134a1ef7b
Remove event hook of children when destroyChildren is false
2019-07-10 15:59:25 +08:00
Richard Davey
4f87c7d441
Updated docs and frame source checks
2019-07-08 15:24:12 +01:00
Richard Davey
131bf336ee
Update Pointers every frame, if not already updated.
2019-07-08 14:59:19 +01:00
Richard Davey
84522136d0
We can now use the locked
property and don't need to add to the movement values every frame. Fix #4611
2019-07-08 14:59:06 +01:00
Richard Davey
af37728e31
Added onPointerLockChange handler.
2019-07-08 13:29:50 +01:00
Richard Davey
254f3843e5
Added locked
property.
2019-07-08 13:29:39 +01:00
Richard Davey
c7e2fbb31c
Calling input.mouse.requestPointerLock()
will no longer throw an error about being unable to push to the Input Manager events queue. #4611
2019-07-08 13:27:46 +01:00
Richard Davey
f71920646c
Shader.uniforms
now uses Extend instead of Clone to perform a deep object copy, instead of a shallow one, avoiding multiple instances of the same shader sharing uniforms. Fix #4641
2019-07-08 13:03:39 +01:00
Richard Davey
5f13fe8c7c
Updated docs
2019-07-08 13:03:25 +01:00
Richard Davey
e012115df4
DynamicTilemapLayer.destroy
will now no longer run its destroy sequence again if it has already been run once. Fix #4634
2019-07-03 15:53:47 +01:00
Richard Davey
5416deaa54
The UpdateList.remove
method wouldn't flag the Game Object for removal properly if it was active. It now checks that the Game Object is in the current update list and hasn't already been inserted into the 'pending removal' list before flagging it. Fix #4544
2019-07-03 15:47:40 +01:00
Richard Davey
deca3c95a3
Calling Animation.setRepeat()
wouldn't reset the repeatCounter
properly, causing Sprite bound animation instances to fail to change their repeat rate. Fix #4553
2019-07-03 15:33:13 +01:00
Richard Davey
a8a7d45956
Removing a frame from a 2 frame animation would cause an error when a Sprite using that animation next tried to render. Fix #4621
2019-07-03 15:07:53 +01:00
Richard Davey
5106b2c935
Animations with custom pivots, like those created in Texture Packer with the pivot option enabled, would be mis-aligned if flipped. They now render in the correct position, regardless of scale or flip on either axis. Fix #4155
2019-07-03 14:01:48 +01:00
Richard Davey
83e54cfb16
The Animation component will no longer start an animation on a Sprite if the animation doesn't exist. Previously it would throw an error saying "Unable to read the property getFirstTick of null".
2019-07-03 12:02:56 +01:00
Richard Davey
f18665cfa1
The Animation Manager will now emit a console warning if you try and play an animation on a Sprite that doesn't exist.
2019-07-03 12:02:46 +01:00
Richard Davey
47b1d755a7
Fixed a bug in the WebGL and Canvas Renderers where a Sprite with a flipX
or flipY
value set would render the offset frames slightly out of place, causing the animation to appear jittery. Also, the sprite would be out of place by its origin. Fix #4636 #3813
2019-07-03 11:11:25 +01:00
Richard Davey
0d8a9bb7ae
Fixed TextSyle typo. Fix #4630
2019-07-02 12:32:29 +01:00
Richard Davey
5a90e1f4ef
Merge pull request #4600 from ldd/fixDocs
...
Fix some JSDoc descriptions
2019-07-02 12:20:04 +01:00
Richard Davey
81497c5101
Merge pull request #4623 from samme/docs/scene-methods
...
New types for the optional scene methods
2019-07-02 12:19:13 +01:00
Richard Davey
0ddc307bfd
Merge pull request #4627 from samme/fix/createFromObjects
...
Fix unused scene argument in Tilemap#createFromObjects()
2019-07-02 12:18:01 +01:00
Richard Davey
e69a4f64de
Merge pull request #4628 from samme/fix/headless-clearRenderToTexture
...
Fix error destroying a scene in HEADLESS mode
2019-07-02 12:15:54 +01:00
Richard Davey
8288eeb899
Updated docs
2019-07-02 12:13:43 +01:00
Richard Davey
41a6592c1e
Swapped default state flag. Fix #4632
2019-07-02 12:13:34 +01:00
Richard Davey
d404a5d658
Update StaggerConfig.js
2019-07-01 17:10:38 +01:00
Richard Davey
77e830a557
Starting on docs
2019-07-01 14:56:56 +01:00
Richard Davey
52c0c85cb6
Fixed eased range grid stagger
2019-07-01 12:49:02 +01:00
Richard Davey
2b713b0038
Pre-calc the grid values
2019-07-01 12:19:05 +01:00
Richard Davey
95ad802c27
Getting Grid Range working
2019-06-30 16:59:58 +01:00
samme
0530fb2b56
Abort clearRenderToTexture() for missing renderer
2019-06-29 13:39:42 -07:00
samme
268d206e41
Fix scene arg in createFromObjects()
2019-06-29 12:13:15 -07:00
Richard Davey
2f60afe8f7
Finished all non-grid options, including proper ease, range and direction
2019-06-29 11:26:26 +01:00
Richard Davey
e81d21a4f3
Merge pull request #4626 from rexrainbow/master
...
Fix render offset issue
2019-06-28 19:38:01 +01:00
Richard Davey
adaa5893ea
Grid working properly with static value and range
2019-06-28 19:35:54 +01:00
Richard Davey
7222a53a23
Update StaggerBuilder.js
2019-06-28 18:08:32 +01:00
Richard Davey
bf592808f3
Use the TweenData.index property now. Much cleaner.
2019-06-28 18:08:26 +01:00
Richard Davey
58f076a125
TweenData now holds the target index and has a new signature
2019-06-28 18:02:18 +01:00
Richard Davey
496ac0f979
Supports ranged staggers
2019-06-28 17:42:34 +01:00
Richard Davey
5203be3189
More accurate types
2019-06-28 17:42:16 +01:00
Richard Davey
293c28b83c
LoadValue functions now take new arguments and updated types and docs
2019-06-28 17:42:03 +01:00
Richard Davey
4baf88b8d1
Updated comments
2019-06-28 17:20:57 +01:00
Rex
fa6eb360dc
Fix render offset issue
...
- Fix render offset issue
- Fix size issue when setting radius
2019-06-29 00:03:08 +08:00
Richard Davey
79b2048ae0
Fixed addBlendMode type. Fix #4625
2019-06-28 14:53:12 +01:00
Richard Davey
864c484856
'start', 'from' and 'ease' all working
2019-06-28 14:38:48 +01:00
Richard Davey
70368a8808
Removed commented-out code
2019-06-28 12:22:14 +01:00
Richard Davey
bafc771f85
Stagger function change
2019-06-28 12:22:05 +01:00
Richard Davey
594d75c26a
Much more flexible in allowing the ease string input format
2019-06-28 12:21:52 +01:00
Richard Davey
f792f13d7a
Added new quantity property to GroupCreateConfig
2019-06-28 11:14:59 +01:00
Richard Davey
422fbec238
Added this argument
2019-06-27 23:35:58 +01:00
samme
4ae2280dba
New types for the optional scene methods
2019-06-27 12:04:51 -07:00
Richard Davey
2d82eca8c5
Added start of StaggerBuilder
2019-06-27 17:14:39 +01:00
Richard Davey
d0f1e5ca28
Added new typedefs for getActive
2019-06-27 16:28:16 +01:00
Richard Davey
23d1c0e1c7
Now supports from
, to
and start
Tween config objects
2019-06-27 16:16:37 +01:00
Richard Davey
4f344efd22
Refactored the updateTweenData method so force start/end values, support getActive and use more local vars
2019-06-27 16:16:14 +01:00
Richard Davey
ea03f81ec1
Added new optional getActive function
2019-06-27 16:15:26 +01:00
Richard Davey
7b9b264146
Added dispatchTimelineEvent method and improved docs
2019-06-27 13:04:32 +01:00
Richard Davey
f7d2410a76
JSDoc fix
2019-06-27 13:04:14 +01:00
Richard Davey
cf51e1a551
Removed loopCounter value as it was incorrect
2019-06-27 13:04:07 +01:00
Richard Davey
f3200ec3d1
Added isSeeking
flag and consolidated all the event and callback handling into two methods.
2019-06-27 12:41:37 +01:00
Richard Davey
46b56c4d2b
All changes to Tween.state
are now set _before_ any events or callbacks, allowing you to modify the state of the Tween in those handlers
2019-06-27 12:02:45 +01:00
Richard Davey
9582a21d4f
Tween JSDocs complete
2019-06-27 11:50:24 +01:00
Richard Davey
34bf26592e
Fixed missing loop callback
2019-06-27 01:37:36 +01:00
Richard Davey
14a6864f21
If you called Scene.destroy
within a Game Object pointerdown
or pointerup
handler, it would cause the error "Cannot read property 'game' of null" if the event wasn't cancelled in your handler. It now checks if the manager is still there before accessing its property. Fix #4436
2019-06-27 01:13:27 +01:00
Richard Davey
aad9d38e13
You can now specify easeParams
for any custom easing function you wish to use. Fix #3826
2019-06-27 01:06:25 +01:00
Richard Davey
eeb02c69b4
Finished all the new Tween Events
2019-06-27 01:00:37 +01:00
Richard Davey
5e4e6ca49f
Tween.seek
has been rewritten so you can now seek to any point in the Tween, regardless of repeats, loops, delays and hold settings. Fix #4409
2019-06-26 23:17:52 +01:00
Richard Davey
bd99ff36d8
New onActive callback
2019-06-26 17:45:32 +01:00
Richard Davey
c1578012c0
Tween now extends EventEmitter
...
Also added startDelay, hasStarted and new onActive callback. onStart now only fires when the Tween actually starts tweening. Lots of debug stuff left to remove.
2019-06-26 17:45:01 +01:00
Richard Davey
c89fac2288
Adding new Tween events
2019-06-26 17:43:43 +01:00
Richard Davey
d97fb97cf6
Typo
2019-06-26 00:36:47 +01:00
Richard Davey
a79da485c3
Added glTexture property
2019-06-26 00:36:40 +01:00
Richard Davey
fc3c93b578
Added flipY argument
2019-06-26 00:35:42 +01:00
Richard Davey
c0d58ee69e
Better flip handling
2019-06-26 00:35:22 +01:00
Richard Davey
3bf3057da0
WebGLRenderer.setScissor
will default the drawingBufferHeight
if no argument is provided, stopping NaN scissor heights.
2019-06-25 23:03:57 +01:00
Richard Davey
356c57c07b
The Shader will no longer set uniforms if the values are null
, saving on GL ops.
2019-06-25 22:49:30 +01:00
Richard Davey
a61207b890
Math.ToXY
is a new mini function that will take a given index and return a Vector2 containing the x and y coordinates of that index within a grid.
2019-06-25 16:57:05 +01:00
Richard Davey
8ecab7a1a1
JSDocs fix
2019-06-25 16:56:56 +01:00
Richard Davey
280e0e2744
Abort filter checks if renderToTexture
2019-06-25 10:10:00 +01:00
Richard Davey
63ac456c45
Flag swap
2019-06-24 14:42:34 +01:00
Richard Davey
a3763d1468
Added setSampler2DBuffer
method and willRender
override.
2019-06-24 12:31:47 +01:00
Richard Davey
839e298c4e
Pointer.getDuration
would return a negative / static value on desktop, or NaN on mobile, because the base time wasn't being pulled in from the Input Manager properly. Fix #4612
2019-06-24 10:58:44 +01:00
Richard Davey
f323097714
Sprites need to flip the UV if the source is a GLTexture
2019-06-23 22:12:14 +01:00
Richard Davey
33e15dca48
Marked argument as optional. Fix #4607
2019-06-22 11:38:24 +01:00
Richard Davey
7fc6424c37
Merge pull request #4608 from rexrainbow/master
...
Set customHitArea to false if shape is not defined
2019-06-22 11:33:26 +01:00
Richard Davey
a83b59d860
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-06-22 11:20:09 +01:00
Richard Davey
bb29aed88a
Matter.Factory.constraint
wouldn't allow a zero length constraint to be created due to a falsey check of the length argument. You can now set length to be any value, including zero, or leave it undefined to have it automatically calculated
2019-06-22 11:19:56 +01:00
Fabadiculous
255232dd2a
Fix bug where graphics methods were not renamed
2019-06-22 16:55:50 +10:00
Rex
16a038674f
Set customHitArea to false if shape is not defined
...
In setHitArea method, use setHitAreaFromTexture if shape is undefined. Suppose that it is not a case of `customHitArea`
2019-06-22 09:37:49 +08:00
Richard Davey
96f96a7258
Opps! Clear the texture :)
2019-06-21 17:20:15 +01:00
Richard Davey
9d94e35e91
If a GLTexture is given as a sampler2D it will extract the textureData from it correctly
2019-06-21 16:35:31 +01:00
Richard Davey
c33cf85456
Added isGLTexture property
2019-06-21 16:34:47 +01:00
Richard Davey
1e9ef314c9
Added addGLTexture
method to save WebGL Textures directly into the Texture Manager.
2019-06-21 16:10:26 +01:00
Richard Davey
b0b5f202fe
Fixed some jsdocs and added WebGLTexture support
2019-06-21 16:08:47 +01:00
Richard Davey
ba0c380109
Support rendering a shader to a texture instead of the display list
2019-06-21 16:08:29 +01:00
Richard Davey
22b107b903
Added setRenderToTexture
method and supporting properties
2019-06-21 16:08:14 +01:00
Richard Davey
9a6fe49000
Typo
2019-06-21 12:25:08 +01:00
Richard Davey
67b28d6764
The Scale Manager would throw the error 'TypeError: this.removeFullscreenTarget is not a function' when entering full-screen mode. It would still enter fullscreen, but the error would appear in the console. Fix #4605
2019-06-21 10:53:27 +01:00
Richard Davey
d811713905
Moving to 3.19.0 dev
2019-06-20 10:09:09 +01:00
Richard Davey
f999e640e1
3.18.1 release
2019-06-20 09:59:17 +01:00
Richard Davey
6004237d37
Get the correct time value
2019-06-20 09:58:59 +01:00
Richard Davey
8837cb3fd1
JSDocs fix
2019-06-20 09:58:48 +01:00
Richard Davey
db433656c3
Preparing for 3.19 dev
2019-06-19 17:02:27 +01:00
Richard Davey
8fe4b37a94
JSDoc fix
2019-06-19 15:52:08 +01:00
Richard Davey
6c575ca20e
Arcade.Events.WORLD_STEP
is a new event you can listen to. It is emitted by the Arcade Physics World every time the world steps once. It is emitted _after_ the bodies and colliders have been updated. Fix #4289
2019-06-19 15:41:45 +01:00
Richard Davey
ef4b3cfe89
Improved update
handler to cut down on body iteration and stepping without an update due. Fix #4529
2019-06-19 15:32:17 +01:00
Richard Davey
96298cf920
Added new resetFlags
method and willStep
and delta
arguments to preUpdate
.
2019-06-19 15:31:29 +01:00
Richard Davey
ae591c1c34
Timeline.setTimeScale
would only impact the Timeline loop and completion delays, not the actively running Tweens. It now scales the time for all child tweens as well. Fix #4164
2019-06-19 12:34:41 +01:00
Richard Davey
6d173434eb
Looped Tween Timelines would mess-up the tween values on every loop repeat, causing the loop to fail. They now loop correctly due to a fix in the Tween.play method. Fix #4558
2019-06-19 12:23:24 +01:00
Richard Davey
bb27213f12
Improved jsdocs
2019-06-19 11:25:33 +01:00
Richard Davey
8f22f37dca
Tween.restart
wouldn't restart the tween properly. Fix #4594
2019-06-19 11:05:27 +01:00
Richard Davey
1676f22360
Automatically handle the drag values in rotated containers
2019-06-19 10:41:48 +01:00
Richard Davey
4a91b1e560
Added dragStartXGlobal
and dragStartYGlobal
properties
2019-06-19 10:41:26 +01:00
Richard Davey
5fa4264219
Added new Transform.getParentRotation method
2019-06-19 10:40:47 +01:00
Richard Davey
b917a0611f
ESLint fix
2019-06-19 09:46:38 +01:00
Richard Davey
f5cae5a48b
Added in Text justification feature. Fix #4291
2019-06-19 09:46:32 +01:00
Richard Davey
61827f3539
Preparing for 3.18 release
2019-06-19 09:29:02 +01:00
Richard Davey
57fd8c9ce1
Merge pull request #4540 from BdR76/patch-2
...
drawDebug, display checkCollision sides
2019-06-19 09:28:31 +01:00
Richard Davey
2e64f4c5cc
Merge pull request #4588 from rexrainbow/master
...
Update displayOriginX, displayOriginY after size changed
2019-06-19 09:25:38 +01:00
Richard Davey
aa7f4da0d9
Merge pull request #4587 from samme/fix/emitter-op-random
...
Fix EmitterOp config with { random: false }
2019-06-19 09:24:20 +01:00
Richard Davey
932583402c
Merge pull request #4589 from samme/x/arcade-static-body-setSize
...
Change arguments to Arcade.StaticBody#setSize
2019-06-19 09:21:00 +01:00
ldd
4cd8787212
Fix some JSDoc descriptions
2019-06-17 16:03:22 -04:00
samme
9a3340ff7c
Exit if scene was removed during create()
2019-06-14 13:00:13 -07:00
Richard Davey
89fe81a5ab
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-06-12 23:20:25 +01:00
Richard Davey
a786298c66
Updated Line docs. #4590
2019-06-12 23:20:22 +01:00
samme
7bba56be16
Change arguments to StaticBody#setSize
...
`center` replaces `offsetX`, `offsetY`
2019-06-12 10:59:07 -07:00
Richard Davey
ea8bb89554
Exposed all of the Tilemap Parser functions. Fix #4318
2019-06-12 12:35:41 +01:00
Richard Davey
0f592ba91a
Moved the Pick function to the object utils
2019-06-12 12:35:03 +01:00
Richard Davey
9c7b26260e
StaticPhysicsGroup
can now take a classType
property in its Group Config and will use the value of it, rather than override it. If none is provided it'll default to ArcadeSprite
. Fix #4401
2019-06-12 12:06:40 +01:00
Richard Davey
0791ae10d2
Added button property and methods for leftButtonReleased, rightButtonReleased and so on.
2019-06-12 11:19:00 +01:00
Hua
da617f364d
Update displayOriginX, displayOriginY after size changed
2019-06-12 13:54:27 +08:00
samme
df3953e604
Require truthy random
value for randomness
2019-06-11 11:38:29 -07:00
Richard Davey
77859b1cdf
Calling Arcade Physics Body.reset
on a Game Object that doesn't have any bounds, like a Container, would throw an error about being unable to access getTopLeft
. If this is the case, it will now set the position to the given x/y values
2019-06-11 18:20:56 +01:00
Richard Davey
13180b9a9a
If you had a Graphics
object in the display list immediately after an object with a Bitmap Mask it would throw an error Uncaught TypeError: Cannot set property 'TL' of undefined
. Fix #4581
2019-06-11 17:58:57 +01:00
Richard Davey
423a9e5003
Implent Grid canvas rendering! Fix #4585
2019-06-11 16:45:13 +01:00
Richard Davey
eb73b51cd8
Allow for color and alpha overrides
2019-06-11 16:44:55 +01:00
Richard Davey
69877548c9
Merge pull request #4586 from rexrainbow/master
...
Set (width,height) of arc/circle to (diameter,diameter)
2019-06-11 15:58:34 +01:00
Richard Davey
e7a6c9f211
Merge pull request #4582 from Sun0fABeach/patch-1
...
Correct docs of arcade physics body member
2019-06-11 15:57:41 +01:00
Richard Davey
dfdba323fb
New decodeAudio method for decoding base64 audio into webaudio
2019-06-11 14:31:43 +01:00
Richard Davey
a124580930
New Audio Decode type
2019-06-11 14:31:17 +01:00
Richard Davey
f2c2c93499
Added new DECODE and DECODE_ALL events
2019-06-11 14:29:29 +01:00
Richard Davey
b1e3ee4eec
Added base64 to ArrayBuffer and ArrayBuffer to base64
2019-06-11 14:14:31 +01:00
Hua
382afd6945
Set (width,height) of arc/cicle to (diameter,diameter)
...
Set (width,height) of arc/cicle to (diameter,diameter), not (radius,radius).
2019-06-11 12:38:26 +08:00
Markus Appel
5ff9b20668
Correct docs of arcade physics body member
2019-06-09 12:22:15 +02:00
samme
c55ee432ce
Docs for easedValueEmit()
2019-06-07 13:32:12 -07:00
samme
cf627a07e1
Correct emitOnly values for angle, lifespan, x, y
2019-06-07 13:31:01 -07:00
Richard Davey
0dfc9806cc
Fixed lots of jsdos and moved the frame.cutX/Y
addition into each function, allowing the x/y defaults to work again. Fix #4528
2019-06-06 17:45:18 +01:00
Richard Davey
2c8a5d3446
Renamed translate, rotate and scale to make them more explicit
2019-06-06 17:41:42 +01:00
Richard Davey
6b5b751134
Handle sending previous size to event and updating canvas size in setGameSize. Cleaned-up workflow.
2019-06-06 15:58:23 +01:00
Richard Davey
dc2375de70
Camera Manager will now listen for RESIZE event and resize full-sized cameras automatically
2019-06-06 15:57:51 +01:00
Richard Davey
254eef9787
Use the event constant instead of a string
2019-06-06 15:56:45 +01:00
Richard Davey
0a761e104c
Added new arguments to RESIZE event
2019-06-06 15:56:26 +01:00
Richard Davey
89fe081f74
Added new Tiled Object and Object Layer defs. Fix #4364
2019-06-06 11:20:40 +01:00
Richard Davey
3da69ade29
Tilemap.createDynamicLayer
would fail if you called it without setting the x
and y
arguments, even though they were flagged as being optional. Fix #4508
2019-06-06 10:43:46 +01:00
Richard Davey
04ec7b26a1
Tilemap.createBlankDynamicLayer
would fail if you provided a string for the tileset as the base tile width and height were incorrectly read from the tileset argument. Fix #4495
2019-06-06 10:29:28 +01:00
Richard Davey
11d845a77e
Specifically state this is a render flag only #4574
2019-06-06 09:52:19 +01:00
Richard Davey
2cdb672d36
Added new Text Padding typedef
2019-06-05 23:40:27 +01:00
Richard Davey
2446e2f3fc
Setting padding
in a Text style configuration object would cause an error about calling split on undefined. Padding can now be applied both in the config and via setPadding
2019-06-05 23:40:10 +01:00
Richard Davey
458c592596
Changing the radius
of an Arc Game Object wouldn't update the size, causing origin issues. It now updates the size and origin correctly in WebGL. Fix #4542
2019-06-05 23:02:59 +01:00
Richard Davey
515adc737d
Fixed typo
2019-06-05 22:48:22 +01:00
Richard Davey
ab17888c18
Merge pull request #4577 from samme/feature/group-name
...
Add Group#name
2019-06-05 22:45:58 +01:00
Richard Davey
3947fe38cf
Merge pull request #4576 from samme/fix/StaticBody-drawDebug
...
Use defaultStrokeWidth in drawDebug()
2019-06-05 22:43:39 +01:00
Richard Davey
9327351e86
Added deltaX, Y, Z and wheel method.
2019-06-05 15:31:25 +01:00
Richard Davey
98be6adfda
Native support for wheel events
2019-06-05 15:31:13 +01:00
Richard Davey
62cb5c68a8
Added 3 new Wheel input events
2019-06-05 15:30:54 +01:00
Richard Davey
700c9daaa1
New input const (and changed order to be numeric order)
2019-06-05 15:30:42 +01:00
Richard Davey
8968b2179c
Added GameObject.scale transform property for a unified scale setter
2019-06-05 15:30:23 +01:00
Richard Davey
af3efc9e2f
Added more docs to make #4575 clearer
2019-06-05 14:08:01 +01:00
samme
6a2c476557
Use defaultStrokeWidth in drawDebug()
2019-06-04 13:27:02 -07:00
Richard Davey
12bcda98a6
Added support for a desynchronized context and alpha support in 2D
2019-06-04 19:13:49 +01:00
Richard Davey
4ed0f90bf7
Merged touch handler methods into one
2019-06-04 18:54:35 +01:00
Richard Davey
befbc788a3
Added new TouchCancelWindow handler
2019-06-04 18:54:00 +01:00
Richard Davey
15654be545
update motion automatically
2019-06-04 18:53:48 +01:00
Richard Davey
d82b46c4d2
Updates TS Parser to handle Function[]
...
Fix #4522
2019-06-04 18:14:58 +01:00
samme
04384f78a6
Add Group#name
2019-06-04 09:33:08 -07:00
Richard Davey
558f6aea55
JSDoc fixes
2019-06-04 16:01:37 +01:00
Richard Davey
7f2feea4ae
All the touch handlers now store the full TouchEvent, not just the Touch List entry
2019-06-04 15:46:16 +01:00
Richard Davey
bf48c53103
Added new over and out handlers for touch events
2019-06-04 15:43:02 +01:00
Richard Davey
9b93ad9985
Removed changed pointers IIFE and un-needed method methods
2019-06-04 15:40:05 +01:00
samme
d9ecd70f59
Add TimelineBuilderConfig type and callbacks
2019-06-03 12:12:01 -07:00
samme
3ebd1839eb
Docs for Tween
2019-06-03 12:09:04 -07:00
samme
0306aab176
Docs for Timeline
2019-06-03 12:08:45 -07:00
Richard Davey
77626d854d
Merge pull request #4568 from samme/types/tween-configs-2
...
Add types for tween `props` configs
2019-06-02 14:06:58 +01:00
samme
d3407c5e44
Add EmitterOpOnEmitType and EmitterOpOnUpdateType
...
Also some corrections in ParticleEmitterConfig docs
2019-06-01 13:33:06 -07:00
samme
8410f6b131
Add types for tween props
configs
2019-06-01 10:24:15 -07:00
Richard Davey
17ad54b35b
You can pass in a Body for a Matter Game Object to use
2019-06-01 10:53:05 +01:00
Richard Davey
63ead0cbc1
Added Matter.bodies
2019-05-31 19:42:49 +01:00
BdR76
717c89d79b
Changed if-statements to multiple lines
...
Changed the if-statements to multiple lines as per ESLint config
2019-05-31 13:15:23 +02:00
Richard Davey
a67d0ab3c3
Merge pull request #4565 from samme/types/tween-configs-ease
...
Correct types for NumberTweenBuilderConfig.ease and TweenBuilderConfig.ease
2019-05-31 11:46:39 +01:00
samme
8f2e774c4b
Correct ease
type
2019-05-30 16:11:34 -07:00
Richard Davey
278bde236b
lint fix
2019-05-30 23:05:06 +01:00
Richard Davey
ec6bbdeebd
Added typedefs for the Text Game Object. Fix #4551
2019-05-30 23:01:53 +01:00
Richard Davey
a7fbd0bcfe
Merge pull request #4545 from samme/feature/warn-for-missing-plugin-in-boot
...
Warn when plugin entry is missing `plugin` property
2019-05-30 22:29:39 +01:00
Richard Davey
114b7b570d
Merge pull request #4552 from rexrainbow/master
...
Set canvas size equal to text object size
2019-05-30 22:24:51 +01:00
Richard Davey
5b85cd49a7
Merge pull request #4547 from Nallebeorn/master
...
JSDoc: Make createDynamicLayer() position optional
2019-05-30 22:14:25 +01:00
Richard Davey
897de33a64
Merge pull request #4554 from samme/types/group-classType
...
Remove GroupClassTypeConstructor type
2019-05-30 22:05:55 +01:00
Richard Davey
90e04c7e90
Merge pull request #4563 from samme/types/tween-configs
...
Add types for tween configs
2019-05-30 22:00:37 +01:00
samme
7a98fe6d8a
Add tween callbacks
2019-05-29 11:42:19 -07:00
samme
d6b3141b8b
Add the remaining tween config properties
2019-05-29 10:45:55 -07:00
samme
a1e8668aee
Extra properties for tween configs
2019-05-29 10:42:30 -07:00
Richard Davey
df0b474638
Added getTopCenter, getBottomCenter, getLeftCenter and getRightCenter
2019-05-29 16:27:31 +01:00
Richard Davey
09318530a4
Matter.Factory.fromVertices
can now take a vertices path string as its vertexSets
argument, as well as an array of vertices.
2019-05-29 14:50:57 +01:00
samme
777f436aa3
Add NumberTweenBuilderConfig to path configs
2019-05-28 14:11:28 -07:00
samme
7125334677
Duration is optional
2019-05-28 14:08:03 -07:00
Richard Davey
78d15b0b0f
Fixed arguments
2019-05-28 21:41:04 +01:00
Richard Davey
3c52a3b27a
Pass the pointers array in directly, no need to iterate them all every time
2019-05-28 21:31:54 +01:00
samme
5018061751
Add NumberTweenBuilderConfig type
2019-05-28 13:13:39 -07:00
samme
c7af250100
Add TweenBuilderConfig type
2019-05-28 11:44:43 -07:00
Richard Davey
d87cb43a7f
Removed touch limit on over/out
2019-05-28 17:26:31 +01:00
Richard Davey
e12002bf74
Use a switch instead
2019-05-28 17:21:40 +01:00
samme
c3c11652ef
Merge branch 'master' of https://github.com/photonstorm/phaser into types/group-classType
2019-05-28 09:16:27 -07:00
Richard Davey
520e2e621f
Catch poll zero
2019-05-28 17:08:30 +01:00
Richard Davey
95f69bbd9e
Split the drag method up into different parts, removed un-used properties and tided up the loop
2019-05-28 16:58:52 +01:00
Richard Davey
7142319f24
Removed un-used methods and properties
2019-05-28 16:58:31 +01:00
Richard Davey
094541d968
Removed dirty and just
properties as no longer required, also removed reset method
2019-05-28 16:57:08 +01:00
samme
84e476762a
Docs description for GroupCreateConfig
2019-05-27 09:05:16 -07:00
samme
e879ec7703
Correct types for GroupCreateConfig.key, GroupCreateConfig.frame
2019-05-27 09:03:28 -07:00
Rex
9a958631fc
Don't draw text only when width or height is 0
...
It can fix this issue:
Text is empty string '', but have fixedWidth and fixedHeight, with backgroundColor setting.
2019-05-26 20:58:40 +08:00
Richard Davey
961e858cbf
Working through making the Input system DOM responsive and not reliant on the game step
2019-05-24 19:30:13 +01:00
Richard Davey
9a2b8b966d
Use getFrame
2019-05-24 15:28:38 +01:00
Richard Davey
7aa3b3b07b
TimeStep.now
is a new property that holds the exact performance.now
value, as set at the start of the current game step. Also, completed jsdocs.
2019-05-24 15:27:45 +01:00
Richard Davey
b86d737e2e
Game.getTime
would return NaN
because it incorrectly accessed the time value from the TimeStep.
2019-05-24 15:27:33 +01:00
Richard Davey
ec5f3d3a33
The TimeStep.step
method no longer uses the time value passed to the raf callback, as it's not actually the current point in time, but rather the time that the main thread began at. Which doesn't help if we're comparing it to event timestamps.
2019-05-24 14:40:11 +01:00
samme
8e717d5588
Remove GroupClassTypeConstructor type
2019-05-23 15:10:40 -07:00
Richard Davey
7073f39a19
Removed all of the DOM Callbacks, input queue and legacy input handling. Renamed methods from 'queue' to 'on' and tidied up internal content
2019-05-23 17:19:30 +01:00
Richard Davey
1d1c4e6543
Removed all input queue elements
2019-05-23 17:19:03 +01:00
Richard Davey
186887c920
Added lastAction property and self-invoke the reset method
2019-05-23 17:18:49 +01:00
Richard Davey
81c1ced2c1
Event Managers now have clearer handlers that check enabled directly
2019-05-23 17:18:16 +01:00
Richard Davey
22d6ec1e36
Removed inputQueue config option
2019-05-23 17:17:54 +01:00
Richard Davey
ee6506af8c
The TimeStep
will no longer set its frame
property to zero in the resetDelta
method. Instead, this property is incremented every step, no matter what, giving an accurate indication of exactly which frame something happened on internally.
2019-05-23 16:10:22 +01:00
Hua
cc7870906b
Fix coding style
2019-05-23 17:30:04 +08:00
Hua
d1b31649ec
Fix text align to right/center issue
...
Calculate text-width in fixedWidth mode
2019-05-23 17:22:51 +08:00
Hua
97b60efa21
Set canvas size equal to text object size
...
Canvas size might less than text object size, when `fixedWidth` and `fixedHeight` is set.
2019-05-23 16:54:32 +08:00
Benjamin
35776fcd2d
JSDoc: Make createDynamicLayer() position optional
2019-05-22 19:18:54 +02:00
samme
6bda5739bc
Warn when plugin entry is missing plugin
property
...
#4533
2019-05-21 13:29:58 -07:00
Richard Davey
d7af904bfa
Added Matter velocity, angularVelocity and force methods
2019-05-21 14:23:32 +01:00
Richard Davey
478d6989c5
Expose the Matter.Body module
2019-05-20 17:13:05 +01:00
BdR76
f28df06bcf
drawDebug, display checkCollision sides
...
drawDebug, instead of rectangle only draw the sides where checkCollision is true, similar to debugger in layer
2019-05-19 14:49:15 +02:00
jorbascrumps
648c0faed9
Removed arrow function syntax
2019-05-18 19:15:01 -04:00
Richard Davey
9959dce57e
Passing a Frame object to Bob.setFrame
would fail, as it expected a string or integer. It now checks the type of object, and if a Frame it checks to make sure it's a Frame belonging to the parent Blitter's texture, and if so sets it. Fix #4516
2019-05-17 14:00:39 +01:00
Richard Davey
3504819b33
The CameraManager
would incorrectly destroy the default
Camera in its shutdown method, meaning that if you used a fixed mask camera and stopped then resumed a Scene, the masks would stop working. The default camera is now destroyed only in the destroy
method. Fix #4520
2019-05-17 13:54:55 +01:00
Richard Davey
0ac5d7b8d9
There was some test code left in the DOMElementCSSRenderer
file that caused getBoundingClientRect
to be called every render. This has been removed, which increases performance significantly for DOM heavy games.
2019-05-17 13:43:55 +01:00
Richard Davey
e23a86d45a
The default BaseShader
vertex shader has a new uniform uResolution
which is set during the Shader init and load to be the size of the Game Object to which the shader is bound.
2019-05-16 17:44:59 +01:00
Richard Davey
f792fce9cb
The default BaseShader
vertex shader will now set the fragCoord
varying to be the viewport height minus the y inPosition. This will give the correct y axis in the fragment shader, causing 'inverted' shaders to display normally when using the default vertex code.
2019-05-16 17:30:30 +01:00
Richard Davey
4693bfb859
Merge pull request #4524 from rexrainbow/master
...
Use `customHitArea` in condition
2019-05-14 09:45:20 +01:00
Richard Davey
70b500cd28
Merge pull request #4519 from hizzd/master
...
Fixed separateCircle cause the position set NaN.
2019-05-14 09:42:27 +01:00
Richard Davey
9f1946ec45
Tweens created in a paused state couldn't be started by a call to play
. Fix #4525
2019-05-14 09:37:26 +01:00
Hua
fd454a1e9b
Use customHitArea
in condition
...
customHitArea has been added in 3.17.0, used in text game object
2019-05-14 10:12:32 +08:00
hizzd
4aa3d9f81a
Fixed separateCircle cause the position set NaN.
2019-05-11 20:52:57 +08:00
Richard Davey
06d1618e29
Preparing for 3.18 dev
2019-05-10 18:32:03 +01:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
f9315bac3f
Updated Scene config types
2019-05-10 14:39:35 +01:00
Richard Davey
7deaa9e2b2
Merge pull request #4517 from antoine-pous/patch-1
...
JSDoc fix returned object type
2019-05-10 14:19:36 +01:00
Richard Davey
e8f6bae7cb
A Body with damping
and drag
enabled would fail to move if it went from zero velocity to a new velocity inside an update
loop. It will now reset its speed accordingly and retain its new velocity
2019-05-10 12:28:06 +01:00
Richard Davey
78d1b75872
Add the modes back in, as we need them internally
2019-05-10 12:27:59 +01:00
Richard Davey
725e1d7ef7
JSDoc changes to help TypeScript not get its knickers in a twist
2019-05-09 17:13:25 +01:00
Richard Davey
a6341a97a8
Fixed Types references
2019-05-09 15:32:53 +01:00
Richard Davey
2008438919
Added new Matter World config def
2019-05-09 15:31:59 +01:00
Antoine Pous
ce1577bcc3
JSDoc fix returned object type
2019-05-09 15:20:37 +02:00
Richard Davey
0a0330bdfc
Tween Types
2019-05-09 12:40:41 +01:00
Richard Davey
173652ea2b
Time Types
2019-05-09 12:39:52 +01:00
Richard Davey
44faa01578
Tilemap Types
2019-05-09 12:39:19 +01:00
Richard Davey
0d831ccf71
Texture Types
2019-05-09 12:38:45 +01:00
Richard Davey
dc18d06f10
Sound Types
2019-05-09 12:38:12 +01:00
Richard Davey
1dca2c2c8a
Scenes Types
2019-05-09 12:37:37 +01:00
Richard Davey
11d6f2e802
Renderer Types
2019-05-09 12:36:36 +01:00
Richard Davey
15abc3824a
Plugins Types
2019-05-09 12:35:33 +01:00
Richard Davey
6955507ee0
Physics root type
2019-05-09 12:35:01 +01:00
Richard Davey
1531288301
Matter Types
2019-05-09 12:34:27 +01:00
Richard Davey
490dd62f2b
Impact Types
2019-05-09 12:34:05 +01:00
Richard Davey
fbe2470f99
Arcade Physics Types
2019-05-09 12:33:37 +01:00
Richard Davey
e916dbe783
Math Types
2019-05-09 12:32:37 +01:00
Richard Davey
9fe265121a
FileType Defs update
2019-05-09 12:32:00 +01:00
Richard Davey
9a28946069
FileType Types
2019-05-09 12:20:21 +01:00
Richard Davey
ae1b5a664f
Loader Types
2019-05-09 12:04:54 +01:00
Richard Davey
53ac066d25
More Input Types
2019-05-09 12:03:36 +01:00
Richard Davey
290389c4ae
Input Types
2019-05-09 12:02:03 +01:00
Richard Davey
b09ddc9048
GameObject Types
2019-05-09 12:01:00 +01:00
Richard Davey
7ba03dff54
TileSprite Types
2019-05-09 11:59:43 +01:00
Richard Davey
1a3263ad5e
Text Types
2019-05-09 11:59:10 +01:00
Richard Davey
ff723f64b6
Sprite Types
2019-05-09 11:58:41 +01:00
Richard Davey
275a3afe5f
RenderTexture Types
2019-05-09 11:58:09 +01:00
Richard Davey
3ca2b667b3
PathFollower Types
2019-05-09 11:57:27 +01:00
Richard Davey
29aee69aa0
Particles Types
2019-05-09 11:57:00 +01:00
Richard Davey
8e8b182359
Group Types
2019-05-09 11:56:16 +01:00
Richard Davey
32b4e6b04e
Graphics Types
2019-05-09 11:55:40 +01:00
Richard Davey
a51a81791f
Bitmap Text Types
2019-05-09 11:54:43 +01:00
Richard Davey
dc3b3ecb03
Display Types
2019-05-09 11:53:08 +01:00
Richard Davey
e7f091b20d
Curve Types
2019-05-09 11:52:07 +01:00
Richard Davey
622d0dd5c8
Create Types
2019-05-09 11:51:26 +01:00
Richard Davey
a269816129
Core Types
2019-05-09 11:50:26 +01:00
Richard Davey
e556cd9c68
Camera Types
2019-05-09 11:49:44 +01:00
Richard Davey
69f84f3ccf
Animations Types
2019-05-09 11:46:07 +01:00
Richard Davey
d5443ecd61
Added namespace
2019-05-09 11:45:01 +01:00
Richard Davey
2b073cba51
Actions Types
2019-05-09 11:44:01 +01:00
Richard Davey
ba424ac62a
Added root types namespace
2019-05-09 11:41:35 +01:00
Richard Davey
4092056e84
Fixed namespace
2019-05-09 11:05:42 +01:00
Richard Davey
c6dc93dba0
Added missing plugins jsdoc hook
2019-05-08 22:13:04 +01:00
Richard Davey
49a27bdeaf
Merge pull request #4514 from BeLi4L/master
...
TypeScript: Improve `Phaser.Utils.Array.Matrix` types
2019-05-08 21:54:13 +01:00
Richard Davey
ad09a18133
Finished JSDocs
2019-05-08 21:49:36 +01:00
Valentin Vetter
f33a9d730f
TypeScript: Fix matrix
types
2019-05-08 19:17:52 +02:00
Richard Davey
64572c430c
Finished JSDocs for all DOM Element methods and properties
2019-05-08 17:35:35 +01:00
Richard Davey
ff9f7cf574
Always world step once
2019-05-08 15:43:01 +01:00
Richard Davey
04e4e07047
More JSDocs
2019-05-08 15:42:53 +01:00
Richard Davey
860cdbf2bf
Adding DOM Element JSDocs
2019-05-08 15:00:04 +01:00
Richard Davey
faa72add9b
Removed ComputedSize component as we need the values read-only.
...
Fixed renderer for DOM Elements inside of Containers, or outside, or in a scaled canvas.
2019-05-08 00:26:54 +01:00
Richard Davey
cdd9d85b8e
DOM Elements set visible in preUpdate now. Fix #4486
2019-05-07 16:39:46 +01:00
Richard Davey
18a924c39c
Passing an _array_ of configuration objects to physics.add.group
would ignore them and none of the children would be assigned a physics body. Fix #4511
2019-05-07 16:17:28 +01:00
Richard Davey
63ddc0b07d
Merge pull request #4279 from akuskis/Issue_#4256.Circles_collision
...
Fix circles collision #4256
2019-05-04 12:44:29 +01:00
Richard Davey
acc5f92a8a
Merge pull request #4503 from jcyuan/master
...
expose ParseXMLBitmapFont for combined XML font file
2019-05-04 12:23:02 +01:00
Richard Davey
9672602c2f
Merge pull request #4504 from rexrainbow/master
...
Constraints canvas size via object size
2019-05-04 12:21:06 +01:00
Richard Davey
73d50071a8
DOM Element will check if parent can render
2019-05-03 19:01:02 +01:00
Richard Davey
fda7772d3f
Fixed jsdocs to flag arguments as optional. Fix #4506
2019-05-03 18:23:39 +01:00
Richard Davey
935a9814ca
Check SoundManager exists before accessing it. Fix #4428
2019-05-03 17:42:45 +01:00
Richard Davey
dcf2d44f4a
Removed un-used properties
2019-05-03 17:38:37 +01:00
Richard Davey
d75431fc2b
lint fixes
2019-05-03 17:38:27 +01:00
Richard Davey
bf741e962c
Restored Arcade Physics v1 and merged in all the core changes
2019-05-03 17:28:06 +01:00
Richard Davey
40b325accf
A Camera will pause following a Game Object for the duration of the Camera Pan Effect, as the two will clash over the Camera scroll position
2019-05-02 10:51:46 +01:00
Richard Davey
f9482ef580
BaseCache.getKeys
is a new method that will return all keys in use in the current cache, i.e. this.cache.shader.getKeys()
.
2019-05-02 02:27:29 +01:00
Richard Davey
abccac28f8
Can pass in either a BaseShader or a string
2019-05-01 17:04:53 +01:00
Richard Davey
8536049b65
Fixed shaderType reference
2019-05-01 14:12:06 +01:00
Richard Davey
b22f5ce5fd
Improved jsdocs
2019-05-01 12:59:05 +01:00
Richard Davey
8ef5e9789c
Renamed from Shader to BaseShader to avoid confusion with the Shader Game Object
2019-05-01 12:58:52 +01:00
Richard Davey
4edd77275a
Removed funcmap and moved to renderer. Finished method jsdocs.
2019-05-01 12:30:09 +01:00
Richard Davey
3d40a95a00
Added glFuncMap
2019-05-01 12:29:45 +01:00
Richard Davey
4c95d69711
Added new SetValue function for property setting to any depth
2019-05-01 12:28:21 +01:00
Richard Davey
3759714703
Try catch the uniform json parse
2019-05-01 11:12:42 +01:00
Richard Davey
2f48d68735
A shader can now be used as a bitmap mask
2019-05-01 11:12:31 +01:00
Rex
72df134571
Constrains canvas sizer via game object size
2019-05-01 11:48:08 +08:00
Rex
2a51bb8c3b
Remove redundant code
2019-05-01 10:10:05 +08:00
Rex
816eb6d677
Remove redundant code
2019-05-01 10:09:20 +08:00
Rex
b2a32a8e8f
Constraints canvas size if using fixedWidth, fixedHeight style
2019-05-01 10:06:04 +08:00
Richard Davey
08f4a0ccf4
Tidying up
2019-05-01 02:10:38 +01:00
Richard Davey
de7c804c47
Shaders can now easily handle sampler2D uniforms
2019-05-01 00:05:52 +01:00
Richard Davey
34fe7a8c50
Better default checking
2019-05-01 00:05:37 +01:00
Richard Davey
0ebdf7073c
Optional texture key array
2019-05-01 00:05:22 +01:00
Richard Davey
b1de52009d
Now extracts uniforms
2019-05-01 00:05:13 +01:00
Richard Davey
8484f33c18
Handle invalid shader keys gracefully
2019-04-30 19:56:03 +01:00
Richard Davey
272fbfcd7a
Improved jsdocs, finished splitting up render process
2019-04-30 19:43:50 +01:00
Richard Davey
38d8ae7d68
Uniforms properly applied
2019-04-30 19:11:29 +01:00
Richard Davey
e5d944b977
Updating Shader Game Object to use new Shader class
2019-04-30 17:11:55 +01:00
Richard Davey
ab7dbf6c93
New Shader class
2019-04-30 17:11:42 +01:00
Richard Davey
e0a9980fda
Updated docs
2019-04-30 17:11:26 +01:00
Richard Davey
0c84853524
Expanding GLSL File Loader
2019-04-30 17:11:18 +01:00
J.C
b6047df1b5
flag which version has this method
2019-04-30 23:29:28 +08:00
J.C
8c3de0897e
expose ParseXMLBitmapFont for combined XML font file
2019-04-30 19:31:47 +08:00
Richard Davey
3c655bff3e
Improved jsdocs
2019-04-30 11:08:34 +01:00
Richard Davey
14ae8ecf19
Added NOOP
2019-04-29 17:14:05 +01:00
Richard Davey
84e898fd90
Fixed nested bitmap mask issue
2019-04-29 14:45:54 +01:00
Richard Davey
80a0bf3f1a
Re-apply stencil after a bitmap mask
2019-04-29 14:29:13 +01:00
Richard Davey
3efcd1ca49
New cam mask object
2019-04-29 14:28:58 +01:00
Richard Davey
ac1cc1762d
Use new cam mask object
2019-04-29 14:28:45 +01:00
Richard Davey
6f639ddec2
Preparing to store level state
2019-04-29 13:21:23 +01:00
Richard Davey
28b1a170ab
Fixed null mask issue
2019-04-29 13:04:34 +01:00
Richard Davey
902d04d55e
Move to functions so we can call from outside the class
2019-04-26 19:14:06 +01:00
Richard Davey
93dabaa34e
Store and restore previous framebuffer
2019-04-26 19:13:55 +01:00
Richard Davey
e07248a403
Use proper elapsed time for the shader
2019-04-26 19:13:45 +01:00
Richard Davey
70b5b01db2
Restore previous framebuffer
2019-04-26 19:13:32 +01:00
Richard Davey
cf878ca553
Better stencil mask checking
2019-04-26 19:13:24 +01:00
Richard Davey
813429d8dc
Added getDuration and getDurationMS
2019-04-26 19:13:12 +01:00
Richard Davey
95eb4fc03d
Setting pixelPerfect
when input enabling a Container would cause it to crash, because Container's don't have a texture to check. It will now throw a run-time warning and skip the Container for input. You should use a custom input callback instead. Fix #4492
2019-04-26 10:56:06 +01:00
Richard Davey
183ce1b96c
BMP fix
2019-04-26 02:30:24 +01:00
Richard Davey
6e70f0e19c
Shaders now work with camera masks and can have their own geometry masks
2019-04-26 01:53:34 +01:00
Richard Davey
8620e2303d
Added setPointer
2019-04-26 00:56:53 +01:00
Richard Davey
55410038eb
Updated factory
2019-04-25 17:48:06 +01:00
Richard Davey
4d16f21c20
re-init uniforms if setShader
2019-04-25 17:13:31 +01:00
Richard Davey
2c4d0d9fd3
Uniforms are now synced properly and attribute is hard coded
2019-04-25 16:57:12 +01:00
Richard Davey
a26a420f23
Added transformOnly
flag
2019-04-25 15:44:19 +01:00
Richard Davey
d849031195
Y oh Y :)
2019-04-25 15:08:32 +01:00
Richard Davey
a0ef6e9d1b
Added default shader
2019-04-25 15:07:46 +01:00
Richard Davey
27d6bd544f
Drop the modelMatrix, it's not needed for this GO. Also only change vertexView elements that need changing.
2019-04-25 14:21:33 +01:00
Richard Davey
5449f7b51d
Skip blendMode and add setShader method
2019-04-25 14:03:50 +01:00
Richard Davey
9356744399
argument caps
2019-04-25 12:14:04 +01:00
Richard Davey
2ff76eb4b5
Removed un-needed Quad Pipeline and shaders
2019-04-25 12:13:09 +01:00
Richard Davey
f37a61de27
Shader now using viewLoad2D instead and accounting for origin
2019-04-25 12:12:49 +01:00
Richard Davey
ba8d1adbbb
Removing use of Shader pipeline
2019-04-25 11:30:23 +01:00
Richard Davey
e05ff03ed0
Added Systems.renderer reference
2019-04-25 11:30:10 +01:00
Richard Davey
86896bd581
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-04-25 03:16:51 +01:00
Richard Davey
72af4a21d1
Default shader
2019-04-25 03:16:46 +01:00
Richard Davey
9b4309b38c
Added QuadShader Pipeline to the renderer
2019-04-25 03:16:39 +01:00
Richard Davey
2727408e7c
Don't disable the vertex attribute if the location is invalid
2019-04-25 03:16:25 +01:00
Richard Davey
e0c22c5534
Added QuadShader Pipeline
2019-04-25 03:16:03 +01:00
Richard Davey
7d74425491
Added new Shader Game Object
2019-04-25 03:15:51 +01:00
Richard Davey
87c3215216
Merge pull request #4487 from florianvazelle/master
...
Fix issue #4483
2019-04-24 22:03:57 +01:00
Richard Davey
f64d0a935b
Geometry Masks are now batched. Previously, using the same mask on multiple Game Objects would create brand new stencil operations for every single Game Object, causing performance to tank. Now, the mask is only set if it's different from the previously masked object in the display list, allowing you to mask thousands of Game Objects and retain batching through-out.
2019-04-24 16:45:31 +01:00
Richard Davey
1f0a516c77
GeometryMask.setInvertAlpha
is a new method that allows you to set the invertAlpha
property in a chainable call.
2019-04-24 15:00:16 +01:00
Richard Davey
12b6041d20
inverseAlpha support added back in and tidied up renderer
2019-04-24 14:51:39 +01:00
Richard Davey
2bd45865d4
Stack restore working. Time to try invertAlpha.
2019-04-24 14:38:24 +01:00
Richard Davey
ac3fac4ab6
UpdateList.remove
will now move the removed child to the internal _pendingRemoval
array, instead of slicing it directly out of the active list. The pending list is cleared at the start of the next game frame. Fix #4365
2019-04-24 13:58:05 +01:00
Richard Davey
11c1b458fa
Phaser.Physics.Arcade.Events
is now exposed in the namespace, preventing it from erroring if you use them in TypeScript. Fix #4481
2019-04-24 13:44:57 +01:00
Richard Davey
64532d8d7b
InputPlugin.clear
has a new argument skipQueue
which is used to avoid clearing a Game Object twice. This, combined with the fix for 4463 means you will no longer get a Cannot read property 'dragState'
error if you destroy a Game Object enabled for drag where another draggable object exists. Fix #4228
2019-04-24 13:38:40 +01:00
Richard Davey
00dbf8b03e
Destroying a Game object during its pointerup
event handler on a touch device will no longer cause Uncaught TypeError: Cannot read property 'localX' of undefined
. All InputPlugin process handlers now check to see if the Game Object has been destroyed at any stage and abort if it has. Fix #4463
2019-04-24 12:54:56 +01:00
Richard Davey
a47019b415
Keep the property but set to null
by default.
2019-04-24 12:54:48 +01:00
Richard Davey
61921525f1
There is a new webpack config FEATURE_SOUND
which is set to true
by default, but if set to false
it will exclude the Sound Manager and all of its systems into the build files.
2019-04-24 12:23:21 +01:00
Richard Davey
f4a86fd368
The Container.setScrollFactor
method has a new optional argument updateChildren
. If set, it will change the scrollFactor
values of all the Container children as well as the Container. Fix #4466 #4475
2019-04-24 12:09:16 +01:00
Richard Davey
61011d3ae9
Camera.clearRenderToTexture
will check to see if the Scene is available before proceeding, avoiding potential errors when a Camera is destroyed multiple times during a Scene shutdown.
2019-04-24 11:46:31 +01:00
Richard Davey
507bb6a215
Added customHitArea boolean property
2019-04-24 11:21:52 +01:00
Richard Davey
53c14df798
Changing any aspect of a Text object, such as the font size or content, wouldn't update its hitArea
if it had been enabled for input, causing it to carry on using the old hit area size. Now, as long as the Text was created _without_ a custom hitArea, the hitArea size will be changed to match the new texture size on update. If you have provided your own custom hitArea shape, you need to modify it when the Text changes size yourself. Fix #4456
2019-04-24 11:21:36 +01:00
Richard Davey
2ef6ad3e51
Fixed jsdoc
2019-04-24 10:54:02 +01:00
Richard Davey
181be88ba9
Updated to use game clock time values.
2019-04-24 10:48:03 +01:00
Richard Davey
6b5383a007
Key now needs a reference to the plugin that created it. Also added getDuration
method.
2019-04-24 10:47:51 +01:00
Richard Davey
d7917789eb
Added destroy argument to removeKey
and cleared plugin reference.
2019-04-24 10:47:22 +01:00
Richard Davey
fd4f45673b
Pointer.getDuration
would only return zero until the pointer was released, or moved (basically any action that generated a DOM event). It now returns the duration regardless of the DOM events. Fix #4444
2019-04-24 10:08:56 +01:00
Richard Davey
31c0b4f2ff
Update now always runs but only once per frame
2019-04-24 10:04:13 +01:00
Richard Davey
95b18ae6e0
Refined poll rate handling and added pluginUpdate
2019-04-24 10:03:58 +01:00
Richard Davey
43c72e23c6
Fixed issue with input events running twice
2019-04-24 09:34:40 +01:00
Richard Davey
24bc670424
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-04-23 22:48:24 +01:00
Richard Davey
349a5a1028
Added MultiScriptFile file type
2019-04-23 22:48:20 +01:00
florianvazelle
669764a1be
Fix GetLineToCircle
2019-04-23 21:29:10 +02:00
florianvazelle
97b611356b
Fix result when y0 === y1
2019-04-23 21:27:55 +02:00
Richard Davey
f65f643a5f
Added setClassName method.
2019-04-23 11:21:26 +01:00
Richard Davey
e2e5c76b8c
Added new CSS File Loader FileType.
2019-04-23 11:21:13 +01:00
samme
34ec998ea2
Docs for BasePlugin
...
Differentiate the nonshared properties
2019-04-21 11:12:13 -07:00
samme
4355c1a621
Remove BasePlugin#boot
2019-04-21 11:08:40 -07:00
samme
5058b337bd
Docs for scene events
2019-04-21 11:08:03 -07:00
Richard Davey
e82e7c6ba0
Formatting fix
2019-04-18 17:55:49 +01:00
Richard Davey
7b438bfd3b
Copy paste fix
2019-04-18 17:55:42 +01:00
Hua
a05cd9377a
Update rectangle hitarea when updated text
2019-04-18 11:04:27 +08:00
Richard Davey
7c4fd3fadc
Improved jsdocs
2019-04-17 10:52:23 +01:00
Richard Davey
e0255c6f0f
Docs fix
2019-04-16 17:08:19 +01:00
Richard Davey
8c55844f6c
Merge pull request #4469 from samme/docs/scenes
...
Docs for scene config and optional scene methods
2019-04-16 13:24:49 +01:00
Richard Davey
c38ebe15c7
Merge pull request #4472 from TylerMorley/master
...
docs: fix copy-paste error
2019-04-16 13:23:20 +01:00
Richard Davey
44a63e4d1a
Fixed DOM Container centering
2019-04-16 13:10:08 +01:00
Tyler Morley
21994c5c46
docs: fix copy-paste error
2019-04-15 22:21:36 -05:00
Richard Davey
964e5a2da5
Not sure we need the stack at all - commenting out for now
2019-04-15 23:46:50 +01:00
Richard Davey
14d16b3c06
Add temp matrix to Graphics to avoid sharing issue during mask rendering
2019-04-15 23:38:09 +01:00
Richard Davey
78e1ef9df0
Particle Emitters and Containers can now have geometry masked children
2019-04-15 16:46:47 +01:00
Richard Davey
1fc9b15ff1
Fixed Geometry Mask nesting issue.
2019-04-15 16:46:19 +01:00
Richard Davey
974ceb5654
Restore bitmap mask framebuffer
2019-04-12 18:36:47 +01:00
Richard Davey
0bdf1cc083
Allow geometry masks to work within bitmap masks
2019-04-12 18:36:31 +01:00
Richard Davey
f69cec7975
Improving support for child masking
2019-04-12 17:47:28 +01:00
Richard Davey
c26311a9e4
Update GeometryMask.js
2019-04-12 17:47:02 +01:00
Richard Davey
754ae7caa2
Particle Emitters can now be masked
2019-04-12 17:46:52 +01:00
Richard Davey
9dd3e7cd15
Added missing Mask component
2019-04-12 17:46:39 +01:00
Richard Davey
a824f6f1e8
Added a default camera
2019-04-11 17:10:12 +01:00
Richard Davey
186970bd69
Render the Camera masks
2019-04-11 17:10:03 +01:00
Richard Davey
79409f0479
You can now add a geometry or bitmap mask to any Camera
2019-04-11 17:09:53 +01:00
samme
f9797d0ed0
Add Phaser.Scenes.Types.CreateSceneFromObjectConfig
2019-04-10 12:43:44 -07:00
samme
698fc7d522
Docs for Scene methods
...
Added descriptions and arguments.
2019-04-10 12:43:00 -07:00
Richard Davey
c188dfde12
Testing mask component on Camera
2019-04-10 18:10:03 +01:00
Richard Davey
1a9f6130bf
Update DOMElementCSSRenderer.js
2019-04-09 23:43:47 +01:00
Richard Davey
a0c48596b3
Can now create dom elements on creation of the object.
2019-04-09 23:29:32 +01:00
Richard Davey
d823b7b49e
More flexible Factory function including element, style and innerText setters
2019-04-09 23:29:14 +01:00
Richard Davey
1b135b2efb
Tidying up CSS rendering
2019-04-09 23:28:56 +01:00
Richard Davey
950fc79e2e
Took DOM Element out of experimental and hooked to the Scale Manager
2019-04-09 23:28:40 +01:00
Richard Davey
1830480fec
Added Size.setCSS method
2019-04-09 23:28:05 +01:00
samme
c83521ddae
Fix GameConfig link
2019-04-09 13:01:38 -07:00
Richard Davey
6622f4dbce
Merge pull request #4384 from florianvazelle/master
...
Add out argument in intersect functions
2019-04-09 17:51:04 +01:00
florianvazelle
21f4ec44d8
Final Update
2019-04-09 10:52:35 +02:00
Richard Davey
0f7eb028c0
Merge pull request #4400 from SirLink/master
...
Declared dataset as object for internet explorer 10
2019-04-08 16:44:08 +01:00
Richard Davey
2d3c905f53
Calling Tween.play
on a tween that had already finished and was pending removal will stop the tween from getting stuck in an isPlaying
state and will restart the tween again from the beginning. Calling play
on a Tween that is already playing does nothing. Fix #4184
2019-04-08 16:25:31 +01:00
Richard Davey
0012ed3524
Added Tilemap.renderDebugFull method.
2019-04-08 16:05:12 +01:00
Richard Davey
c1400f9514
Fixed lots of Tilemap methods that claimed to return null but didn't
2019-04-08 15:59:48 +01:00
Richard Davey
0514d27efc
Added new argument removeFromTilemap
2019-04-08 15:59:30 +01:00
Richard Davey
d63321eba5
Layers now remove themselves from the Tilemap when destroyed. Fix #4319
2019-04-08 15:45:43 +01:00
Richard Davey
a8027bab7f
Added removeLayer and destroyLayer methods.
2019-04-08 15:45:16 +01:00
Richard Davey
88c8bb1bc2
Update docs to clarify #4403
2019-04-08 14:52:13 +01:00
Richard Davey
0cfbc7917e
The InputPlugin will now dispatch an update event regardless, allowing the Gamepad Plugin to update itself every frame, regardless of DOM events. This allows Gamepads to work correctly again. Fix #4414
2019-04-08 14:39:28 +01:00
Richard Davey
f552dde229
Texture.add
will no longer let you add a frame to a texture with the same name or index as one that already exists in the texture. Doing so will now return null
instead of a Frame object, and the frameTotal
will never be incremented. Fix #4459
2019-04-08 14:22:03 +01:00
Richard Davey
c85defe920
Merge branch 'master' into feature/support-infinite-tiled-maps
2019-04-08 14:00:03 +01:00
Richard Davey
9b29001449
Defaults should be false for closePath
, not true
.
2019-04-08 13:53:08 +01:00
Richard Davey
1995be80a2
GameObjects.Components.PathFollower
is a new component that manages any type of Game Object following a path. The original Path Follower Game Object has been updated to use this new component directly, but it can be applied to any custom Game Object class.
2019-04-08 13:53:08 +01:00
Richard Davey
e9c34c73a8
Merge pull request #3923 from Edwin222/comment
...
Fix a bug that tween delay doesn't applied after one loop of timeline(issue #3841 )
2019-04-08 13:00:10 +01:00
Richard Davey
ded1320e8e
Fixed issue with multiple calls to Tween.restart
2019-04-08 12:58:03 +01:00
Richard Davey
f0acd2dfaf
rgb fix, lint fix and no need for frame argument
2019-04-08 12:49:03 +01:00
Richard Davey
55959500d2
Update RenderTextureConfig.js
2019-04-08 12:44:37 +01:00
Richard Davey
7c0645c1b9
Merge branch 'master' into master
2019-04-08 12:44:04 +01:00
Richard Davey
19c0b47167
Removed Graphics.lineFxTo and moveFxTo and the associated commands.
2019-04-08 12:32:07 +01:00
Richard Davey
05fb7b28e0
Merge pull request #3979 from pixelpicosean/fix-graphics-fx-drawing
...
Fix graphics moveFxTo and lineFxTo not work
2019-04-08 12:18:09 +01:00
Richard Davey
e53a0a1de2
Merge pull request #4087 from TadejZupancic/patch-1
...
Tween inside Timeline fix
2019-04-08 12:13:27 +01:00
Richard Davey
56babb5841
Merge pull request #4089 from Cirras/texture-add-base-texture-fix
...
Make Texture.add() firstFrame check more explicit (Fix issue #4088 )
2019-04-08 12:03:17 +01:00
Richard Davey
8cb466b4e9
Clarified the important of the __BASE
frame in a Texture #4285
2019-04-08 11:54:47 +01:00
Richard Davey
340df7a748
jsdocs update
2019-04-08 11:45:19 +01:00
Richard Davey
00638ae9ee
Swapped to use GetValue
instead.
2019-04-08 11:45:08 +01:00
Richard Davey
c89f9a9fde
Merge pull request #4195 from kensleebos/master
...
Fix for from/to in PathFollower.js
2019-04-08 11:40:26 +01:00
Richard Davey
cd8fb4217a
Tweens created with a duration of zero will now render for one frame before completing. Fix #4235
2019-04-08 11:18:42 +01:00
Richard Davey
f4a68404fc
lint fix
2019-04-08 11:01:21 +01:00
Richard Davey
ddd1cec3da
Merge pull request #4326 from snowbillr/patch-1
...
2d Camera startFollow should respect useBounds
2019-04-08 10:57:59 +01:00
Richard Davey
09487bbfc6
Added new resetCollisionIDs method re: #4334
2019-04-08 10:34:52 +01:00
Richard Davey
f41cacde25
Merge pull request #4336 from florianvazelle/master
...
Fix getCenter methods returning wrong value for scaled layers
2019-04-08 10:20:32 +01:00
Richard Davey
73dc7899b9
Removed commented logs
2019-04-08 10:19:22 +01:00
Richard Davey
36b40db7f0
Merge pull request #4351 from Cirras/spritesheet-from-atlas-base-texture
...
Add __BASE texture entry in SpriteSheetFromAtlas parser
2019-04-08 10:17:23 +01:00
Richard Davey
e2c68c5d86
Merge pull request #4418 from martinlindhe/ts-styleconfig
...
improve ts type hints for Phaser.Tilemaps.Types.StyleConfig
2019-04-08 09:53:39 +01:00
Richard Davey
7dd411ddc9
Merge pull request #4419 from peterellisjones/master
...
Swap incorrect terms in Tilemap#convertLayerToStatic documentation
2019-04-08 09:52:11 +01:00
Richard Davey
382fed3de7
Added TextureManager.removeKey method and invoke it from Texture.destroy. Fix #4461
2019-04-06 11:35:58 +01:00
Bill Reed
1293e427dd
Use correct values in clamp calls.
2019-04-05 16:50:51 -04:00
Richard Davey
6ba3f49b08
Merge pull request #4442 from LoolzRules/master
...
issue #4411 fix
2019-04-05 18:28:39 +01:00
Richard Davey
2ecaad5f03
Fixes use of static keyword. Fix #4458
2019-04-05 18:04:34 +01:00
Richard Davey
6fc05bf53b
Merge pull request #4404 from samme/feature/isPaused
...
Add isPaused() methods to ScenePlugin, SceneManager
2019-04-05 17:40:37 +01:00
Richard Davey
d13e79a8db
Merge pull request #4427 from rexrainbow/master
...
Fix bug about counting height of text object
2019-04-05 17:25:27 +01:00
Richard Davey
bc10276b9e
Merge pull request #4449 from kyranet/patch-2
...
fix: Inconsistent return in TweenManager#makeActive()
2019-04-05 17:18:23 +01:00
Richard Davey
4abc386a7e
Merge pull request #4448 from kyranet/patch-1
...
fix: Inconsistent return in Tween#pause()
2019-04-05 17:16:45 +01:00