Richard Davey
c82c09914e
Updated UV values
2018-07-02 23:51:42 +01:00
Richard Davey
265852fc75
Removed test code
2018-07-02 17:09:21 +01:00
Richard Davey
35686657ce
Tidied up the batchVertices method and removed old stuff
2018-07-02 17:06:49 +01:00
Richard Davey
89bf09d19d
Swapped to unified batchVertices method
2018-07-02 17:06:34 +01:00
Richard Davey
c1020c6dbb
Refactoring TTP to remove so much redundant stuff
2018-07-02 16:44:24 +01:00
Richard Davey
d3df3436e4
Blitter now hits the renderer directly
2018-07-02 16:44:09 +01:00
Richard Davey
f57ecc0d81
Moved method
2018-07-02 16:43:43 +01:00
Richard Davey
cf008e612c
Added e and f properties and multiplyWithOffset and copyFrom
2018-07-02 15:33:54 +01:00
Richard Davey
8a7ead03a8
Frame.glTexture
is a new property that maps to the WebGL Texture for the Frames Texture Source image. It's used internally by the renderer to avoid expensive object look-ups and is set automatically in the Frame
constructor.
2018-07-02 13:43:35 +01:00
Richard Davey
ea53e832c2
Added tintEffect property
2018-07-02 13:33:15 +01:00
Richard Davey
5fdf51ce59
Using direct pipeline calls
2018-07-02 13:32:56 +01:00
Richard Davey
17112ecd20
Tileset.glTexture
is a new property that maps to the WebGL Texture for the Tileset image. It's used internally by the renderer to avoid expensive object look-ups and is set automatically in the Tileset.setImage
method.
2018-07-02 13:32:35 +01:00
Richard Davey
0ac0bc18d3
Set tint on setters
2018-07-02 13:32:27 +01:00
Richard Davey
fe61cfe2d1
You can now set the WebGL batch size in the Game Config via the property batchSize
. The default is 2000 before the batch will flush, which is a happy average between desktop and mobile. If targeting desktop specifically, you may wish to increase this value to reduce draw calls.
2018-07-02 12:33:46 +01:00
Richard Davey
1941d8a494
Removed drawStaticTilemapLayer
method and updated layer vertex code
2018-07-02 12:07:39 +01:00
Richard Davey
4d30de536e
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-07-02 11:02:47 +01:00
Ale Bles
e85a542e09
Fixed dataManager redefining previously (re)set property
...
Added Configurable:true to Object.defineProperty in dataManager to fix #3803
2018-07-02 10:08:10 +02:00
tarsupin
6613bc28e9
Fixing removeTileAt, removeTileAtWorldXY docs
...
The 'tile' parameter was not included in the actual code, so it's removed here from the documentation.
2018-06-30 15:09:41 -05:00
Richard Davey
fdead2af16
Added the tint effect attribute and merged with all the various batches
2018-06-30 11:33:52 +01:00
Richard Davey
11ef2c824b
Updated shader to support tint effect attribute
2018-06-30 11:33:28 +01:00
Richard Davey
52b24e2879
Added tintFill property and more detailed documentation
2018-06-30 11:33:06 +01:00
Richard Davey
e22b1a7b9c
Removed stubs from pipelines
2018-06-29 12:33:44 +01:00
Richard Davey
f97ce72e16
Added the Mask compontent to Container. It worked without it, but this brings it in-line with the documentation and other Game Objects. Fix #3797
2018-06-28 14:17:04 +01:00
Richard Davey
39c3866179
lint fix
2018-06-28 13:07:59 +01:00
Richard Davey
217779604c
Added tileScaleX and tileScaleY support for Tile Sprites
2018-06-28 12:59:27 +01:00
Richard Davey
8c312090da
Solidified use of pixelArt mode
2018-06-27 15:27:16 +01:00
Richard Davey
7a23378015
Unified use of roundPixels, antialias and pixelArt modes
2018-06-27 15:15:00 +01:00
Richard Davey
a6ab61dd99
Fixed id use
2018-06-27 13:16:11 +01:00
Richard Davey
ee8e264d5e
Return removed total
2018-06-27 13:16:01 +01:00
Richard Davey
2888fe94bd
Tweak
2018-06-27 13:05:06 +01:00
Richard Davey
1bfe58ab55
remove can take an array of cameras and also no longer needs total to be > 0
2018-06-27 13:03:40 +01:00
Richard Davey
183f5c4260
CameraManager.getTotal
is a new method that will return the total number of Cameras being managed, with an optional isVisible
argument, that only counts visible cameras if set.
2018-06-27 12:45:54 +01:00
Richard Davey
88eb4f4ce9
The Pointer.camera
property would only be set if there was a viable Game Object in the camera view. Now it is set regardless, to always be the Camera the Pointer interacted with.
2018-06-27 12:45:03 +01:00
Richard Davey
f2b7fd0a32
Removed the cameraX properties because they fall out of sync on camera remove
2018-06-27 12:13:37 +01:00
Richard Davey
da2b91b460
ArrayUtils.AddAt didn't calculate the array offset correctly if you passed an array in to be merged with an existing array. This also caused Container.addAt to fail if an array was passed to it. Fix #3788
2018-06-27 11:31:51 +01:00
Richard Davey
6cc7939870
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-27 11:20:28 +01:00
Richard Davey
d02d6532fd
TileSprite was using the Size compontent instead of ComputedSize, meaning its getBounds
and displayWidth
and displayHeight
results were incorrect. Fix #3789
2018-06-27 11:20:21 +01:00
Richard Davey
391dd4ca8c
Merge pull request #3790 from samme/fix/array-each
...
Fix extra argument passing in Array.Each
2018-06-27 11:13:22 +01:00
Richard Davey
c5f28f18f3
Merge pull request #3791 from photonstorm/mikewesthad-line-doc-fix
...
Line#getPointB documentation typo fix: "start" is used where "end" was intended
2018-06-27 11:12:28 +01:00
Andre van Tonder
32ff6df5b3
fixed JsDoc for Phaser.Tilemaps.Tilemap#createBlankDynamicLayer
...
x, y, width, height, tileWidth, tileHeight are all optional params
I also add x, y params to jsdoc as they were missing
2018-06-27 10:33:35 +08:00
Michael Hadley
bf995c7000
Line#getPointB documentation typo fix: "start" is used where "end" was intended
2018-06-26 20:30:01 -05:00
samme
703f338348
args
description
2018-06-26 15:58:51 -07:00
samme
bb29f0cdfc
Fix context
argument wrongly passed to callback
2018-06-26 15:57:49 -07:00
Richard Davey
7aa46657c2
Tidying up jsdocs and changing float to number
2018-06-26 23:19:14 +01:00
Richard Davey
c2fbad8356
Added jsdocs. Now 100% complete!
2018-06-26 17:24:51 +01:00
Richard Davey
ba9890e9f1
lint fix
2018-06-26 16:41:37 +01:00
Richard Davey
f1190529d2
ScenePlugin.start
and ScenePlugin.restart
will now always queue the op with the Scene Manager, regardless of the state of the Scene, in order to avoid issues where plugins carry on running for a frame before closing down. Fix #3776
2018-06-26 16:35:45 +01:00
Richard Davey
b95f980023
Added in data object passing to all relevant methods #3748
2018-06-26 16:08:14 +01:00
Richard Davey
1d4a15f297
Merge pull request #3748 from rook2pawn/wake-resume-data-from-run
...
[feat] scene.run can now pass data to .wake and .resume if it needs
2018-06-26 15:28:50 +01:00
Richard Davey
39a838fccc
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-25 22:53:44 +01:00
Richard Davey
bb7b99a4db
Updated log and formatting
2018-06-25 22:53:42 +01:00
Richard Davey
dade336b29
Merge pull request #3782 from Upperfoot/hotfix/tile-culling
...
Account for position of tilemapLayer when culling tiles
2018-06-25 22:46:36 +01:00
Richard Davey
8391042ff9
Merge pull request #3783 from samme/feature/particle-emitter-stop
...
Add ParticleEmitter#stop()
2018-06-25 22:42:00 +01:00
Richard Davey
8af70d02d1
Merge pull request #3780 from TadejZupancic/patch-9
...
disableInteractive
2018-06-25 22:39:54 +01:00
Richard Davey
c6c9b25fdc
Camera.alpha
(and its related method Camera.setAlpha
) allows you to get an alpha level for the entire camera. This impacts everything it is rendering, even if those objects also have their own alpha values too. You can tween the property to make the camera contents fade in / out, or you can set it as needed in your game.
2018-06-25 17:35:36 +01:00
Richard Davey
237368161b
Added Camera.setAlpha method
2018-06-25 16:31:54 +01:00
Richard Davey
51468fdefc
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-25 16:25:42 +01:00
Richard Davey
90ba2608fa
Added in Camera alpha support to all canvas renderers
2018-06-25 16:24:08 +01:00
Richard Davey
6dff47b71d
Added Camera.alpha property
2018-06-25 16:11:09 +01:00
Richard Davey
d20188b75d
Removed camera pool, renamed current ID and added accessor properties
2018-06-25 16:10:50 +01:00
Richard Davey
98b1cc2dbc
Although the Blitter object had the Alpha component, setting it made no difference. Setting Blitter alpha now impacts the rendering of all children, in both Canvas and WebGL, and you can also specify an alpha per Bob as well.
2018-06-25 16:06:22 +01:00
Richard Davey
bcacfeb87c
Bob.alpha
was ignored by the canvas renderer, only working in WebGL. This has now been fixed.
2018-06-25 15:59:01 +01:00
Richard Davey
9a96785cf6
If the Blitter object has no Bob's to render it will now abort immediately, avoiding several context calls in Canvas mode.
2018-06-25 15:38:06 +01:00
Craig Whiteside
375b1f8f18
Pulled out calculation for tile pixel position amended with tilemapLayer position
2018-06-23 21:20:54 +01:00
samme
bc2212c87d
Add ParticleEmitter#stop()
2018-06-23 12:51:16 -07:00
Craig Whiteside
ac82e39314
Fix whitespace
2018-06-23 16:40:19 +01:00
Craig Whiteside
86f1cbcabf
Made it more specific to the tile offset.
2018-06-23 16:34:45 +01:00
Craig Whiteside
a73e47e508
Account for position of tilemapLayer when culling tiles
2018-06-23 16:28:45 +01:00
Richard Davey
6df877cfa3
Docs update
2018-06-23 12:33:20 +01:00
Richard Davey
e53f61d068
CameraManager.resetAll
now destroys all current Cameras, resets the camera ID marker to 1 and adds a single new Camera.
2018-06-23 12:33:10 +01:00
Richard Davey
5a0fe89a7e
Swap _id to id
2018-06-23 12:26:39 +01:00
Richard Davey
932737343b
Added centerOn argument to setBounds and bumped Camera id to be public
2018-06-23 12:18:44 +01:00
Edwin222
57f159c64b
Add description comments to TextureManager.js
2018-06-23 17:20:49 +09:00
rook2pawn
b040146b4a
simplified logic on queueOp starting an unready scene
2018-06-22 03:55:21 -07:00
rook2pawn
dd53268a23
removed superfluous queue stop
2018-06-22 03:37:14 -07:00
rook2pawn
c09b4baf16
[fix] sceneManager run will queueOp if scene not ready
...
fixed linting
2018-06-22 03:37:14 -07:00
rook2pawn
44a0813591
[feat] scene.run can now pass data to .wake and .resume if it needs to invoke those methods
...
update javadoc for scene and scene systems
2018-06-22 03:32:17 -07:00
Chris Andrew
734c0115f9
Documented Geom CopyFrom functions and some Point functions.
...
Documented one remaining Ellipse ContainsRect parameter.
2018-06-21 18:42:40 +01:00
Chris Andrew
2388707379
Fixed lint error. Minor documentation fix in 2D camera.
2018-06-21 18:17:00 +01:00
Chris Andrew
c2bfc52987
Documented the majority of the Geom Line functions.
2018-06-21 18:13:56 +01:00
Richard Davey
53cf7d847b
Fixed Pan so it updates constantly, allowing Pan + Zoom together
2018-06-21 17:56:27 +01:00
Richard Davey
f4f9a98ac1
Added Camera Zoom Effect
2018-06-21 17:48:11 +01:00
Richard Davey
ec168c4b9b
Removed dead code and added jsdocs
2018-06-21 17:19:58 +01:00
Richard Davey
3ece90ad75
Added Camera.getScroll and the new Pan Effect
2018-06-21 17:15:43 +01:00
Richard Davey
53c093ec00
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-21 15:55:00 +01:00
Richard Davey
472df6a7be
Camera.centerOn
is a new method that will move the camera so its viewport is centered on the given coordinates. A handy way of jumping to different points around a map without needing to calculate the scroll offsets.
2018-06-21 15:54:54 +01:00
Chris Andrew
6854ccb764
Cleaned up some remaining GameObject descriptions.
2018-06-21 14:18:28 +01:00
Chris Andrew
978f982c26
Documented the remaining ParticleEmitter Zone classes.
2018-06-21 14:12:47 +01:00
Richard Davey
583d464230
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-21 14:03:35 +01:00
Richard Davey
2ff6845360
Camera.centerToBounds
didn't take the bounds offset into account, so bounds at non-zero positions wouldn't center properly. All bounds now center correctly. Fix #3706
2018-06-21 14:03:31 +01:00
Chris Andrew
4b5ab4e217
Documented most of the remaining PathFollower descriptions.
2018-06-21 13:19:52 +01:00
TadejZupancic
5859979c96
Update GameObject.js
2018-06-21 14:07:18 +02:00
Chris Andrew
df88218534
Finished up EmitterOp method descriptions.
...
Finally!
2018-06-21 12:47:29 +01:00
Richard Davey
3e3b0d6397
Fixed issue where negative camera bounds wouldn't clamp properly
2018-06-21 12:33:20 +01:00
Richard Davey
c02c9cf2da
Fixed camera bounds when bounds are smaller than the viewport
2018-06-21 02:32:24 +01:00
Richard Davey
0b3392fab4
Fixed Camera roundPixels stuttering
2018-06-21 01:59:12 +01:00
Richard Davey
2c8c4c7a16
Bob.setFrame
didn't actually set the frame on the Bob, now it does. Fix #3774
2018-06-20 19:33:59 +01:00
Richard Davey
f8ca5e1f6f
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-20 17:42:23 +01:00
Richard Davey
99eb565520
Fixed camera bounds with zoom issue and added new displayWidth / displayHeight properties
2018-06-20 17:42:20 +01:00
Chris Andrew
7f232b6bed
Further EmitterOp documentation.
2018-06-20 17:18:03 +01:00
Chris Andrew
584e8f9919
Started documenting the EmitterOp class.
2018-06-20 16:18:00 +01:00
Richard Davey
92d06d4742
Removed incorrect application of zoom
2018-06-20 14:52:22 +01:00
Richard Davey
e1151fe436
Removed merge conflicts
2018-06-20 14:29:36 +01:00
Richard Davey
3c79a92ea4
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-20 14:27:56 +01:00
Richard Davey
7d573a35eb
Added Camera.setDeadzone method, updated startFollow and added jsdocs.
2018-06-20 14:26:36 +01:00
Chris Andrew
d6a13eb8db
Finished up TileSprite property descriptions, started on its class description.
2018-06-20 08:33:55 +01:00
Chris Andrew
2d67342ae5
Fixed lint errors.
2018-06-20 07:29:42 +01:00
Chris Andrew
9f23818c40
Documented various missing descriptions for GameObject classes and functions.
2018-06-20 07:28:02 +01:00
samme
b3ac91df5a
Fix blocked.none after separation
2018-06-19 14:48:07 -07:00
Richard Davey
b832247a35
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-19 14:14:40 +01:00
Richard Davey
f1fe131e56
Tidying up Render Texture to make it more useful
2018-06-19 14:14:37 +01:00
Richard Davey
3a6f093579
Merge pull request #3761 from DannyT/fix/buildgameobjectanimation
...
Fix setter calls in BuildGameObjectAnimation
2018-06-19 13:22:13 +01:00
Richard Davey
30276cd4c2
Merge pull request #3765 from DrevanTonder/master
...
change ParticleEmitter.startFollow to fix issue 3764
2018-06-19 13:20:19 +01:00
Richard Davey
622fd7c34a
Merge pull request #3745 from cyantree/feature/update-graphics-jsdoc
...
Changed options and sub options of `Graphics` constructor in docs to …
2018-06-19 13:19:12 +01:00
Richard Davey
62661b46fb
Updated rounded rect functions
2018-06-19 13:17:38 +01:00
Richard Davey
cc5f1bb91e
Merge pull request #3755 from TadejZupancic/patch-8
...
Add rounded rectangle to Graphics
2018-06-19 12:47:58 +01:00
Richard Davey
95f923bcad
Merge pull request #3762 from dvdbrink/patch-1
...
Fix GameObject typings when returning itself
2018-06-19 12:30:57 +01:00
Richard Davey
d6db01cd82
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-19 12:29:09 +01:00
Richard Davey
2b9be45741
Starting Camera.deadzone support
2018-06-19 12:29:04 +01:00
Richard Davey
e5fbcd5574
Calling Tween.play
on a tween created via TweenManager.create
wouldn't actually start playback until the tween was first added to the Tween Manager. Now, calling play
will have it automatically add itself to the Tween Manager if it's not already in there. Fix #3763
2018-06-19 12:28:29 +01:00
Hua
821504a893
Skip drag checking on a draging Game Object
...
Skip drag checking on a draging Game Object to prevent multi-drag issue.
2018-06-19 10:33:22 +08:00
TadejZupancic
c1d0c11b30
Update Graphics.js
2018-06-18 10:52:49 +02:00
Andre van Tonder
b2f8a139cc
change ParticleEmitter.startFollow to fix issue 3764
2018-06-18 14:25:12 +08:00
Chris Andrew
a480232d87
Documented Graphics.save() and Graphics.restore().
...
Adapted from Mozilla's descriptions of the corresponding Canvas methods.
2018-06-17 19:43:05 +01:00
Daniel van den Brink
9a2c110c44
Fix GameObject typings for returning this
2018-06-17 08:54:28 +02:00
DannyT
1eb60e09a3
changed animation api calls to include updated set verb (e.g. .setDelay() vs .delay())
2018-06-16 18:15:29 +01:00
TadejZupancic
caef54a34e
Update Graphics.js
2018-06-15 14:36:24 +02:00
TadejZupancic
321aba14c3
Update Graphics.js
2018-06-15 14:31:44 +02:00
TadejZupancic
9affc60037
Update Graphics.js
2018-06-15 14:23:40 +02:00
Chris Andrew
e140640583
Minor punctuation fix for Vector distanceSq() method descriptions.
2018-06-14 15:12:10 +01:00
Chris Andrew
47fdf779d3
Switched to example annotations for the setStyle() examples.
2018-06-14 14:49:29 +01:00
Chris Andrew
885b404b98
Fixed the indentation of setStyle() examples.
2018-06-14 14:41:17 +01:00
Chris Andrew
a6b8b8ed31
Documented the Text game object and its TextStyle companion.
...
Minor update to JSON representation descriptions.
2018-06-14 14:27:58 +01:00
Richard Davey
28851ff69b
Use hyphens instead of underscores. Fix #3751
2018-06-14 13:30:33 +01:00
Richard Davey
52d04ee5f9
The LoaderPlugin didn't emit the filecomplete
event if any of files failed to load, causing it to fail to run the Scene create
function as well. Fix #3750
2018-06-14 13:23:15 +01:00
Richard Davey
307a937eea
Merge pull request #3749 from iamchristopher/fix-changedata-event-value
...
Fixed DataManager changedata event emits original value instead of new value
2018-06-14 12:33:19 +01:00
Richard Davey
d66daa6795
Merge pull request #3744 from rexrainbow/master
...
Pass `this.parent` instead of `this` in callback of removedata event
2018-06-14 12:29:38 +01:00
iamchristopher
321ab9bc91
Fixed DataManager changedata event emits original value instead of new value
2018-06-13 21:58:05 -04:00
cyantree
a727437304
Changed options and sub options of Graphics
constructor in docs to be optional
2018-06-13 20:01:26 +02:00
Chris Andrew
468b61da6f
Tweaked the LightsPlugin example in its class description.
2018-06-13 18:56:57 +01:00
Chris Andrew
124b0ff773
Documented Light, LightsManager and LightsPlugin.
...
Documented class description for TransformMatrix.
Added a missing description from Container's EachContainerCallback.
2018-06-13 18:44:32 +01:00
Rex
ae9ca0840d
Pass this.parent
instead of this
...
Pass this.parent at 1st argument of event callback, to consistent with other events, i.e. `setdata`
2018-06-14 00:41:49 +08:00
Richard Davey
19eb363a84
Only set Scene status to running if still in creating
2018-06-13 17:27:30 +01:00
Richard Davey
91b3c7a92d
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-13 15:51:12 +01:00
Richard Davey
62deef81d8
Preparing for 3.11.0 development
2018-06-13 15:51:07 +01:00
Chris Andrew
566fdaca0e
Documented the TransformMatrix component.
2018-06-13 14:36:07 +01:00
Richard Davey
0329b8dfb7
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-13 13:51:13 +01:00
Richard Davey
6456ef10a6
Touch pointer total fix
...
The InputManager would only create 1 Pointer, even if Touch input was enabled in the config, which meant you couldn't use touch events unless you first called `addPointer` or specified one in the config. Now, it Touch is enabled in the config, it'll always create 2 pointers by default.
2018-06-13 13:51:04 +01:00
Chris Andrew
eb84ad58df
Documented the MatrixStack component.
2018-06-13 13:48:33 +01:00
Richard Davey
16f61b402b
3.10 Release
2018-06-13 09:00:40 +01:00
Richard Davey
15b544fc46
jsdoc fixes
2018-06-13 08:37:40 +01:00
Richard Davey
9d52b6ac91
Fixed jsdoc errors
2018-06-12 17:05:39 +01:00
Richard Davey
7eac419d3c
Fixed namespace
2018-06-12 16:52:57 +01:00
Richard Davey
579f5bf4a1
Added the new sceneUpdate reference property.
2018-06-12 16:21:37 +01:00
Richard Davey
eb8d3ccdf1
No longer injects update
into a Scene, and now calls step
from init onwards.
2018-06-12 16:21:17 +01:00
Richard Davey
f0348834c6
The Loader now uses an update loop to release new files to the queue, rather than doing it during the async hell-hole that was the inflight iterator. Fix #3705 .
2018-06-12 16:20:55 +01:00
TadejZupancic
3c96ca73ec
Update Zone.js
2018-06-12 15:49:02 +02:00
Richard Davey
d6c2b1104b
Replace KeyboardManager with KeyboardPlugin
2018-06-12 14:44:51 +01:00
Richard Davey
c7c104bc2b
Tidied up the formatting and jsdocs for Physics Editor parser
2018-06-12 13:07:19 +01:00
Richard Davey
9a53daa068
Merge pull request #3729 from CodeAndWeb/matterjs-pe-loader
...
Matterjs pe loader
2018-06-12 11:54:18 +01:00
Joachim Grill
ff7f614a8e
renamed to PhysicsEditorParser, added jsdocs
2018-06-11 16:37:32 +02:00
Richard Davey
d058674a39
eslint fix
2018-06-11 14:42:50 +01:00
Richard Davey
f26bd913e9
Disable Camera.cull because #3679 excludes everything in view (and reverting it includes everything, so no point even culling atm)
2018-06-11 14:04:15 +01:00
Richard Davey
5313343730
Pointers capped at 10 max.
2018-06-11 13:39:28 +01:00
Richard Davey
e6e33f5e21
Added Game.isOver and mouseover and mouseout events.
2018-06-11 12:32:25 +01:00
Richard Davey
dfce514024
Fixed docs and added useHandCursor
helper.
2018-06-11 11:50:37 +01:00
Richard Davey
c74c1cbb32
Added setDefaultCursor
method and custom css cursor handling.
2018-06-11 11:36:02 +01:00
Richard Davey
da436b0ce7
Added custom cursor property
2018-06-11 11:35:40 +01:00
Richard Davey
5c7e624260
setInteractive
will now take a configuration object as the only argument, allowing for easier setting of more complex input values
2018-06-11 11:35:31 +01:00
Richard Davey
57bf16685a
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-11 09:05:57 +01:00
Richard Davey
0b8915520b
Added eslint rules. Fixed incorrect ES6 use.
2018-06-11 09:05:52 +01:00
Richard Davey
bf3e490967
Merge pull request #3734 from AleBles/master
...
Fixed device.os incorrectly reporting Linux as os on Android devices
2018-06-11 08:27:09 +01:00
Richard Davey
5889737183
Preparing for cursor change support
2018-06-08 19:04:12 +01:00
Richard Davey
44569fe20c
Added useHandCursor boolean
2018-06-08 19:04:01 +01:00
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