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