Richard Davey
fa2e274f8d
New gamepad target config property
2018-06-06 23:03:27 +01:00
Richard Davey
a2c20a9aa7
lint fixes
2018-06-05 01:08:32 +01:00
Richard Davey
c0ac1259ea
Significant Data Manager overhaul.
...
Adds in values property, removes redundant functions, streamlines the event flow, adds features to the get and set handlers.
2018-06-05 01:01:13 +01:00
Richard Davey
a0e4a07920
In TimeStep.step
the rawDelta
and delta
values are checked to make sure they are non-negative, which can happen in Chrome when the delta is reset and out of sync with the value passed to Request Animation Frame. Fix #3088
2018-06-04 22:29:58 +01:00
Richard Davey
dced3a2090
Updated log.
2018-06-04 22:15:05 +01:00
Richard Davey
8b7256cb86
Pointers now iterate the full camera list, starting at the top. Fix #3631 .
2018-06-04 22:14:58 +01:00
Richard Davey
ccf50ff8dc
Added Camera.visible property and setter.
2018-06-04 22:12:20 +01:00
Richard Davey
bf2af95930
CameraManager.getCameraBelowPointer
has been renamed to getCamerasBelowPointer
and it now returns an array of all the cameras below the given pointer, not just the top-most one. The array is sorted so that the top-most camera is at the start of the array.
2018-06-04 22:10:13 +01:00
Richard Davey
719a2eedca
Interactive Objects inside of Containers would still fire their input events even if the Container (or any ancestor) was set to be invisible. Objects now check their ancestor tree during the input cull and now properly skip input events if not visible. Fix #3620
2018-06-04 21:04:27 +01:00
Richard Davey
a804d7fc75
Formatting fixes.
2018-06-04 17:26:47 +01:00
Richard Davey
8aacb7fe77
Typo
2018-06-04 17:13:38 +01:00
Richard Davey
f411edf987
Added jsdocs.
2018-06-04 17:11:53 +01:00
Richard Davey
6092088afc
Updated change log.
2018-06-04 17:03:38 +01:00
Richard Davey
c847f3459e
addKey and removeKey can take Key objects now. Plus finished the docs.
2018-06-04 17:03:31 +01:00
Richard Davey
699951bc40
Updated change log
2018-06-04 16:49:17 +01:00
Richard Davey
7a01354a8a
Added to the docs
2018-06-04 16:49:11 +01:00
Richard Davey
97fa3ab2c0
KeyboardManager.addKeys can now take either an object or key codes, or a comma-separated string, as its input.
2018-06-04 16:49:03 +01:00
Richard Davey
9eec66654f
Keyboard Manager updates
...
* KeyboardManager.handler has been removed as it's no longer used internally.
* The KeyboardManager.captures property has been removed as it can be more effectively handled by polling the `keys` object instead.
* The Keyboard Manager will no longer process key down or up events if its `enabled` property is set to false.
* The Keyboard Manager will now call `event.preventDefault` on the native DOM event as long as the Key exists in the keys array and has its `preventDefault` property set to `true` (which is the default). This means you can now control specifically which key prevents default on the browser, where-as before every key added did so.
2018-06-04 15:57:52 +01:00
Richard Davey
f280fb118b
Typo fix
2018-06-04 15:57:41 +01:00
Richard Davey
ecfbea8bd4
Updated change log.
2018-06-04 15:19:32 +01:00
Richard Davey
6906e6bd15
Hundreds more jsdocs completed.
2018-06-04 15:19:25 +01:00
Richard Davey
61c5f76d63
Added transformPointer method which Pointer now uses.
2018-06-04 15:19:11 +01:00
Richard Davey
130ab75c74
Updated change log
2018-06-04 13:24:55 +01:00
Richard Davey
3b30fcff89
Added jsdocs
2018-06-04 13:24:47 +01:00
Richard Davey
7c0c3cd5a8
Updated hitTest call and added jsdocs
2018-06-04 13:23:51 +01:00
Richard Davey
4115b10c80
Added jsdocs
2018-06-04 13:23:34 +01:00
Richard Davey
285b811625
Pointer has two new properties worldX
and worldY
which contain the position of the Pointer, translated into the coordinate space of the most recent Camera it interacted with.
2018-06-04 13:23:27 +01:00
Richard Davey
15af7c6d0c
Added jsdocs
2018-06-04 01:38:45 +01:00
Richard Davey
996ba89e4b
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-03 21:17:45 +01:00
Richard Davey
e7fec396e1
If a Body collides with a Static Body it will now set the blocked
properties accordingly
2018-06-03 21:17:33 +01:00
Richard Davey
df7651a892
Merge pull request #3712 from cyantree/bugfix/endless-loop-in-TweenManager-getTweensOf
...
Fixed endless loop in `TweenManager.getTweensOf()`
2018-06-03 21:04:06 +01:00
Richard Davey
e8964dc789
Merge pull request #3727 from samme/feature/camera-centerXY
...
Add Camera#centerX, Camera#centerY
2018-06-03 21:02:51 +01:00
Richard Davey
a67e5dbbd5
Merge pull request #3726 from samme/feature/updatelist-length
...
Add Phaser.GameObjects.UpdateList#length
2018-06-03 21:01:07 +01:00
Richard Davey
d01758ea92
Merge pull request #3723 from NQNStudios/canvas-dom-fix
...
Don't re-add a user-specified Canvas to DOM
2018-06-03 20:58:54 +01:00
Richard Davey
e3e4130a15
Updated log
2018-06-03 17:08:16 +01:00
Richard Davey
579c6ba607
Body.useDamping is a new boolean property that allows you to use a damping effect for drag, rather than the default linear deceleration.
2018-06-03 17:08:08 +01:00
Richard Davey
9aa80b2b49
World.computeVelocity now uses the Body.useDamping property to perform either linear deceleration or damping on the Body.
...
updateMotion has been stream lined.
computeVelocity has been rewritten, takes new arguments, performs better internally.
2018-06-03 17:07:41 +01:00
samme
68ebce077e
Add Camera#centerX, Camera#centerY
2018-06-02 21:04:56 -07:00
samme
5be5ea8024
Add Phaser.GameObjects.UpdateList#length
2018-06-02 20:59:01 -07:00
Richard Davey
fb817833a5
Updated change log
2018-06-02 12:45:34 +01:00
Richard Davey
bbf6211107
Refactored enable and disable flow and added lots of jsdocs.
2018-06-02 12:45:25 +01:00
Richard Davey
9875318f20
Added missing dx/dy properties
2018-06-01 19:52:52 +01:00
Richard Davey
95826aa95f
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-01 19:19:21 +01:00
Richard Davey
2a4e6ae56e
Updated log with Arcade Physics changes
2018-06-01 19:19:18 +01:00
Richard Davey
40a3896962
Added more jsdocs, setFPS and optimized group vs. sprite and RTree use
2018-06-01 19:19:07 +01:00
Richard Davey
586d1827e0
Removed dirty property, optimized update loop, refactored postUpdate for fixed time step
2018-06-01 19:18:40 +01:00
Richard Davey
329c9266b4
GetOverlapX/Y now use the calculated delta values, not the deltaX/Y methods
2018-06-01 15:41:40 +01:00
Chris Andrew
9e49b30d31
Fixed @return annotation spacing for GetBitmapTextSize.
2018-06-01 15:32:03 +01:00
Chris Andrew
085efa3190
Fixed a couple of BitmapTextSize descriptions.
2018-06-01 15:28:00 +01:00
Chris Andrew
8a7f381a28
Improved some GetBitmapTextSize descriptions.
2018-06-01 15:25:16 +01:00