Richard Davey
f4a68404fc
lint fix
2019-04-08 11:01:21 +01:00
Richard Davey
ddd1cec3da
Merge pull request #4326 from snowbillr/patch-1
...
2d Camera startFollow should respect useBounds
2019-04-08 10:57:59 +01:00
Bill Reed
1293e427dd
Use correct values in clamp calls.
2019-04-05 16:50:51 -04:00
Bill Reed
22f14ed6dc
fix bug where scrollX and scrollY wouldn't be set
2019-03-09 13:34:07 -05:00
Richard Davey
31b14156de
Fixed event name
2019-02-13 16:55:52 +00:00
Richard Davey
4f6f6ee72f
Lots of jsdoc and type fixes
2019-01-31 12:19:01 +00:00
Bill Reed
0c12d836a2
2d Camera startFollow should respect useBounds
...
It was possible for the 2d camera's `startFollow` method to set the `scrollX` and `scrollY` values out of the camera's bounds, even when `useBounds` was set to true.
This PR ensures that `useBounds` is respected by the `startFollow` method when setting the `scrollX` and `scrollY` values.
Question - should this check also happen when setting the `midpoint` with the `fx` and `fy` values?
2019-01-27 16:01:34 -05:00
Richard Davey
5ef7d18ead
Merged itrs to single call
2019-01-22 14:46:17 +00:00
Richard Davey
36d86abd48
Added Camera Fade and Game Object Destroy events.
2019-01-18 14:21:45 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
99b5cf90dc
Cameras now factor in the resolution to their transforms
2019-01-10 13:41:07 +00:00
iam13islucky
c98f7b7363
Typo - Zoom.js Pan.js Camera.js docs refer to wrong effects
2019-01-06 14:04:38 -07:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
4c6b2cc183
Fixed destroy order
2018-09-14 18:03:51 +01:00
Richard Davey
5ec26fa62d
Cameras now emit prerender
and postrender
events if they are set to render to textures.
2018-09-14 15:53:06 +01:00
Richard Davey
b9318826eb
Added jsdocs, setPipeline and clearRenderToTexture methods
2018-09-14 14:03:37 +01:00
Richard Davey
cb1c6f614d
Preparing for 3.12 release
2018-09-04 15:42:10 +01:00
Richard Davey
0b95ed0478
Fixed scissors when using a small cam with render texture
2018-08-31 16:25:04 +01:00
Richard Davey
eaeab041ee
Added render to texture docs
2018-08-23 18:10:55 +01:00
Richard Davey
66afe973af
Trying mixins
2018-08-08 01:33:55 +01:00
Richard Davey
3a4bfa679b
Added experimental Camera to Render Texture
2018-08-07 16:27:21 +01:00
Richard Davey
9675c269e6
Split Camera up into BaseCamera, which Camera now extends.
2018-08-04 13:05:41 +01:00
Richard Davey
4bdecf488b
jsdocs tweaks
2018-07-26 23:41:52 +01:00
Richard Davey
1a62a3563e
Added refs to config and Scene Manager and new customViewport bool
2018-07-26 23:04:53 +01:00
Richard Davey
25e4993e6f
Added x and y getters and new scaled viewport values
2018-07-18 14:32:47 +01:00
Richard Davey
16d597c983
Fixed jsdoc references
2018-07-17 11:43:09 +01:00
Richard Davey
646861425f
Added Camera.worldView
property and adjusted it to the correct values each frame.
2018-07-12 15:08:29 +01:00
Richard Davey
072cc0e21b
Added dirty Camera support and updated internal properties to set the flag
2018-07-12 01:13:34 +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
7aa46657c2
Tidying up jsdocs and changing float to number
2018-06-26 23:19:14 +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
6dff47b71d
Added Camera.alpha property
2018-06-25 16:11:09 +01:00
Richard Davey
6df877cfa3
Docs update
2018-06-23 12:33:20 +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
Chris Andrew
2388707379
Fixed lint error. Minor documentation fix in 2D camera.
2018-06-21 18:17:00 +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
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
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
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
99eb565520
Fixed camera bounds with zoom issue and added new displayWidth / displayHeight properties
2018-06-20 17:42:20 +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
7d573a35eb
Added Camera.setDeadzone method, updated startFollow and added jsdocs.
2018-06-20 14:26:36 +01:00
Richard Davey
2b9be45741
Starting Camera.deadzone support
2018-06-19 12:29:04 +01:00