Richard Davey
140e743a8d
Added docs and fixed lint issue
2018-06-08 18:24:08 +01:00
Richard Davey
a8105ae0b0
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-08 17:50:52 +01:00
Richard Davey
4304811dde
Added new Pixel Perfect input handler and makePixelPerfect
method.
2018-06-08 17:50:47 +01:00
Richard Davey
a49e770f89
Added getPixelAlpha method
2018-06-08 17:50:26 +01:00
Chris Andrew
c08dde33b1
Documented some remaining TileSprite descriptions.
2018-06-08 17:07:35 +01:00
Richard Davey
ed97d1594a
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-08 16:18:44 +01:00
Richard Davey
87c950a5ea
Fixed jsdocs
2018-06-08 16:18:39 +01:00
Richard Davey
529442f134
Only install the plugin if set in Scene settings / Game Config
2018-06-08 16:18:32 +01:00
Richard Davey
8148b14cc3
Removed references to the Gamepad
2018-06-08 16:18:20 +01:00
Richard Davey
680d34b3c4
Convert Gamepad Manager to an Input Plugin
2018-06-08 16:17:58 +01:00
Chris Andrew
469c34feee
Documented the remaining descriptions in the Quad and Sprite game objects.
2018-06-08 15:50:44 +01:00
Chris Andrew
ae214a8664
Documented the missing descriptions for the Mesh game object.
2018-06-08 15:42:55 +01:00
Chris Andrew
07e9878166
Documented the Light game object.
2018-06-08 15:40:39 +01:00
Richard Davey
02554984fe
Removed KeyboardManager and replaced with KeyboardPlugin
...
The `KeyboardManager` class has been removed. It has been replaced with `KeyboardPlugin` which is now an Input level plugin, that registers itself with the new `InputPluginCache`. The Input Plugin class (which belongs to a Scene) will now automatically inject registered plugins into itself on boot. Every Scene has its own instance of the Input Plugin (if enabled in the scene plugins), which in turn has its own instance of the KeyboardPlugin. The `InputManager` no longer has any reference to the Keyboard class at all. The benefits of this are two-fold: First, it allows you to now entirely exclude all of the keyboard classes from a custom build, saving a lot of space if not required. Secondly, it means that the Scenes themselves are now responsible for keyboard events, where-as before they were entirely global. This means a Scene can be paused and stop processing keyboard events, and stop having its Key objects updated, while another Scene can still carry on doing this. It also prevents key related callbacks in sleeping Scenes from being fired (which resolves issue #3733 , thanks @JoeMoov2)
2018-06-08 15:16:35 +01:00
Richard Davey
bf46135d84
Allow for Scene level input settings
2018-06-08 15:16:09 +01:00
Richard Davey
11c5c35149
The new Input Plugin cache
2018-06-08 15:15:36 +01:00
Richard Davey
fc0069d9da
Removed all references to keyboard
2018-06-08 15:15:21 +01:00
Richard Davey
43fd10bbc1
ScenePlugin.run
is a new method that will run the given Scene and not change the state of the current Scene at all. If the scene is asleep, it will be woken. If it's paused, it will be resumed. If not running at all, it will be started.
2018-06-08 15:07:00 +01:00
Richard Davey
a6e26ba6c0
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-08 00:23:59 +01:00
Richard Davey
1777c47a23
Added missing check
2018-06-08 00:22:58 +01:00
Chris Andrew
f8ee35d46a
Fixed Gamepad lint errors, tweaked some Graphics docs.
2018-06-07 18:36:27 +01:00
Chris Andrew
62d6496dfb
Adapted Graphics class description from Phaser CE.
...
Documented the remaining properties and a few more methods.
2018-06-07 16:47:27 +01:00
Richard Davey
5f1fff6d48
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-07 16:36:36 +01:00
Richard Davey
cfa436f158
Added new methods
2018-06-07 16:36:32 +01:00
Chris Andrew
8d926754cb
Fixed lint issues in Gamepad and GamepadManager.
2018-06-07 16:04:27 +01:00
Chris Andrew
786d2068a3
Documented most of the Graphics Game Object methods.
2018-06-07 16:01:40 +01:00
Chris Andrew
69ec32a2fe
Documented initial Graphics options and Graphics style settings types.
2018-06-07 16:01:40 +01:00
Richard Davey
0180a684ca
Added leftStick and rightStick properties and shoulder buttons
2018-06-07 14:30:16 +01:00
AleBles
7fc1fbbb4c
Put Android device check before Linux, because Android useragent always includes 'Linux' and Linux ua doesn't include Android
2018-06-07 10:15:44 +02:00
Richard Davey
ada4656601
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-06 23:05:48 +01:00
Richard Davey
aa8d207485
Recoded gamepad event flow, moved to direct handlers, exposed first 4 pads, added full docs
2018-06-06 23:05:10 +01:00
Richard Davey
4c4a415dc3
Added docs, axis and button getters
2018-06-06 23:04:38 +01:00
Richard Davey
1518551c43
Added docs, destroy method, and updated update
2018-06-06 23:04:11 +01:00
Richard Davey
12b6825854
Added docs and destroy method
2018-06-06 23:03:59 +01:00
Richard Davey
b18183fb9f
Added docs
2018-06-06 23:03:44 +01:00
Richard Davey
fa2e274f8d
New gamepad target config property
2018-06-06 23:03:27 +01:00
Chris Andrew
ab5853f65e
Started documenting the Graphics game object.
...
Added a couple of missing descriptions for the Container game object.
2018-06-06 17:52:31 +01:00
Chris Andrew
39ace6c9e9
Finished all BitmapText descriptions, other than GameObject class descriptions.
2018-06-06 17:34:18 +01:00
Chris Andrew
fb33fd045d
Documented DynamicBitmapText display callbacks.
...
Finished up some DynamicBitmapText related descriptions.
Removed the align property from BitmapTextConfig, as it's not used.
2018-06-06 17:26:55 +01:00
Chris Andrew
79c3242c68
Tweaked and filled in a few more BitmapText related descriptions.
2018-06-06 16:58:48 +01:00
Chris Andrew
c9d4ff9f83
Fixed case of @readOnly annotations in BitmapText and DynamicBitmapText.
2018-06-06 16:34:49 +01:00
Chris Andrew
96d750bb60
Documented BitmapText and DynamicBitmapText.
...
Moved BitmapFontData typedefs to the BitmapText class file.
2018-06-06 16:32:58 +01:00
Chris Andrew
25f1dedb74
Started documenting Bitmap Font data structures.
2018-06-06 15:12:12 +01:00
Chris Andrew
a90e78d0a9
Finished UpdateList and RetroFont.Config documentation.
2018-06-06 15:11:40 +01:00
Chris Andrew
4aaf071ad3
Cleaned up some previous documentation, finished the RenderTexture GameObject documentation.
2018-06-06 14:23:39 +01:00
Andreas Loew
bcef469e1c
Trivial change to trigger travis ci build.
...
The last build failed because of lint issues outside of our code.
2018-06-05 07:45:56 +02: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
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
Andreas Loew
fea754f1f9
Converted code to ES5
2018-06-04 22:44:36 +02: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
f411edf987
Added jsdocs.
2018-06-04 17:11:53 +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
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
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
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
Joachim Grill
6c58bd9029
fixed lint issues
2018-06-04 11:12:02 +02: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
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
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
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
Chris Andrew
efaff363aa
Documented XML Bitmap Font parsing and the GetBitmapTextSize function.
2018-06-01 15:21:10 +01:00
Chris Andrew
4750e92be4
Fixed a method signature issue with the Animation component's 'remove' event handler.
...
This prevented removed animations from stopping correctly, when they were removed from the AnimationManager.
2018-06-01 14:37:15 +01:00
Chris Andrew
007ac01f10
Documented the Animation, Pipeline and ToJSON Game Object components.
2018-06-01 14:08:35 +01:00
Joachim Grill
bc4186061c
added getter for center of mass
2018-06-01 14:42:59 +02:00
Joachim Grill
4719694f33
matter-js physics: added loader for shapes created and exported with PhysicsEditor
2018-06-01 14:42:28 +02:00
Chris Andrew
cb6077f231
Documented most of the Animation component class and some of the Animation class.
2018-06-01 13:11:25 +01:00
Chris Andrew
544daa8d4a
Documented the DisplayList and UpdateList plugins, and the BuildGameObject function.
2018-06-01 11:36:12 +01:00
Richard Davey
4ad7993b78
Added fixed timestep logic to Arcade Physics World
2018-06-01 03:25:33 +01:00
cyantree
e578cd55fa
Fixed endless loop in TweenManager.getTweensOf()
2018-06-01 01:25:46 +02:00
Richard Davey
7df02a4447
Added 2 NOOPs instead of merging the whole mixins.
2018-06-01 00:03:45 +01:00
Richard Davey
5dffd80420
Merge pull request #3718 from TadejZupancic/patch-3
...
Particle Emitter Manager in Container
2018-05-31 23:39:20 +01:00
Nat Quayle Nelson
507901cbb1
More comprehensive AddToDom logic
...
I realized I hadn't looked closely enough at the AddToDom logic, and created an error if a canvas was passed to GameConfig without being added to the DOM first. This commit should fix that scenario and move the logic back into AddToDom() where it really belongs
2018-05-31 16:40:46 -04:00
Nat Quayle Nelson
d43bff04e1
Should now be lint-compliant
2018-05-31 16:12:52 -04:00
Nat Quayle Nelson
29710ec9db
Don't re-add a user-specified Canvas to DOM
2018-05-31 14:53:13 -04:00
Chris Andrew
ee6f48b10c
Fixed an incorrect usage of Math.abs() in Quaternion.calculateW() (thanks @qxzkjp).
2018-05-31 18:05:31 +01:00
Chris Andrew
40ba9a2ddf
Improved descriptions for Quaternion.conjugate() and Quaternion.calculateW().
2018-05-31 17:55:07 +01:00
Chris Andrew
56b43c5cc0
Improved Quaternion.conjugate() description.
2018-05-31 17:42:57 +01:00
Chris Andrew
e52e9ff8ec
Documented a few more Matrix descriptions. Fixed Matrix4.makeRotationAxis().
2018-05-31 17:32:25 +01:00
Richard Davey
f45ab89f8d
The ForwardDiffuseLightPipeline, used by the Lights system, now sets a flag if the Scene doesn't contain any lights. All of the Game Objects now check this flag and don't even bother adding themselves to the batch if there are no lights in the Scene, as they'd never render anyway. This also avoids the ghost-image problem if you swap Scenes to a new Scene with the Light Manager enabled, but no actual lights defined. Fix #3707
2018-05-31 16:57:30 +01:00
Chris Andrew
0fdb7fcab6
Documented SinCosTableGenerator and a few more easing parameters.
2018-05-31 16:29:42 +01:00
Richard Davey
652b7b04ba
Huge new ArcadeColliderType
def. Fix #3714 .
2018-05-31 15:52:45 +01:00
Chris Andrew
fd715f9a34
Fixed lint error in InputManager.update().
2018-05-31 15:19:35 +01:00
Chris Andrew
dad6b78c9b
Documented almost all of Math.Quaternion. Fixed lint error in RandomOutside.
2018-05-31 15:17:59 +01:00
Richard Davey
20e21ff5ac
Rectangle.RandomOutside is a new function that takes two Rectangles, outer
and inner
, and returns a random point that falls within the outer rectangle but is always outside of the inner rectangle.
2018-05-31 14:07:39 +01:00
TadejZupancic
6f7463f4f7
Particle Emitter Manager in Container
...
Added Alpha and ScrollFactor Mixin to Particle Emitter Manager otherwise it crashes when added to the Container.
2018-05-30 10:44:49 +02:00
Richard Davey
594fc3e27b
Added new dom callback support, streamlined the event flow, moved to consts
2018-05-30 00:33:51 +01:00
Richard Davey
f79ee26945
Proxy to the dom callback methods
2018-05-30 00:33:28 +01:00
Richard Davey
bdc95217ae
Calls new manager queue methods
2018-05-30 00:33:16 +01:00
Richard Davey
521ea10db9
Moved active pointers total to game config
2018-05-30 00:33:01 +01:00
Richard Davey
5db2bf5cbd
Moved the event switch block from strings to consts
2018-05-30 00:32:45 +01:00
Richard Davey
45c373f9f4
Multi-touch support working properly up to 10 pointers and mouse re-enabled.
2018-05-29 16:55:52 +01:00
Richard Davey
a739be27a1
RenderTexture.resize will allow you to resize the underlying Render Texture to the new dimensions given. Doing this also clears the Render Texture at the same time
2018-05-29 12:07:40 +01:00
Richard Davey
a11a34d287
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-05-29 11:50:32 +01:00
Richard Davey
a7da8dc28f
The Canvas RenderTexture drawImage method incorrectly set the values of the frame, causing them to appear wrongly scaled in the canvas renderer. Fix #3710
2018-05-29 11:50:23 +01:00
Rafael Barbosa Lopes
904b6c13da
Delete console.log
call on PluginManager.
2018-05-26 14:01:07 -03:00
Richard Davey
57e32761df
Started work on multi-touch support.
2018-05-25 19:28:18 +01:00
Richard Davey
20d702c011
Added identifier properties for multi-touch
2018-05-25 19:28:02 +01:00
Richard Davey
700a26a196
Input systems listen to Input Manager events rathern than being directly hooked in
2018-05-25 19:27:26 +01:00
Richard Davey
a8f1b23b73
Fixed jsdoc errors
2018-05-25 17:20:50 +01:00
Richard Davey
d2981a8576
Preparing for 3.10 dev work
2018-05-25 00:21:01 +01:00
Richard Davey
23d3fe3774
3.9.0 Release
2018-05-24 23:42:40 +01:00
Richard Davey
6cfc5d49e7
The AudioContextMonkeyPatch has been updated to use an iife. Fix #3437
2018-05-24 23:17:33 +01:00
Richard Davey
3d9da060c5
Camera.shake would not effect dynamic tilemap layers. Fix #3669
2018-05-24 23:02:59 +01:00
Chris Andrew
05f55dc5ed
Minor parameter renaming for SmoothStep interpolation functions.
2018-05-24 19:06:57 +01:00
Chris Andrew
2e0b50ee90
Simplified implementations of SmoothStepInterpolation and SmootherStepInterpolation.
2018-05-24 18:55:24 +01:00
Chris Andrew
2f3c35c5b5
Fixed SmoothStepInterpolation and SmootherStepInterpolation implementations.
...
Improved documentation consistency of SmoothStep, SmootherStep, SmoothStepInterpolation and SmootherStepInterpolation.
2018-05-24 18:48:12 +01:00
Chris Andrew
f38a0683ff
Updated SmoothStep and SmootherStep documentation. Fixed lint errors.
2018-05-24 18:11:18 +01:00
Chris Andrew
424b5d72cd
Added SmootherStep interpolation function.
2018-05-24 18:02:53 +01:00
Richard Davey
603483ee69
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-05-24 17:30:31 +01:00
Richard Davey
7d692bc7dc
Added Camera.followOffset property and helper methods setLerp and setFollowOffset.
2018-05-24 17:30:28 +01:00
Richard Davey
9834e9d30b
Added followOffset property to Camera target
2018-05-24 17:04:20 +01:00
Richard Davey
bed3968ff7
Added SmoothStep interpolation function
2018-05-24 17:04:02 +01:00
Richard Davey
2684e7d988
Updated docs and added native clamping
2018-05-24 17:03:42 +01:00
Chris Andrew
e6d1df56cd
Started documenting Matrix3 and Matrix4.
2018-05-24 16:41:59 +01:00
Chris Andrew
3a56fc32f7
Described all easing functions.
2018-05-24 15:44:49 +01:00
Richard Davey
9a76f40f55
No such property as target
, swap to _follow
.
2018-05-24 15:33:49 +01:00
Richard Davey
f8cda698e4
Added Camera.lerp and implemented linear interpolation when following targets
2018-05-24 15:29:38 +01:00
Richard Davey
57c2ccbf5e
Formatting fix and doc update
2018-05-24 14:03:29 +01:00
Richard Davey
37f75fd233
Merge pull request #3675 from tjb295/master
...
Bug: #3645 issue with clearing GameObjects from this._list. Called qu…
2018-05-24 13:51:55 +01:00
Richard Davey
6ab124c591
Merge pull request #3687 from thomastanck/thomastanck-typedefupdates
...
Update type definitions
2018-05-24 13:49:30 +01:00
Chris Andrew
1aeb8327e7
Started documenting Math.Easing functions.
2018-05-24 13:33:47 +01:00
Chris Andrew
313ae38bb1
Improved Math.Angle function documentation.
2018-05-24 13:14:04 +01:00
Chris Andrew
1c94c3d4d6
Documented a few more Phaser.Math functions.
2018-05-24 12:59:27 +01:00