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
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
Richard Davey
15b544fc46
jsdoc fixes
2018-06-13 08:37:40 +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
samme
68ebce077e
Add Camera#centerX, Camera#centerY
2018-06-02 21:04:56 -07:00
Chris Andrew
f38a0683ff
Updated SmoothStep and SmootherStep documentation. Fixed lint errors.
2018-05-24 18:11:18 +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
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
Austyn Studdard
330e039763
fixed #3646
2018-05-19 13:36:42 -05:00
Austyn Studdard
60d35be269
revert
2018-05-19 13:33:04 -05:00
Austyn Studdard
50ce7feb87
fixed issue #3646
2018-05-19 11:46:43 -05:00
Richard Davey
350cb037b7
All systems now register themselves with the new PluginCache
2018-05-15 12:51:50 +01:00
Richard Davey
be330e609e
Moved PluginManager to new location
2018-05-10 17:14:33 +01:00
Christian Panadero
5f03557603
Fix camera bound typings
...
Bounds where not generated with that syntax so I created an entity to
explictly define the camera bounds.
Bounds are there only when the internal property 'useBounds' is there,
so it can be undefined in some cases.
2018-04-28 12:25:07 +01:00
Richard Davey
b0544c73b8
jsdoc fixes
2018-04-18 13:29:22 +01:00
Richard Davey
55965c748f
jsdoc fixes
2018-04-18 12:13:49 +01:00
Richard Davey
1be486fab4
destroy
only called once, no matter how many times the Scene restarts. Fix #3581
2018-04-17 12:25:45 +01:00
Richard Davey
07a55e5d1f
Removed debug call and merged Scene Systems boot and start sequences. Fix #3579
2018-04-17 02:34:07 +01:00
Richard Davey
3c5eab9ee6
Exposed Effects
2018-04-15 23:14:34 +01:00
Richard Davey
ce7d67297f
Moving from 3.4.1 to 3.5.0 so we can release new camera fx and scene transitions
2018-04-15 12:44:47 +01:00
Richard Davey
e37b183038
Completed all jsdocs for the Camera class
2018-04-15 05:05:03 +01:00
Richard Davey
ae603240e1
Camera.cullHitTest has been removed. It was never used internally and duplicates the code in Camera.cull
.
2018-04-15 04:01:39 +01:00
Richard Davey
84a7b260b3
New flash effect added
2018-04-15 04:00:21 +01:00
Richard Davey
f8d5a7de75
Added more docs and changed default time to 250ms
2018-04-15 03:59:58 +01:00
Richard Davey
595e43aa8b
Added new Camera effects system
2018-04-14 17:39:43 +01:00
Richard Davey
1a51e859dd
New Camera Shake effect class
2018-04-14 12:35:39 +01:00
Richard Davey
06e5fc0336
Camera extends Event Emitter and moved to effect based system
2018-04-14 12:35:14 +01:00
Richard Davey
6b2307594a
Scene plugin flow overhaul
...
Every Plugin has been updated to correctly follow the same flow through the Scene lifecycle. Instead of listening for the Scene 'boot' event, which is only dispatched once (when the Scene is first created), they will now listen for the Scene 'start' event, which occurs every time the Scene is started. All plugins now consistently follow the same Shutdown and Destroy patterns too, meaning they tidy-up after themselves on a shutdown, not just a destroy. Overall, this change means that there should be less issues when returning to previously closed Scenes, as the plugins will restart themselves properly.
2018-04-13 17:12:17 +01:00
Richard Davey
efe6330a01
Added scaleX/Y getters
2018-04-12 16:27:55 +01:00
Richard Davey
d15d910778
Removed camera.cullTilemap because nothing uses it any more
2018-04-09 16:00:33 +01:00
Richard Davey
441ca3862c
Swap for isArray check
2018-04-05 09:23:52 +01:00
Richard Davey
4c116c0af2
Put Fixed and Smoothed aliases back in for now
2018-03-30 12:03:25 +01:00
Richard Davey
88b02a5e35
Renamed the Camera Controls module exports for Fixed
to FixedKeyControl
and Smoothed
to SmoothedKeyControl
to match the class names. Fix #3463
2018-03-28 16:24:06 +01:00
orblazer
7a33233013
Fix types in Cache and Cameras
2018-03-27 13:51:45 +02:00
orblazer
ed1f2a7011
Fix wrong types
2018-03-22 13:51:30 +01:00