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
orblazer
5a518f2e5f
Fix "object" types on Camera and GameObjecs
2018-03-20 23:28:26 +01:00
orblazer
37b6fc5862
Fix many multiple types
2018-03-20 15:58:02 +01:00
Richard Davey
75bb9d92a9
Camera.fadeIn is a new method that will fade the camera in from a given color (black by default) and then optionally invoke a callback. This is the same as using Camera.flash but with an easier to grok method name. Fix #3412
2018-03-20 00:10:55 +00:00
Richard Davey
00a3f71859
Modified camera effect durations and prevented callbacks from being overwritten
2018-03-19 23:53:03 +00:00
Richard Davey
18c327e743
Effect callbacks now pass the camera. Tidied up potential infinity divides.
2018-03-19 23:29:15 +00:00
Jeroen Reurings
ed3dc2b9b4
Added @since 3.3.0 to new callback method comments.
2018-03-19 22:25:19 +01:00
Jeroen Reurings
6ada1ec2f3
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-19 20:31:10 +01:00
Jeroen Reurings
a759266064
Changed default values of effect callbacks to null instead of undefined;
...
Removed @since JSDoc comments for newly added class methods (because it's still unknown in which version they will be added).
2018-03-19 19:38:43 +01:00
Richard Davey
ff7119dfc1
Merge pull request #3422 from orblazer/fix-types
...
Fix types and begin object TypeDef
2018-03-19 17:16:45 +00:00
orblazer
45158c2fbd
Update JSDoc on Animations and Boot
2018-03-19 18:13:33 +01:00
Richard Davey
d551ef3d29
Added RayDef
2018-03-19 16:34:33 +00:00
orblazer
0ca95676ba
Update JSDoc on Cameras
2018-03-19 17:21:25 +01:00
Jeroen Reurings
9006f19f41
Added callbacks to Shake, Fade and Flash effects, so you don't have to use a delayed call to trigger something after an effect is completed;
...
Moved the shake function next to the other effect functions.
2018-03-19 16:21:48 +01:00
orblazer
c3fb72780b
Update JSDoc on Cameras
2018-03-19 01:49:29 +01:00
Richard Davey
cc0998660e
Updated jsdocs
2018-03-18 13:43:37 +00:00
Bugi Görtz
b977f096f8
fixed getCamera in CameraManager (2d/3d) to work correctly; forEach()-iterator doesn't return values
...
(https://hacks.mozilla.org/2015/04/es6-in-depth-iterators-and-the-for-of-loop/ )
2018-03-15 17:12:06 +01:00
Bugi Görtz
5af8e745d1
fixed getCamera in CameraManager to work correctly; forEach()-construct can't return values
...
(https://hacks.mozilla.org/2015/04/es6-in-depth-iterators-and-the-for-of-loop/ )
2018-03-15 16:58:05 +01:00
brandonvdongen
143d598780
fixed lint issue
2018-03-09 07:26:09 +01:00
brandonvdongen
08a02c4675
fixed camera offset when combining zoom+follow
2018-03-09 00:07:42 +01:00
Richard Davey
31f331de98
Added CameraManager.resize method.
2018-02-28 17:19:10 +00:00
Richard Davey
26f0578261
jsdoc fixes
2018-02-22 01:07:30 +00:00
Felipe Alfonso
50c79c14af
Removed double rounding to pixel on rendering routines.
...
Fixed rounding pixel issue when camera is shaking
2018-02-19 17:38:40 -03:00
Richard Davey
86f00eeb52
eslint fixes
2018-02-16 18:17:51 +00:00
Richard Davey
8425629165
jsdoc fixes.
2018-02-12 23:51:47 +00:00
Richard Davey
2813ac8162
Moved PluginManager and merged configs into single root file for easier changing.
2018-02-12 23:03:48 +00:00
Richard Davey
ae3cd50356
Fixed jsdocs
2018-02-12 21:39:26 +00:00
Felipe Alfonso
9b2741387b
Resolution affecting camera display
2018-02-12 16:03:13 -03:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
8de078d333
Added jsdocs
2018-02-12 13:48:48 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Felipe Alfonso
b48c2a8173
Fixed scale issue with baseScale of camera manager
2018-01-31 21:52:48 -03:00
Felipe Alfonso
e5831138a4
baseScale added to camera manager and propagated to cameras through preRender function
2018-01-31 21:01:27 -03:00
Richard Davey
2a86400a28
Added in jsdocs
2018-01-31 13:54:44 +00:00
Richard Davey
bc2263dbd4
Fixed Camera3D Plugin, exposed it via camera3d
in a Scene and added cameras to local array.
...
Closes #3188
2018-01-30 13:15:50 +00:00
Michael Hadley
d088889c02
Added resetFX to 2D camera
2018-01-28 11:06:37 -06:00
Richard Davey
12b59ea39d
Added jsdocs
2018-01-25 05:11:52 +00:00