Commit graph

222 commits

Author SHA1 Message Date
Richard Davey
9ad922f56d Moved renderList to BaseCamera 2021-01-11 09:46:50 +00:00
Richard Davey
dc925267fc Added the new renderList property and addToRenderList method 2021-01-07 12:31:12 +00:00
Richard Davey
5481a64023 Clear the render list if not destroying the camera 2021-01-07 12:30:46 +00:00
Richard Davey
c6ad8b1306 Better parameter name 2021-01-07 11:03:59 +00:00
Richard Davey
ab1646c2a0 Update BaseCamera.js 2020-12-11 12:41:35 +00:00
Richard Davey
7dba1c4b2f Update BaseCamera.js 2020-12-07 13:09:12 +00:00
Richard Davey
02c34cd64e Replace integer with number 2020-11-23 10:22:13 +00:00
Richard Davey
9b1ac7036d Added ability for camera to zoomX and zoomY 2020-11-19 18:07:17 +00:00
Richard Davey
080677f28c Set on creation, not in the component 2020-11-17 14:08:09 +00:00
Richard Davey
c12b4cff3f Swizzle RGB 2020-11-16 15:45:45 +00:00
Richard Davey
c29d7b18ed Removed everything to do with Camera's rendering to textures or managing their own framebuffers.
Now uses pipeline component instead.
2020-11-06 15:35:56 +00:00
Richard Davey
d670edd708 No need to reference via game 2020-10-27 13:55:27 +00:00
Richard Davey
faec17f4b0 Cameras.Scene2D.Events.FOLLOW_UPDATE is a new Event that is dispatched by a Camera when it is following a Game Object. It is dispatched every frame, right after the final Camera position and internal matrices have been updated. Use it if you need to react to a camera, using its most current position and the camera is following something. Fix #5253 2020-10-17 11:37:27 +01:00
Richard Davey
84c1344f63 CameraManager.getVisibleChildren is a new method that is called internally by the CameraManager.render method. It filters the DisplayList, so that Game Objects that pass the willRender test for the given Camera are added to a sub-list, which is then passed to the renderer. This avoids the renderer having to do any checks on the children, it just renders each one in turn. 2020-10-16 11:35:45 +01:00
Richard Davey
1df4661487 Camera.roundPixels now rounds worldView matrix 2020-10-08 11:07:21 +01:00
Richard Davey
8119ce7da1 Fixed use of old camera private properties 2020-09-29 16:44:11 +01:00
Richard Davey
76d2630f8b Fixed Shake effect 2020-09-29 16:43:42 +01:00
Richard Davey
90096a6b64 Added mention about tint to the docs. Fix #5327 2020-09-29 09:31:09 +01:00
Richard Davey
a8df17b622 Corrected JSDocs 2020-09-21 09:54:23 +01:00
Richard Davey
6a966e3f3b Removed interpolationPercentage parameter from all render methods, as it has never been used. 2020-09-14 15:33:58 +01:00
Richard Davey
f0f93cde7d The CameraManager.onResize method no longer receives or uses the resolution parameter. 2020-09-12 11:52:40 +01:00
Richard Davey
3579d39fa2 The Camera.preRender method no longer receives or uses the resolution parameter. 2020-09-12 11:51:59 +01:00
Richard Davey
d1f2c9239c Resolution removal
* The `BaseCamera.resolution` property has been removed.
* The internal private `BaseCamera._cx`, `_cy`, `_cw` and `_ch` properties has been removed.
* The `BaseCamera.preRender` method no longer receives or uses the `resolution` parameter.
2020-09-12 11:51:37 +01:00
Richard Davey
2d3edc9512 Use the new Pipeline Manager methods 2020-09-09 13:05:18 +01:00
Richard Davey
0dd07333af Updated to use MultiPipeline 2020-08-21 16:14:59 +01:00
samme
7ab57258fc Tiny optimization for BaseCamera#cull 2020-05-13 11:20:38 -07:00
Richard Davey
56474423df Use Events and remove dead code 2020-04-27 16:40:46 +01:00
Richard Davey
6668a8d763 New Events and lint fixes 2020-04-27 16:36:23 +01:00
Richard Davey
74bd872704 Updated version numbers 2020-04-27 14:00:47 +01:00
Richard Davey
756072b058
Merge pull request #4159 from jan1za/master
Added RotateTo Effect to Camera
2020-04-27 13:57:47 +01:00
Jason Kwok
b9e3a6395b Fixed this return types for Phaser.Cameras.Scene2D.CameraManager 2020-01-30 23:07:23 +08:00
Jason Kwok
293f6e77f5 Fixed this return types for Phaser.Cameras.Scene2D.Camera 2020-01-30 23:05:56 +08:00
Jason Kwok
a7dd0d1798 Fixed this return types for Phaser.Cameras.Scene2D.BaseCamera 2020-01-30 23:02:06 +08:00
Richard Davey
91dbd42d44 Camera.renderToGame is a new property used in conjunction with renderToTexture. It controls if the Camera should still render to the Game canvas after rendering to its own texture or not. By default, it will render to both, but you can now toggle this at run-time. 2020-01-27 23:35:39 +00:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Andrew Brampton
e42f227ec2
Update documentation and one import, to use the consistent name of Vector2.
There were examples that used Vec2, which wouldn't work. For example `An array of Point or Vector2 objects: [new Phaser.Math.Vec2(x1, y1), ...]` was not copy and pastable.
2020-01-11 06:46:25 -08:00
Hua
9377f8c8a0 Expose BaseCamera module 2019-10-03 09:26:14 +08: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
samme
0530fb2b56 Abort clearRenderToTexture() for missing renderer 2019-06-29 13:39:42 -07:00
Richard Davey
dc2375de70 Camera Manager will now listen for RESIZE event and resize full-sized cameras automatically 2019-06-06 15:57:51 +01:00
Richard Davey
3504819b33 The CameraManager would incorrectly destroy the default Camera in its shutdown method, meaning that if you used a fixed mask camera and stopped then resumed a Scene, the masks would stop working. The default camera is now destroyed only in the destroy method. Fix #4520 2019-05-17 13:54:55 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
a6341a97a8 Fixed Types references 2019-05-09 15:32:53 +01:00
Richard Davey
dc3b3ecb03 Display Types 2019-05-09 11:53:08 +01:00
Richard Davey
e556cd9c68 Camera Types 2019-05-09 11:49:44 +01:00
Richard Davey
40b325accf A Camera will pause following a Game Object for the duration of the Camera Pan Effect, as the two will clash over the Camera scroll position 2019-05-02 10:51:46 +01:00
Richard Davey
61011d3ae9 Camera.clearRenderToTexture will check to see if the Scene is available before proceeding, avoiding potential errors when a Camera is destroyed multiple times during a Scene shutdown. 2019-04-24 11:46:31 +01:00
Richard Davey
a824f6f1e8 Added a default camera 2019-04-11 17:10:12 +01:00
Richard Davey
79409f0479 You can now add a geometry or bitmap mask to any Camera 2019-04-11 17:09:53 +01:00