Commit graph

8910 commits

Author SHA1 Message Date
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
Richard Davey
1df9b9655a Shouldn't remove the blob data, or videos too large for memory cannot replay 2019-10-17 13:25:32 +01:00
J.C
94648e4c0d ts fix for TweenManager 2019-10-16 13:59:15 +08:00
J.C
87b54d2f4f fixed a bug: in case if the environment does not support HTMLVideoElement. 2019-10-16 13:39:52 +08:00
J.C
9507ec7591 fix ts error, and update the output file. 2019-10-16 13:39:06 +08:00
samme
bc55428c49 Check pendingDestroy in headlessStep()
Fixes #4804
2019-10-15 12:00:44 -07:00
Richard Davey
24029b27db 3.20.1 Release 2019-10-15 12:30:09 +01:00
Richard Davey
657200226a SceneManager.run (and consequently ScenePlugin.run) was using an out-dated way of checking if a Scene was paused before trying to resume it, causing a Scene to be started again instead of resumed. It now uses the Systems.isPaused function instead. Fix #3931 2019-10-15 11:53:43 +01:00
Richard Davey
6b973dcf58 DynamicTilemapLayer.setCollision would cause an indexOf error when trying to access the layer data. Fix #4800 2019-10-15 11:34:32 +01:00
Richard Davey
04bfe30255 Container.mask wouldn't render in WebGL due to a change in the way child masks were handled. Container masking now works again as in 3.19. Fix #4803 2019-10-15 11:29:47 +01:00
Richard Davey
c37a3634c0 UpdateList.shutdown wasn't removing the Scene Update event listener, causing actions to be multiplied on Scene restart (such as animation playback). Fix #4799 2019-10-15 11:18:36 +01:00
J.C
96dbb3e11a
check to see if the environmet has video element 2019-10-15 15:24:36 +08:00
Richard Davey
d846cdb462
Merge pull request #4797 from xSke/docs/path-docs
Improve documentation for Phaser.Curves.Path
2019-10-14 16:11:17 +01:00
Richard Davey
34caaca2df 3.20.1 prep 2019-10-14 16:08:52 +01:00
Ske
b74c9ae39f Improve documentation for Phaser.Curves.Path 2019-10-12 13:45:44 +02:00
Richard Davey
28316ec4fe Merged ProcessQueue docs 2019-10-11 18:53:11 +01:00
Richard Davey
c60530eedd Removed commented-out code 2019-10-11 18:35:27 +01:00
Richard Davey
e8ac166ab2 Update UpdateList.js 2019-10-11 18:34:01 +01:00
Richard Davey
91c0b1c8a4 Create VideoFileConfig.js 2019-10-11 18:31:58 +01:00
Richard Davey
312797dc8e JSDoc fixes 2019-10-11 18:29:55 +01:00
Richard Davey
be15a59093 Your guess is as good as mine \o/~? 2019-10-11 18:19:25 +01:00
Richard Davey
9ea3eb1abd Added getValue method back and updated it 2019-10-11 18:15:44 +01:00
Richard Davey
595fd0b286 Removed beta1 2019-10-11 13:53:51 +01:00
Richard Davey
ce6a0c1d76 ScaleManager.startFullscreen now checks to see if the call returns a Promise, rather than checking if the browser supports them, before waiting for promise resolution. This fixes a runtime console warning in Microsoft Edge. Fix #4795 2019-10-11 13:53:21 +01:00
Richard Davey
c1044379f3 TouchManager.disableContextMenu is a new method that will try to disable the context menu on touch devices, if the Game Config disableContextMenu is set. Previously, it only tried to do it for the Mouse Manager, but now does it for touch as well. Fix #4778 2019-10-11 13:42:33 +01:00
Richard Davey
4d4ab051fb
Merge pull request #4785 from Frozzy6/master
Set 'part.angle' in 'Body.update' into matter-js
2019-10-11 13:36:32 +01:00
Richard Davey
39118a2778
Merge pull request #4700 from cristlee/master
add an optional textureData when initialize shader
2019-10-11 13:34:22 +01:00
Richard Davey
65c6cec148
Merge pull request #4781 from rexrainbow/export-modules
Expose BaseCamera module
2019-10-11 13:32:35 +01:00
Richard Davey
ab924492b5 Added optional data object to stop method 2019-10-11 13:31:56 +01:00
Richard Davey
eca54ab2a3 Updated docs 2019-10-11 13:31:44 +01:00
Richard Davey
2ac193b32b
Merge pull request #4783 from Olliebrown/scene-stop-data-pass
Feature/Fix for issue #4510
2019-10-11 13:26:19 +01:00
Richard Davey
585a8a93ee
Merge pull request #4787 from firefalcom/fix/normalMapRotation
Fix incorrect lighting when batching several sprites
2019-10-11 13:21:39 +01:00
Richard Davey
efb7fd307c
Merge pull request #4789 from arnekeller/patch-1
Updated scaleManager.js Docs
2019-10-11 13:20:24 +01:00
Richard Davey
9656c9858c Emit event after playback 2019-10-11 13:19:55 +01:00
Richard Davey
29f5acab15 Added all of the Video Events and completed the jsdocs 2019-10-11 12:26:24 +01:00
Richard Davey
0958df8592 Finished method jsdocs 2019-10-10 23:51:03 +01:00
Richard Davey
620ce8556f Update GLOBAL_MUTE_EVENT.js 2019-10-10 23:50:55 +01:00
Richard Davey
9b8bc99538 Lots of jsdocs added 2019-10-10 17:42:57 +01:00
Richard Davey
e3b4ec1b6f Don't access currentTime if no video loaded 2019-10-10 14:26:19 +01:00
Richard Davey
29b9801c5d Load as blob works and finished documentation. 2019-10-10 14:26:03 +01:00
Richard Davey
dcdc219442 Added flipY support into saveTexture for use in shaders 2019-10-10 12:27:14 +01:00
Richard Davey
61f5fadddf Split up canvas and video texture creation and updating. 2019-10-10 12:26:39 +01:00
Richard Davey
9659ec2f47 Added flipY property and setFlipY method. 2019-10-10 12:26:25 +01:00
Richard Davey
2fb190f023 changeSource works and loadURL works too 2019-10-09 17:42:51 +01:00
Richard Davey
bd7592a408 No URL in constructor 2019-10-09 17:42:37 +01:00
Richard Davey
bede5d29f0 Video source change now working 2019-10-09 15:31:37 +01:00
Richard Davey
e69c46d30e Added snapshot methods. 2019-10-09 10:50:01 +01:00
Richard Davey
69346bb1d3 TextureManager.get can now accept either a string-based key, or a Texture instance, as its parameter. 2019-10-09 10:49:47 +01:00
Richard Davey
ed69ef6626 The GameObject.setTexture method can now accept either a string, in which case it looks for the texture in the Texture Manager, or a Texture instance, in which case that instance is set as the Game Object's texture. 2019-10-09 10:49:37 +01:00
Richard Davey
06047b6d68 Only autoplay if muted, plus some debugging handlers 2019-10-09 10:17:29 +01:00
Richard Davey
226a0f87ea Video seeking only updates texture when the seek is complete and added marker support 2019-10-09 10:17:15 +01:00
Richard Davey
35dfd2fb30 Fixed noAudio 2019-10-09 00:40:09 +01:00
Richard Davey
5b98d5737e Non-Promise support + seeking texture update 2019-10-08 17:44:01 +01:00
Richard Davey
5b34726e64 Refactored how pause / resume / play works and texture updating, much cleaner and more resilient 2019-10-08 17:15:26 +01:00
Richard Davey
7fb8718c80 Added new noAudio parameter, because it's a load setting, not an instance one 2019-10-08 17:15:06 +01:00
Richard Davey
5ac4afb1f8 Getting autoplay working 2019-10-07 17:08:45 +01:00
Arne Keller
c77bc8d66c
Updated scaleManager.js Docs
Use SCALE_MODE `NONE` instead of `NO_SCALE` in the docs
2019-10-07 12:23:24 +02:00
Gauthier Billot
7ffeb4785e Added currentNormalMapRotation and updated setNormalMapRotation 2019-10-06 20:31:29 +02:00
Anatoly Rybalchenko
03810ecccf Set 'part.angle' in 'Body.update' into matter-js 2019-10-05 02:02:30 +03:00
Richard Davey
07a2a81263 grab and saveToTexture methods now work 2019-10-04 13:40:42 +01:00
Richard Davey
633af46f71 Removed snapshot and handled locked and unlocked playback 2019-10-04 13:14:32 +01:00
Richard Davey
59cdc1fef0 Update WebAudioSoundManager.js 2019-10-04 13:14:11 +01:00
Richard Davey
3d31e27926 Don't render if there's no texture 2019-10-04 13:14:06 +01:00
Richard Davey
e8e95d6a6c Updated docs 2019-10-04 11:13:11 +01:00
Richard Davey
5de4641e49 Added jsdocs 2019-10-04 11:13:05 +01:00
Richard Davey
6b67862cb7 Finally resolved webgl texture issues when loaded too early 2019-10-04 00:58:43 +01:00
Seth Berrier
6735c8e0a6 Feature/Fix for issue #4510
- Passes through data parameter to Stop()
2019-10-03 12:08:43 -05:00
Richard Davey
800381b7fc Better handling of texture creation 2019-10-03 17:51:11 +01:00
Richard Davey
7ef1b06d4c Supports blob and url loading 2019-10-03 17:50:54 +01:00
Richard Davey
9989f271d4 Pass in the key and url 2019-10-03 17:50:42 +01:00
Richard Davey
c860d1b46c Expose the VideoFile file type 2019-10-03 17:50:30 +01:00
Richard Davey
94e2ac4f79 Passes off creation to new videoToTexture method 2019-10-03 17:50:18 +01:00
Richard Davey
49012d6237 Added createTexture2D.forceSize parameter, videoToTexture method and strengthened empty texture creation 2019-10-03 17:49:58 +01:00
Richard Davey
3dd82c4e02 Working through the Video loader 2019-10-03 14:14:07 +01:00
Richard Davey
edf6375cea Device.Video property name changes to normalize with Audio 2019-10-03 14:13:56 +01:00
Richard Davey
3c7b05a52a Add Video cache 2019-10-03 14:13:32 +01:00
Richard Davey
237d13ec27 Create VideoFile.js 2019-10-03 02:29:24 +01:00
Richard Davey
9429f66adb Added first pass at Video Game Object 2019-10-03 02:29:05 +01:00
Richard Davey
de1034091e TextureSource.isVideo is a new boolean property that is set when the Texture Source is backed by an HTML Video Element. 2019-10-03 02:28:47 +01:00
Hua
9377f8c8a0 Expose BaseCamera module 2019-10-03 09:26:14 +08:00
Richard Davey
619cd7a9d6 Docs update 2019-10-02 17:32:06 +01:00
Richard Davey
a3469ad37e The Tween.getValue method has been removed. It was a legacy function from Phaser 2 and always only returned the first TweenData from the data array, ignoring any subsequent properties or targets, making it redundant. Fix #4717 2019-10-02 17:25:00 +01:00
Richard Davey
3b05f3bcf7 Removed BasePlugin properties #4488 2019-10-02 16:32:04 +01:00
Richard Davey
9e3efb4ff8
Merge pull request #4488 from samme/misc/plugins
Remove BasePlugin#boot; and plugins docs updates
2019-10-02 16:25:34 +01:00
Richard Davey
3a8a1f7b05 Added the new customBoundsRectangle config properties 2019-10-02 16:03:52 +01:00
Richard Davey
f0ed52c033 Tidy-up the customBoundsRectangle changes 2019-10-02 16:03:36 +01:00
Richard Davey
4f4b69123e
Merge branch 'master' into arcade_body_custom_bounds 2019-10-02 15:41:49 +01:00
Richard Davey
3a3ce8b914
Merge branch 'master' into tile-collision-update 2019-10-02 15:15:18 +01:00
Richard Davey
4e8ab3dcae MouseManager.target can now be defined as either a string or by passing an HTMLElement directly. Fix #4353 2019-10-02 13:39:42 +01:00
Richard Davey
7063085120 Updated jsdocs. Fix #4200 2019-10-02 13:21:51 +01:00
Richard Davey
89c30fe42f BaseSoundManager.forEachActiveSound will now only invoke the callback if the sound actually exists and isn't pending removal. Fix #3383 2019-10-02 12:50:10 +01:00
Richard Davey
3ab903b3c5 UpdateList now extends ProcessQueue and uses all of its methods instead. 2019-10-02 12:13:43 +01:00
Richard Davey
7212945bea ProcessQueue now extends Event Emitter. Also added removeAll method and length getter. 2019-10-02 12:13:07 +01:00
Richard Davey
f3cc1f82fe Added new ProcessQueue events 2019-10-02 12:12:37 +01:00
Richard Davey
ea75c5ca9a Updated quad alpha checks 2019-10-02 10:11:07 +01:00
Richard Davey
a7a15bcb4d
Merge pull request #4715 from MrcSnm/master
Container now can apply alpha quads
2019-10-02 09:55:59 +01:00
Marcelo Silva Nascimento Mancini
b7166bba3b
ESLint correction 2019-10-01 16:11:29 -03:00
Richard Davey
be02c80be9 Origin and canvas renderer work again now. Fix #4108 2019-10-01 17:43:47 +01:00
Richard Davey
5dbfbae5f9 Updated jsdoc types. Fix #4308 2019-10-01 17:04:06 +01:00
Richard Davey
1a42c54398 Set image smoothing based on renderer or scale mode. 2019-10-01 16:10:50 +01:00
Richard Davey
d405bab92c Set image smoothing based on renderer or scale mode. 2019-10-01 16:10:46 +01:00
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